Module Import alias Import alias Import alias Import alias AugAssignAdd AttributeStore NameLoad attr ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Import alias Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str ImportFrom alias Import alias Import alias ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A os N/A sys N/A argparse N/A MySQLdb N/A N/A sys path N/A N/A N/A N/A os path abspath ../django N/A OCP.settings N/A N/A N/A os environ N/A DJANGO_SETTINGS_MODULE OCP.settings django.conf settings N/A ocpcaproj N/A ocpcaprivate Dataset N/A N/A __init__ N/A N/A self inputData N/A N/A N/A  Load the dataset info  N/A N/A N/A self ximagesize N/A self yimagesize N/A self startslice N/A self endslice N/A self zoomlevels N/A self zscale N/A self startwindow N/A self endwindow N/A self starttime N/A self endtime inputData N/A N/A Project N/A N/A __init__ N/A N/A self inputData N/A N/A N/A  Load the project info  N/A N/A N/A self token N/A self openid N/A self dbhost N/A self project N/A self dbtype N/A self dataset N/A self dataurl N/A self readonly N/A self exceptions N/A self resolution N/A self public N/A self kvengine N/A self kvserver N/A self propagate inputData N/A N/A OCPAdmin N/A N/A __init__ N/A N/A self host remotehost token dataset N/A N/A N/A  Load the Project Info  N/A N/A self token token N/A N/A self dataset dataset N/A N/A self conn N/A N/A MySQLdb connect host host user N/A ocpcaprivate dbuser passwd N/A ocpcaprivate dbpasswd db N/A ocpcaprivate db N/A N/A self remoteconn N/A N/A MySQLdb connect host remotehost user N/A ocpcaprivate dbuser passwd N/A ocpcaprivate dbpasswd db N/A ocpcaprivate db N/A loadProject N/A N/A self N/A N/A N/A  Load a Project Information from the database  N/A sql N/A SELECT token, openid, host, project, datatype, dataset, dataurl, readonly, exceptions, resolution, public, kvengine, kvserver, propagate from %s where token = '%s' N/A N/A ocpcaprivate projects N/A self token N/A N/A N/A cursor N/A N/A N/A self conn cursor N/A N/A N/A cursor execute sql N/A N/A N/A N/A MySQLdb Error N/A e N/A N/A e N/A row N/A N/A cursor fetchone N/A N/A row None N/A N/A N/A Exception N/A N/A Project {} not found format N/A self token N/A row N/A insertProject N/A N/A self N/A N/A N/A  Insert a Project Information to a remote database  N/A proj N/A Project N/A N/A self loadProject N/A sql N/A N/A INSERT INTO {0} (token, openid, host, project, datatype, dataset, dataurl, readonly, exceptions, resolution, public, kvengine, kvserver, propagate) VALUES ('{1}','{2}','{3}','{4}',{5},'{6}','{7}','{8}','{9}','{10}','{11}','{12}','{13}','{14}') format N/A ocpcaprivate projects N/A self token N/A proj openid N/A proj dbhost N/A proj project N/A proj dbtype N/A proj dataset N/A proj dataurl N/A proj readonly N/A proj exceptions N/A proj resolution N/A proj public N/A proj kvengine N/A proj kvserver N/A proj propagate N/A N/A N/A cursor N/A N/A N/A self remoteconn cursor N/A N/A N/A cursor execute sql N/A N/A N/A N/A self remoteconn commit N/A N/A N/A N/A MySQLdb Error N/A e N/A N/A e N/A loadDataset N/A N/A self N/A N/A N/A  Load a Dataset Information from the database  N/A sql N/A SELECT ximagesize, yimagesize, startslice, endslice, zoomlevels, zscale, startwindow, endwindow, starttime, endtime from %s where dataset = '%s' N/A N/A ocpcaprivate datasets N/A self dataset N/A N/A N/A cursor N/A N/A N/A self conn cursor N/A N/A N/A cursor execute sql N/A N/A N/A N/A MySQLdb Error N/A e N/A N/A e N/A row N/A N/A cursor fetchone N/A N/A row None N/A N/A N/A Exception N/A N/A Project {} not found format N/A self dataset N/A row N/A insertDataset N/A N/A self N/A N/A N/A  Insert a Dataset Information into a remote database  N/A dat N/A Dataset N/A N/A self loadDataset N/A sql N/A N/A INSERT INTO {0} (dataset, ximagesize, yimagesize, startslice, endslice, zoomlevels, zscale, startwindow, endwindow, starttime, endtime) VALUES ('{1}','{2}','{3}','{4}',{5},'{6}','{7}','{8}','{9}','{10}','{11}') format N/A ocpcaprivate datasets N/A self dataset N/A dat ximagesize N/A dat yimagesize N/A dat startslice N/A dat endslice N/A dat zoomlevels N/A dat zscale N/A dat startwindow N/A dat endwindow N/A dat starttime N/A dat endtime N/A N/A N/A cursor N/A N/A N/A self remoteconn cursor N/A N/A N/A cursor execute sql N/A N/A N/A N/A self remoteconn commit N/A N/A N/A N/A MySQLdb Error N/A e N/A N/A e N/A N/A main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Enter admin info from command line N/A N/A N/A parser add_argument host action store help Hostname where to copy from N/A N/A N/A parser add_argument token action store help Token N/A N/A N/A parser add_argument dataset action store help Dataset N/A N/A N/A parser add_argument remotehost action store help Remote Hostname where to copy to N/A N/A N/A parser add_argument --project dest proj action store_true help Copy only project N/A N/A N/A parser add_argument --dataset dest dst action store_true help Copy only dataset N/A result N/A N/A parser parse_args N/A ocpadmin N/A OCPAdmin N/A result host N/A result remotehost N/A result token N/A result dataset N/A N/A result proj N/A N/A N/A N/A ocpadmin insertProject N/A N/A N/A result dst N/A N/A N/A N/A ocpadmin insertDataset N/A N/A N/A N/A ocpadmin insertDataset N/A N/A N/A ocpadmin insertProject N/A N/A N/A __name__ __main__ N/A N/A N/A main