def __init__(self, bolSafeMode=False): self._strW3Path = '../../w3/' self.compiler = dotDict() self.compiler.js = javascript.compiler(bolSafeMode) self.compiler.css = css.compiler(bolSafeMode) self.bolSafeMode = bolSafeMode self.init(pageData())
def __init__(self, bolSafeMode=False): dotDict.__init__(self) self.strPath = '../../w3c/inc/widget/' self.bolSafeMode = bolSafeMode # ordered list (object) of widgets used by the compiler self.objWidgetTypes = dotDict() self.compiler = dotDict() self.compiler.js = javascript.compiler(bolSafeMode) self.command = [] # register our custom template filters template.register_template_library('w3.templateFilter')