def __init__(self, config): """ Inherit the base class and set up the cache and our loaders """ Page.__init__(self, config) self.cache = {'css': {}, 'js':{}, 'image':{}} #minify the css cssutils.ser.prefs.useMinified() # a dictionary of functions to deal with loading different scripts #TODO: pick this up from configuration #TODO: allow for versioning here, e.g. if YUI3 is very different to YUI2 self.loaders = {'js': {'yui': yui_ecmascripts}, 'css': {'yui': yui_style}, 'image': {'yui': yui_images}}
def __init__(self, config): """ Inherit the base class and set up the cache and our loaders """ Page.__init__(self, config) self.cache = {'css': {}, 'js': {}, 'image': {}} #minify the css cssutils.ser.prefs.useMinified() # a dictionary of functions to deal with loading different scripts #TODO: pick this up from configuration #TODO: allow for versioning here, e.g. if YUI3 is very different to YUI2 self.loaders = { 'js': { 'yui': yui_ecmascripts }, 'css': { 'yui': yui_style }, 'image': { 'yui': yui_images } }
def __init__(self, namesAndDocstrings): Page.__init__(self, {}) self.namesAndDocstrings = namesAndDocstrings