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