equal
deleted
inserted
replaced
594 """raise ValidationError if the relation doesn't satisfy the constraint |
594 """raise ValidationError if the relation doesn't satisfy the constraint |
595 """ |
595 """ |
596 pass # this is a vocabulary constraint, not enforce XXX why? |
596 pass # this is a vocabulary constraint, not enforce XXX why? |
597 |
597 |
598 def __str__(self): |
598 def __str__(self): |
599 return self.restriction |
599 return '%s(Any %s WHERE %s)' % (self.__class__.__name__, self.mainvars, |
|
600 self.restriction) |
600 |
601 |
601 def __repr__(self): |
602 def __repr__(self): |
602 return '<%s : %s>' % (self.__class__.__name__, repr(self.restriction)) |
603 return '<%s @%#x>' % (self.__str__(), id(self)) |
603 |
604 |
604 |
605 |
605 class RQLConstraint(RQLVocabularyConstraint): |
606 class RQLConstraint(RQLVocabularyConstraint): |
606 """the rql constraint is similar to the RQLVocabularyConstraint but |
607 """the rql constraint is similar to the RQLVocabularyConstraint but |
607 are also enforced at the repository level |
608 are also enforced at the repository level |