Re: general xmlrpc
Chris H <[email protected]>
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
Helge Hess wrote:
>
> Thats weird. Can you send us the output if you insert this line prior
> the breaking print in line 75:
> ---
> print "===> CREATED DICT:", result, type(result)
------------------------------------
Create user? [Y/n]: Y
==> CREATED DICT: {'isTemplateUser': '', 'templateUserId':
'skyrix://linux.local/t23/9999', 'objectVersion': 1, 'isAccount': 1,
'isExtraAccount': 0, 'isPerson': 1, 'ownerId':
'skyrix://linux.local/t23/10000', 'login': 'test5', 'isIntraAccount': 1,
'id': 'skyrix://linux.local/t23/11360'} <type 'dict'>
Traceback (most recent call last):
File
"/home/chris123/Downloads/OGo_stuff/python_scripts/ogo_add_user2.py",
line 111, in ?
returnCode = tool.run()
File
"/home/chris123/Downloads/OGo_stuff/python_scripts/ogo_add_user2.py",
line 98, in run
result = self.addUserToSystem()
File
"/home/chris123/Downloads/OGo_stuff/python_scripts/ogo_add_user2.py",
line 77, in addUserToSystem
print "==> created account %s with ID %s" % (result['login'],
KeyError: 'companyId'
----------------------------eof-------
Note: changing the syntax in line 75 resulted in no change in the error
output either.
/ch
--
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc