] annotations = {chaise_tags.display: {'name_style': {'underline_space': True}}} acls = {} comment = 'Schema for tables that will be displayed as web content' schema_def = em.Schema.define( 'WWW', comment=comment, acls=acls, annotations=annotations, ) def main(catalog, mode, replace=False): updater = CatalogUpdater(catalog) updater.update_schema(mode, schema_def, replace=replace) if __name__ == "__main__": host = 'pdb.isrd.isi.edu' catalog_id = 50 mode, replace, host, catalog_id = parse_args(host, catalog_id) catalog = ErmrestCatalog('https', host, catalog_id=catalog_id, credentials=get_credential(host)) main(catalog, mode, replace)
), ] fkey_defs = [] table_def = em.Table.define(table_name, column_defs=column_defs, key_defs=key_defs, fkey_defs=fkey_defs, annotations=table_annotations, acls=table_acls, acl_bindings=table_acl_bindings, comment=table_comment, provide_system=True) def main(catalog, mode, replace=False): updater = CatalogUpdater(catalog) updater.update_table(mode, schema_name, table_def, replace=replace) if __name__ == "__main__": host = 'pbcconsortium.isrd.isi.edu' catalog_id = 1 mode, replace, host, catalog_id = parse_args(host, catalog_id, is_table=True) credential = get_credential(host) catalog = ErmrestCatalog('https', host, catalog_id, credentials=credential) main(catalog, mode, replace)
fkey_defs = [] table_def = em.Table.define(table_name, column_defs=column_defs, key_defs=key_defs, fkey_defs=fkey_defs, annotations=table_annotations, acls=table_acls, acl_bindings=table_acl_bindings, comment=table_comment, provide_system=True) def main(catalog, mode, replace=False): updater = CatalogUpdater(catalog) updater.update_table(mode, schema_name, table_def, replace=replace) if __name__ == "__main__": server = 'pbcconsortium.isrd.isi.edu' catalog_id = 1 mode, replace, server, catalog_id = parse_args(server, catalog_id, is_table=True) credential = get_credential(server) catalog = ErmrestCatalog('https', server, catalog_id, credentials=credential) main(catalog, mode, replace)