This is the __init__.py of my product (ZID): from ZIDProduct import ZID def initialize ( context ): context.registerClass( ZID, constructors = ( ZID.manage_addZIDForm, ZID.manage_addZID, ZID.manage_add_folder ) ) I want the constructor ZID.manage_add_folder to get called at the end of the initialize function. How do I do this? -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup
I believe you want to add the folder when you create the object. in the ZIDProduct file, in your manage_addZID method ob=ZID() ob.manage_addFolder(id='id', title='title',createPublic=0,createUserF=0,REQUEST=None) where id is the folder id/title is the folder title if createPublic has a true value a index_html file is created within the folder if createUserF has a true value an acl_user folder is created within the folder Matt Ficken wrote:
This is the __init__.py of my product (ZID):
from ZIDProduct import ZID
def initialize ( context ): context.registerClass( ZID, constructors = ( ZID.manage_addZIDForm, ZID.manage_addZID, ZID.manage_add_folder ) )
I want the constructor ZID.manage_add_folder to get called at the end of the initialize function. How do I do this?
-- "The measure of a man is what he does with power" --Plato Jason Bush | (402) 471-6517 | jason@nol.org | http://www.nol.org
Matt Ficken wrote at 2003-3-28 17:39 -0500:
This is the __init__.py of my product (ZID): ... I want the constructor ZID.manage_add_folder to get called at the end of the initialize function. How do I do this?
Maybe you look at the third party product "StartupScripts"... Dieter
participants (3)
-
Dieter Maurer -
Jason Bush -
Matt Ficken