mò $á¸Ec @sOdZgZdkZdei_hefƒd<edƒd<edƒd assertion An assertion can be: - A dict - A callable - Something with a truth value If the assertion is a callable, then it will be called with a name being accessed and the name used. Its return value is ignored, but in may veto an access by raising an exception. If the assertion is a dictionary, then the keys are attribute names. The values may be callables or objects with boolean values. If a value is callable, it will be called with the object we are accessing an attribute of and the attribute name. It should return an attribute value. Callables are often used to returned guarded versions of methods. Otherwise, accesses are allowed if values in this dictionary are true and disallowed if the values are false or if an item for an attribute name is not present. If the assertion is not a dict and is not callable, then access to unprotected attributes is allowed if the assertion is true, and disallowed otherwise. XXX This descrition doesn't actually match what's done in ZopeGuards or in ZopeSecurityPolicy. :( $Id: SimpleObjectPolicies.py 40218 2005-11-18 14:39:19Z andreasjung $Nitut _dummy_classcBstZRS(N(t__name__t __module__(((tA/data/zmath/zope/lib/python/AccessControl/SimpleObjectPolicies.pyRPs(s TemplateDicttdummyicCs‚t|ƒtj otd| ‚nt|dƒotd| ‚nt|tƒp t|tƒp td‚n|t|