general xmlrpc

Chris H <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
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
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.