Not to sure there Im afraid. The obvious answer is the manage_addB doesnt
exist whereas manage_addDTMLDocument does.

--
     Andy McKay, Developer, ActiveState
     http://www.ActiveState.com
     Programming for the People


----- Original Message -----
From: "Daniel Rusch" <[EMAIL PROTECTED]>
To: "Daniel Rusch" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, August 17, 2000 1:39 PM
Subject: [Zope] Creating an object from within another


> So far so good,
>
> Next hurdle, at least the problems have been cut down to hurdles from
walls.
>
> I have a folderish product say myFolder, in the manage_addMyFolder
function I
> want to create an object of my product B. so I do this:
>
> def manage_addmyFolder(self, id, title='',
>                      REQUEST=None):
>     """Add a new myFolder object with id *id*.
>     """
>     ob=myFolder()
>     ob.id=id
>     ob.title=title
>     self._setObject(id, ob)
>     try: user=REQUEST['AUTHENTICATED_USER']
>     except: user=None
>     ob.manage_addB(id='index_html', title='') <-- if I change this to
> ob.manage_addDTMLDocument(id='index_html', title='') that works ?????
>     .......
>
> I get the following error:
>
> AttributeError: manage_addB
>
>
>
> Any thoughts,
>
> DR
>
>
>
>
>
> _______________________________________________
> 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 )
>


_______________________________________________
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 )

Reply via email to