[Zope] manage_afterAdd
Dragos Chirila
d.chirila at finsiel.ro
Mon Mar 15 04:14:42 EST 2004
Hi
try like this:
manage_addZMySQLConnection(self, id='dbConnection', title = 'dbConnection', connection_string = configFile.DbConnString)
Dragos
----- Original Message -----
From: Poor Yorick
To: zope at zope.org
Sent: Saturday, March 13, 2004 1:32 AM
Subject: [Zope] manage_afterAdd
In the following example I expected 'dbConnection' to be instantiated as a child of 'foo', but it instead is instantiated as a sibling to 'foo'. Could someone please explain what mistake I'm making or how this process works?
class myClass(mxmObjectManager.mxmObjectManager):
'This is the doc string'
meta_type='My New Class'
def __init__(self, id='foo'):
mxmObjectManager.mxmObjectManager.__init__(self, id)
def manage_afterAdd(self, containter=None, content=None):
self.manage_addZMySQLConnection(
id='dbConnection', title = 'dbConnection',
connection_string = configFile.DbConnString)
Poor Yorick
zope.org at pooryorick.com
------------------------------------------------------------------------------
_______________________________________________
Zope maillist - Zope at zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20040315/c01f84d6/attachment.html
More information about the Zope
mailing list