server/schemaserial.py
changeset 3732 f9336257e0b9
parent 3723 a961c7cb2644
child 3737 e8c669e33689
equal deleted inserted replaced
3731:d4af295515c0 3732:f9336257e0b9
   275 
   275 
   276 def serialize_schema(cursor, schema, verbose=False):
   276 def serialize_schema(cursor, schema, verbose=False):
   277     """synchronize schema and permissions in the database according to
   277     """synchronize schema and permissions in the database according to
   278     current schema
   278     current schema
   279     """
   279     """
   280     quiet = not os.environ('APYCOT_ROOT')
   280     quiet = not os.environ['APYCOT_ROOT']
   281     if not quiet:
   281     if not quiet:
   282         _title = '-> storing the schema in the database '
   282         _title = '-> storing the schema in the database '
   283         print _title,
   283         print _title,
   284     eschemas = schema.entities()
   284     eschemas = schema.entities()
   285     aller = eschemas + schema.relations()
   285     aller = eschemas + schema.relations()