[Zope] createInObjectManager Confusion

Edward Pollard pollej@uleth.ca
Mon, 09 Dec 2002 11:44:02 -0700


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)

Since this code works just fine in a script being called by an actual
web page, I presume that context.REQUEST is the problem here. I'm not
even sure what that means when the requestor is another script -
probably nothing at all.

All examples I've ever seen of createInObjectManager involve
context.REQUEST as the second parameter, what should I be using instead?

Thanks,

Ed