[Zope] GUF and manage_addGenericUserFolder not working
I try to call the function manage_addGenericUserFolder in a DTML Method but I keep getting a NameError for it. It's as if Zope can't find the definition. I'm stumped as to why it won't work in DTML. - The product is installed and not broken. - I can add GUF's under the management screen with 'Add' and everything works fine. - I've tried to make the call with all of the possible parameters but nothing helps. - manage_addUserFolder works fine. Has anyone else had this problem? I just upgraded to Zope 2.2.1 and I haven't tried an older release. Do you think this might have to do with the changes to the security model in 2.2.1? Should I use manage_clone instead? Thanks for any help, Jason __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] GUF and manage_addGenericUserFolder not working
Jason Byron wrote: I try to call the function manage_addGenericUserFolder in a DTML Method but I keep getting a NameError for it. It's as if Zope can't find the definition. Try somethign like the following: dtml-with "manage_addProduct['GenericUserFolder']" dtml-call "manage_addGenericUserFolder(your, params, here)" /dtml-with cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] GUF and manage_addGenericUserFolder not working
--- Chris Withers [EMAIL PROTECTED] wrote: Jason Byron wrote: I try to call the function manage_addGenericUserFolder in a DTML Method but I keep getting a NameError for it. It's as if Zope can't find the definition. Try somethign like the following: dtml-with "manage_addProduct['GenericUserFolder']" dtml-call "manage_addGenericUserFolder(your, params, here)" /dtml-with cheers, Chris Hey, that worked! Thanks Chris Now, *why* does that work? The function manage_addProduct looks like its for adding new products under the Control_Panel. That isn't what it's for? I don't have to do dtml-with "manage_addProduct['OFSP']" to use manage_addUserFolder ? I noticed this in the OFSP stuff. from :lib/python/Products/OFSP/__init__.py line :153 context.registerClass( AccessControl.User.UserFolder, constructors=(AccessControl.User.manage_addUserFolder,), icon='images/UserFolder_icon.gif', legacy=(AccessControl.User.manage_addUserFolder,), ) context.registerBaseClass(AccessControl.User.UserFolder, 'User Folder') context.registerBaseClass(AccessControl.User.User) Could adding something like this to the GUF fix the problem I had and let manage_addGenericUserFolder work by itself? Jason __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )