[Zope] security for ZPT-based Product

Milos Prudek prudek at bvx.cz
Mon Jul 11 12:27:57 EDT 2005



How can I manage permissions for imported ZPT files?

Relevant lines from my Product:

from AccessControl import ClassSecurityInfo
class MyClass(....):
  security=ClassSecurityInfo()
  comment_add_form=PageTemplateFile('zpt/comment_add_form',globals())

My goal is to limit access to comment_add_form to the Authenticated role 
only. comment_add_form is on the filesystem, in my Product's zpt directory.

How can I achieve this? I understand zilch about ClassSecurityInfo...

(My Product is based on JMBoring template)

-- 
Milos Prudek
http://www.spoxdesign.com - your web usability testing


More information about the Zope mailing list