[Zope] createInObjectManager Confusion
Dieter Maurer
dieter@handshake.de
Tue, 10 Dec 2002 20:06:30 +0100
Edward Pollard writes:
> I'd like to call createInObjectManager from within a Python script.
> However, it seems to get completely cantankerous when being called from
> as such
>
> Error Type: TypeError
> Error Value: argument id was ommitted
>
> My code is:
> instance = container.zIndexItem.createInObjectManager('goTest!',
> context.REQUEST)
Try:
id= 'goTest!'
REQUEST.set('id',id)
instance= ...(id,context.REQUEST)
Dieter