On Sat May 20 2006 17:09, Ron Bickers wrote:

> > I have two content objects (both are containers) but I cannot add one
> > to another as give here :
> >
> >     def create(self, data):
> >         square = Square()
> >         square.name = data['name']
> >         square.description = data['description']
> >         company = Company()
> >         company.name = data['companyname']
> >         company.description = data['companydescription']
> >         square['Comp1'] = company
> >         ...
> >         return square

> I did this very thing a couple days ago in 3.3 and it works for me, except
> that I'm using zope.app.zapi.createObject to create the instances of my
> content objects.

Ok.  So now I'm wondering... what's the point in using createObject if I can 
just create an object the Python way?

-- 
Ron
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to