On Dec 14, 2005, at 11:43 PM, Juan Lago Cabrera wrote:

Hi again,



I forgot to mention that the script works very well when the firstName and lastName of the user to be inserted doesn’t contain any of the acute characters (áéíóúÁÉÍÓÚñÑ).

I’m using Zope 2.8.4 and CPS 3.3.8. I’ve downloaded CPSRemoteController from the SVN today in the afternoon. The “acl_users” is a Default Site user folder (User Folder with Groups).



On the other hand, when adding user directly from Directories -> Members in a CPS Default Site, it goes well with acute characters in insert mode but when searching members through “Search an entry”, I got the following error:

'ascii' codec can't decode byte 0xfa in position 8: ordinal not in range(128)


How do you work with French acute characters?
I don't know about XML-RPC, but this is a bug. Can you please fill a ticket in http://svn.nuxeo.org/trac/pub with the traceback as an attached file ?

Thanks a lot for the report.



Thank you very much again.



Juan Lago

Fundación Iavante

Spain



-----Mensaje original-----
De: Juan Lago Cabrera
Enviado el: miércoles, 14 de diciembre de 2005 19:10
Para: '[email protected]'
Asunto: CPSRemoteController and Spanish characters Error!!



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.



Juan Lago Cabrera
Coordinador de Proyecto
FUNDACIÓN IAVANTE
[EMAIL PROTECTED]
Tel. 951 015 300



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


---------
Georges Racinet                        Nuxeo SAS
[EMAIL PROTECTED]                http://nuxeo.com
Tel: +33 (0) 1 40 33 71 73


_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to