I really appreciate the help I've been getting, but I'm really confused as to why I can
create a DTMLMethod or DTMLDocument, but not any product from the products directory.
Granted I don't have many installed, but whats the difference between a Product that
lives in the OFS directory and a Product that lives in the Product directory, and why
can't I create them the same????
Chris McDonough wrote:
> I think he meant ob.__of__(self) which wraps ob into the context of
> self. Useful for returning unwrapped Python objects while you're in
> On Fri, 18 Aug 2000, Kapil Thangavelu wrote:
> > Dieter Maurer wrote:
> > >
> > > Daniel Rusch writes:
> > > > 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
> > > Try: (ob __of__ self).manage_addB(....)
> > whats is ob__of__self ???
> > acquisition at its best?
> > attribute access to get a reference to the ob attr of self?
> > kapil
> > _______________________________________________
> > 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]
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-dev )
Zope maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -