def add_code_template(cls, code_template): # save it CodeTemplatePersistence.save(code_template)
def export_xml(cls): from mosaicode.system import System as System System() for code_template in System.code_templates: print "Exporting code template " + code_template CodeTemplatePersistence.save(System.code_templates[code_template])
def export_xml(cls): from mosaicode.system import System as System System() code_templates = System.get_code_templates() for code_template in code_templates: CodeTemplatePersistence.save(code_templates[code_template])