<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<DIV><FONT face=Arial size=2>Hi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>try like this:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>manage_addZMySQLConnection(self, id='dbConnection', title = 'dbConnection', 
connection_string = configFile.DbConnString)</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Dragos</FONT></DIV>
<DIV>&nbsp;</DIV></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=zope.org@pooryorick.com href="mailto:zope.org@pooryorick.com">Poor 
  Yorick</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=zope@zope.org 
  href="mailto:zope@zope.org">zope@zope.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, March 13, 2004 1:32 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Zope] manage_afterAdd</DIV>
  <DIV><BR></DIV>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?<BR><BR>class 
  myClass(mxmObjectManager.mxmObjectManager):<BR>'This is the doc 
  string'<BR><BR>meta_type='My New Class'<BR><BR>def __init__(self, 
  id='foo'):<BR>mxmObjectManager.mxmObjectManager.__init__(self, id)<BR><BR>def 
  manage_afterAdd(self, containter=None, 
  content=None):<BR>self.manage_addZMySQLConnection(<BR>id='dbConnection', title 
  = 'dbConnection',<BR>connection_string = 
  configFile.DbConnString)<BR><BR><BR>Poor Yorick<BR>zope.org@pooryorick.com<BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Zope maillist&nbsp; 
  -&nbsp; 
  Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**&nbsp;&nbsp; 
  No cross posts or HTML encoding!&nbsp; **<BR>(Related lists - 
  <BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-announce<BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-dev 
  )<BR></BLOCKQUOTE></BODY></HTML>