16 Apr
2003
16 Apr
'03
7:19 p.m.
Chad Nantais wrote at 2003-4-15 20:06 -0700:
If I was doing this all through the ZMI, I would create an access rule for each customer (folderish) object instance. However, I want this access rule built into my product. How would I do this?
Read something about the "__before_publishing_traverse__" hook. You find a bit in <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> I expect, you will find more on Zope.org. Have a look at the "SiteAccess" source. It uses the hook above to implement access rules. Dieter