[Zope] problem using manage_addPageTemplate

Stéphane MOLINA stephane.molina at enst.fr
Thu Jul 1 10:46:29 EDT 2004


Hello,

I have some problem using manage_addPageTemplate :

I use it in my object constructor, :

class UserManager(Folder, Persistent, RoleManager, Item, ):
    """
    A user manager : simple user dictionnary
    """
    security = AccessControl.ClassSecurityInfo()
    security.declareObjectPublic()

    meta_type = 'UserManager'

    def __init__(self, id):
        self.id = id
        self.manage_addUserFolder()
        self.manage_addProduct['PageTemplates'].manage_addPageTemplate("usermanager_properties_form", "edit", "zpt/usermanager_properties_form.zpt")
        self.manage_addProduct['PageTemplates'].manage_addScript("usermanager_properties", "edit", "zpt/usermanager_properties.py")

I get this error :

Site Error

An error was encountered while publishing this resource.

Error Type: AttributeError
Error Value: _getProducts


I don't understand this error ...

Thanks for all answer

Best regards


-- 
Stéphane MOLINA
http://adullact.net/projects/eof/



More information about the Zope mailing list