def task_server(args): global START_TIME START_TIME = datetime.datetime.now().isoformat()[0:19] logging.info('starting web service') start2() if __name__ == "__main__": logging.basicConfig( format= '[%(levelname)s][%(asctime)s][%(module)s][%(funcName)s][%(lineno)s] %(message)s', level=logging.INFO) logging.getLogger("requests").setLevel(logging.WARNING) optional_params = {'--es_config_file': 'config'} main_subtask(__name__, optional_params=optional_params) """ #################### ## run local server python server.py task_server #################### ## online release sh sync-up-server.sh #################### ## run elasticsearch server ~/cnschema.org/elasticsearch-2.4.3/bin/elasticsearch ####################
domain = row["domain"] #row[u"直属分类"] propName = row[u"name"] rangeList = row[u"range"] bindings[domain][propName] = row break logging.info(bindings) if __name__ == "__main__": logging.basicConfig( format= '[%(levelname)s][%(asctime)s][%(module)s][%(funcName)s][%(lineno)s] %(message)s', level=logging.INFO) logging.getLogger("requests").setLevel(logging.WARNING) main_subtask(__name__) """ python cns.py task_cns_core_init python cns.py task_cns_core_excel2json python cns.py task_cns_core_json2excel python cns.py task_cns_make_html python cns.py task_cns_template """