--- a/schema.py Wed Dec 02 12:53:46 2009 +0100
+++ b/schema.py Wed Dec 02 12:54:16 2009 +0100
@@ -596,10 +596,11 @@
pass # this is a vocabulary constraint, not enforce XXX why?
def __str__(self):
- return self.restriction
+ return '%s(Any %s WHERE %s)' % (self.__class__.__name__, self.mainvars,
+ self.restriction)
def __repr__(self):
- return '<%s : %s>' % (self.__class__.__name__, repr(self.restriction))
+ return '<%s @%#x>' % (self.__str__(), id(self))
class RQLConstraint(RQLVocabularyConstraint):