svn path=/main/trunk/; revision=11867
or raise a ValueError exception if the required object is not present.
"""
+ if not self._parsed:
+ self.parse()
+
if not len(self.restrictions):
return True # no restrictions to match means everyone should see it
self._parsed = True
- def __getattr__(self, attr):
- if not self._parsed:
- self.parse()
- return self.__dict__[attr]
-
class DisplayRestriction(object):
"""
A base restriction object representing a restriction of display.