[Zope-CMF] Porting of normal zope product to cmf

Lynn Walton waltonl@franklin.edu
Mon, 17 Sep 2001 11:16:04 -0500


I'm a total newbie on CMF, so I have no confidence in my answers ... but I think
CMF's  _setObject is found by subclassing PortalContent.
HTH,
Lynn


> I am trying to port an old Zope Product (a Shop product) to CMF.
> In the old product there is a function that creates an order and it would be
> useful to also have this function in the new product :-)
>
> To create the order object these lines of code are used (in my cmf product
> taken from the original product) :
> ob = ShopOrder(id)
> self._setObject(id, ob)
> ob = getattr(self, id)
> ob._initialize(credit_details, order_details, personal_details)
> order = getattr(self, id)
>
> But I get an error in line 2 - the self._setObject() call

> I guess it's because the old object inhereted ObjectManager and mine doesn't
> ... but doesn't CMF has it's own ObjectManager module ???