server/schemaserial.py
changeset 4835 13b0b96d7982
parent 4808 23df4a120c96
child 5379 c082dea0731b
child 5421 8167de96c523
equal deleted inserted replaced
4834:b718626a0e60 4835:13b0b96d7982
   216     """
   216     """
   217     quiet = os.environ.get('APYCOT_ROOT')
   217     quiet = os.environ.get('APYCOT_ROOT')
   218     if not quiet:
   218     if not quiet:
   219         _title = '-> storing the schema in the database '
   219         _title = '-> storing the schema in the database '
   220         print _title,
   220         print _title,
   221     execute = cursor.unsafe_execute
   221     execute = cursor.execute
   222     eschemas = schema.entities()
   222     eschemas = schema.entities()
   223     if not quiet:
   223     if not quiet:
   224         pb_size = (len(eschemas + schema.relations())
   224         pb_size = (len(eschemas + schema.relations())
   225                    + len(CONSTRAINTS)
   225                    + len(CONSTRAINTS)
   226                    + len([x for x in eschemas if x.specializes()]))
   226                    + len([x for x in eschemas if x.specializes()]))