This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
import sys | |
from StringIO import StringIO | |
def catch_result(task_func): | |
"""Catch printed result from Celery Task and return it in task response | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def auto_overrides(app): | |
module_name = "%s.%s" % (app, "overrides") | |
try: | |
mod = __import__(module_name) | |
except Exception, e: | |
pass | |
for app in settings.INSTALLED_APPS: | |
auto_overrides(app) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BaseFilterAction(tables.FilterAction): | |
"""filter action for search in all available columns | |
.. attribute:: custom_field | |
Custom field for search. Default is all fields. | |
""" | |
needs_preloading = True | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
url = 'http://jachym-redmine.samsung.majklk.cz' | |
auth = {'key':'008e507cf5bffac1f5df822d8cb3465170813b09'} | |
#filename relative path | |
#issue=issue_id = String !! | |
#item {"name":"test.jpeg", "description":"","content-Type":"image/png"path:"/srv/jachym/bin/"} |
NewerOlder