equal
deleted
inserted
replaced
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() |