Something I remember from my early Zope days that could be solved, but I can't seem to find an answer: say I have a simple site where people can do simple things within their folder. However, I want my banners/logo whatever on their pages, so I've setup index_html to put my own stuff in and include their body_text. How can I prevent smartasses from creating index_html documents in their folder? More generally, is it possible to disallow certain folder methods or properties to be overriden from a point in the tree? -- Cees de Groot http://www.cdegroot.com <cg@cdegroot.com> GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B Forge your CipherSaber and list it: http://www.xs4all.nl/~cg/ciphersaber/
Cees de Groot wrote:
Something I remember from my early Zope days that could be solved, but I can't seem to find an answer: say I have a simple site where people can do simple things within their folder. However, I want my banners/logo whatever on their pages, so I've setup index_html to put my own stuff in and include their body_text.
I'd to this using a SiteAccess Access Rule that always wraps their stuff in whatever you want. You'll probably need to use the traversal interface's RestrictedTraverse method too...
How can I prevent smartasses from creating index_html documents in their folder? More generally, is it possible to disallow certain folder methods or properties to be overriden from a point in the tree?
Look at the __replaceable__ properties stuff on dev.zope.org. I guess you could roll your own folder with a list of attributes that could only be defined as singletons (__replaceable__ = UNIQUE). Just stabs in the dark... Chris PS: Banners as advertising don't work ;-)
participants (2)
-
cg@cdegroot.com -
Chris Withers