def run(self): from utils.static_files import compile, get_version_no compile(self.JS_FILES, 'site_media/js', 'hubplus_core.js', minified=True) compile(self.CSS_FILES, 'site_media/css', 'hubplus_core.css') JS_VERSION_NO = get_version_no("hubplus_core.js", 'site_media/js') CSS_VERSION_NO = get_version_no("hubplus_core.css", 'site_media/css')
except ImportError, e: print "importing / setting up permissions system failed :: " + `e` import logging logging.basicConfig( level = logging.DEBUG, format = '%(asctime)s %(levelname)s %(message)s', ) from threading import Thread try: from utils.static_files import get_version_no JS_VERSION_NO = get_version_no("hubplus_core.js", 'site_media/js') CSS_VERSION_NO = get_version_no("hubplus_core.css", 'site_media/css') except ImportError, e: print `e` class JsCompile(Thread): def __init__(self, css=None, js=None): Thread.__init__(self) self.CSS_FILES = css and css or [] self.JS_FILES = js and js or [] def run(self): from utils.static_files import compile, get_version_no compile(self.JS_FILES, 'site_media/js', 'hubplus_core.js', minified=True) compile(self.CSS_FILES, 'site_media/css', 'hubplus_core.css') JS_VERSION_NO = get_version_no("hubplus_core.js", 'site_media/js')
try: from apps.plus_permissions import patch except ImportError, e: print "importing / setting up permissions system failed :: " + ` e ` import logging logging.basicConfig( level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s', ) from threading import Thread try: from utils.static_files import get_version_no JS_VERSION_NO = get_version_no("hubplus_core.js", 'site_media/js') CSS_VERSION_NO = get_version_no("hubplus_core.css", 'site_media/css') except ImportError, e: print ` e ` class JsCompile(Thread): def __init__(self, css=None, js=None): Thread.__init__(self) self.CSS_FILES = css and css or [] self.JS_FILES = js and js or [] def run(self): from utils.static_files import compile, get_version_no compile(self.JS_FILES, 'site_media/js',