|
Hi list, I want to add a long amount
of users in CPS from a Python script using CPSRemoteController
and I get the following error when I call “addMember”.
I think the problem is about the Spanish characters with acute accents (f.i, “áéíóúñÑÁÉÍÓÚ”)
and the xmlrpclib. Any idea? Traceback (most recent call last): File "remote_cps.py",
line 44, in ? loadUsers("/mnt/f/cacifi.csv") File "remote_cps.py",
line 40, in loadUsers test_addMember(userId, pwd, firstName,
lastName, email) File "remote_cps.py",
line 19, in test_addMember proxy.addMember(userId, userPassword, userRoles, email, firstName, lastName) File
"/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__ return self.__send(self.__name, args) File
"/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request verbose=self.__verbose File
"/usr/lib/python2.4/xmlrpclib.py", line 1137, in request headers xmlrpclib.ProtocolError: <ProtocolError for
manager:[EMAIL PROTECTED]/cacifi/portal_remote_controller: 500 Internal
Server Error> The main source code follows: … service = 'http://%s:[EMAIL PROTECTED]/%s/portal_remote_controller'
% (user, pwd, server, portal, ) proxy =
ServerProxy(service) userRoles =
('Member',) proxy.addMember(userId, userPassword, userRoles, email, firstName, lastName) … Any help would be really appreciated.
Este correo electrónico y, en su caso, cualquier fichero
anexo, contiene información confidencial exclusivamente dirigida a su(s)
destinatario(s). Toda copia o divulgación deberá ser autorizada por
IAVANTE. This e-mail and any
attachments are confidential and exclusively directed to its adressee(s). Any
copy or distribution will have to be authorized by IAVANTE. |
_______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
