Beispiel #1
0
 def __init__(self, appdata, cnf=None):
     cnf = cnf or {}
     self.config = JCW_Config()
     config_file = os.path.join(appdata.app_config_dir, self.config.filename)
     self.config.load(config_file)
     self.config.update(cnf)
     self.appdata = appdata
     self.cms = self.appdata.app.default_cms
     self.loader = JCW_Loader()
     self.saver = JCW_Saver()
     self.new()