Greets;
Working through the examples from
http://opengroupware.org/en/devs/resources/xmlrpc/adduser/index.html and
testing dev xmlrpclib.py as recommended it seems that things have
changed. Testing Bjorns adduser script results in the following:
linux:/home/chris123 # /usr/local/bin/python2.3
/home/chris123/Downloads/OGo_stuff/python_scripts/ogo_add_user.py
XML-RPC Daemon URL: http://localhost:22022/RPC2
Username: root
Password:
-- Adding new user
Enter login: test12345
Password:
Lastname: smith
Firstname: jane
Create user? [Y/n]: Y
Traceback (most recent call last):
File
"/home/chris123/Downloads/OGo_stuff/python_scripts/ogo_add_user.py",
line 110, in ?
returnCode = tool.run()
File
"/home/chris123/Downloads/OGo_stuff/python_scripts/ogo_add_user.py",
line 97, in run
result = self.addUserToSystem()
File
"/home/chris123/Downloads/OGo_stuff/python_scripts/ogo_add_user.py",
line 76, in addUserToSystem
print "==> created account %s with ID %s" % (result['login'],
KeyError: 'companyId'
Yet checking OGo via the webUI all users created by using this script
are available and functional. Perhaps this is known. Will check archives
later.
/ch
--
OpenGroupware.org XML-RPC
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|