def registry(database_name=None):
 if (database_name is None):
  import threading
  database_name = threading.currentThread().dbname
 return modules.registry.Registry(database_name)

def registry ( database_name = None ) : if ( database_name is None ) : import threading database_name = threading . currentThread ( ) . dbname return modules . registry . Registry ( database_name )
return the model registry for the given database .