renamed persistentobjs into model
[sfa.git] / sfa / server / registry.py
index 72d4abb..0919a1b 100644 (file)
@@ -21,8 +21,9 @@ class Registry(SfaServer):
     def __init__(self, ip, port, key_file, cert_file):
         SfaServer.__init__(self, ip, port, key_file, cert_file,'registry')
         # initialize db schema
-        from sfa.storage.persistentobjs import init_tables
-        init_tables()
+        from sfa.storage.alchemy import dbsession
+        from sfa.storage.model import init_tables
+        init_tables(dbsession)
 
 #
 # Registries is a dictionary of registry connections keyed on the registry hrn