schema.py
changeset 2716 2f6edb0e9626
parent 2691 ade319674170
child 2718 3a56b87bb5d6
equal deleted inserted replaced
2715:acdaf780d4a6 2716:2f6edb0e9626
   514     """
   514     """
   515 
   515 
   516     def __init__(self, restriction):
   516     def __init__(self, restriction):
   517         self.restriction = restriction
   517         self.restriction = restriction
   518 
   518 
   519     def check_consistency(self, subjschema, objschema):
   519     def check_consistency(self, subjschema, objschema, rdef):
   520         if objschema.is_final():
   520         if objschema.is_final():
   521             raise BadSchemaDefinition("unique constraint doesn't apply to "
   521             raise BadSchemaDefinition("unique constraint doesn't apply to "
   522                                       "final entity type")
   522                                       "final entity type")
   523 
   523 
   524     def serialize(self):
   524     def serialize(self):