Ahmed Şeref
Ahmed Şeref
I am willing to contribute to Turkish translation. @ahmetshen-us @jlevy What should we do?
I marked `lib/python2.7/site-packages/restless/serializers.py:62` as breakpoint and the body variable is below: ``` '--8d1e7a823982469d82c0358769ccba4c Content-Disposition: form-data; name="file"; filename="test.txt" Test.txt content --8d1e7a823982469d82c0358769ccba4c-- ' ``` ``` python class JSONSerializer(Serializer): def deserialize(self, body): """...
I implemented a custom multipart file aware serializer for Restless Tornado. https://gist.github.com/guneysus/3604327fe9946618ebdc
There is hacky workaround this: ``` python class PostResource(restless.tnd.TornadoResource): def is_authenticated(self): return True def create(self, *args, **kwargs): self.r_handler.add_header('Access-Control-Allow-Origin', '*') ``` Since I can not be able to add CORS header...
``` python #!/usr/bin/env python # coding:utf-8 # noinspection SpellCheckingInspection def cors(origins=['http://127.0.0.1:9001', 'http://localhost:9001', 'http://stackoverflow.com']): """ Usage class RestlessResource(restless.tnd.TornadoResource): @api.extensions.cors(origins=['http://stackoverflow.com']) def list(self, *args, **kwargs): ... :param origins: :return: """ def real_decorator(func): #...
Thanks, by the way, I can not run "node.update" command. I tested retrieve, create and index commands successfully, and created 3030 content for my Drupal site.
I will not be available about 6 months for army. I writed a small interface for nodes that contains `date_field` (text select widget) guide with http://drupal.stackexchange.com/a/78925/17190 With this way, I...
I am also stucked. I dont know why size failing but `class` is a reserved keyword for Python. ``` jade input(name="title" type="text" size=82) input(name="title" type="text" class="foobar") input(name="title" type="text" value="foobar") ```...
I am watching this issue because similar bug is occured at my Windows 8, Python 2.7.5. And i encountered a similar error with Jekyll and also Hyde `UnicodeDecodeError: 'utf8' codec...