def post(self): xml = self.get_argument('xml') appid = self.get_argument('appid') app = wkpf.globals.applications[getAppIndex(appid)] try: component_path = app.dir+'/WKDeployCustomComponents.xml' f = open(component_path, 'w') xml = f.write(xml) f.close() make_main(component_path) except: self.write('<error>1</error>') self.write('')
def import_wuXML(): make_main()
def import_wuXML(): test = make_main() test.make()