Mailing List Archive

Message in a bottle...
I have subclassed the ZSyncer product, adding properties "cp" and "rcp",
to copy a folder content from a local folder to a remote folder (cp) or
from a remote folder to a local folder (rcp).

rcp really calls cp on the remote host via xml-rpc.

cp works, but rcp does not !!

And I think it should, this is pretty simple, all I do in rcp is:

serverconn = self._serverConn(self._check_http(srv))
result = serverconn.cp(remote_path,local_path,type)

_serverConn is internal to the product, and is based in

# Thanks Amos and Chris at DC
# http://www.zope.org/Members/Amos/XML-RPC

Well, the error I have calling rcp method from a python script is the
following, BUT ZOPE DOESN'T GIVE ME THE ERROR MESSAGE on the top the
screen, so its hard to know WHY it is failing.

I think it is permission related, because the remote method is not
launched. But I don't understand why cp methods works (it uses also
xml-rpc to copy the objects), and not rcp.

I have been fetching in Zope code all the afternoon, something is failing
in the unmarshaling of the response of the xml-call, but I have no idea
what. Again, the xml-rpc procedures are working ok for transfering
objects from local to remote host. The permissions _seem_ correctly
configured, I have no error browsing the folders from the ZMI.

Traceback (innermost last):
File E:\Archivos de programa\zwin\lib\python\ZPublisher\Publish.py, line
223, in publish_module
File E:\Archivos de programa\zwin\lib\python\ZPublisher\Publish.py, line
187, in publish
File E:\Archivos de programa\zwin\lib\python\Zope\__init__.py, line 226,
in zpublisher_exception_hook
(Object: LockableItem)
File E:\Archivos de programa\zwin\lib\python\ZPublisher\Publish.py, line
171, in publish
File E:\Archivos de programa\zwin\lib\python\ZPublisher\mapply.py, line
160, in mapply
(Object: copia)
File E:\Archivos de programa\zwin\lib\python\ZPublisher\Publish.py, line
112, in call_object
(Object: copia)
File E:\Archivos de
programa\zwin\lib\python\Shared\DC\Scripts\Bindings.py, line 324, in
__call__
(Object: copia)
File E:\Archivos de
programa\zwin\lib\python\Shared\DC\Scripts\Bindings.py, line 354, in
_bindAndExec
(Object: copia)
File E:\Archivos de
programa\zwin\lib\python\Products\PythonScripts\PythonScript.py, line 363,
in _exec
(Object: copia)
(Info: ({'script': <PythonScript instance at 01FDED20>, 'context':
<Folder instance at 024F30A0>, 'container': <Folder instance at 024F30A0>,
'traverse_subpath': []}, (), {}, None))
File Script (Python), line 1, in copia
(Object: guarded_getattr)
File E:\Archivos de
programa\zwin\lib\python\Products\ZSyncerMute\ZSyncerMute.py, line 51, in
rcp
(Object: ZSyncerMute)
File E:\Archivos de programa\zwin\lib\python\xmlrpclib.py, line 547, in
__call__
File E:\Archivos de programa\zwin\lib\python\xmlrpclib.py, line 630, in
__request
File E:\Archivos de
programa\zwin\lib\python\Products\ZSyncer\xmlrpclibBasicAuth.py, line 48,
in request
File E:\Archivos de programa\zwin\lib\python\xmlrpclib.py, line 601, in
parse_response
File E:\Archivos de programa\zwin\lib\python\xmlrpclib.py, line 371, in
close
Fault: (see above)


HELP!!!!!!!!!!!!

Thank you very much !!

--

__o
_ \<_
(_)/(_)

Saludos de Julián
EA4ACL
-.-