createInObjectManager Confusion
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
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
participants (2)
-
Dieter Maurer -
Edward Pollard