I used to use Client.py quite a lot for calling zope objects through the web
from python.

However, now that I've upgraded to Zope 2.x it fails.


(Zope 2.2 ZPublisher, connecting to Zope 2.1.2)
Traceback (innermost last):
  File "/u/g/aedmondson/backups/pack_db.py", line 22, in ?
    pack()
  File "/u/g/aedmondson/backups/pack_db.py", line 19, in pack
    return(apply(Client.Function(place,username=user, password=pwd), (),
kw))
  File "/usr/local/ZOPE2.1.2/lib/python/ZPublisher/Client.py", line 221, in
__call__
    raise NotAvailable, RemoteException(
bci.NotAvailable: (111, 'Connection refused') (File:
http://localhost/Zope/fastcgi/Control_Panel/Database/manage_pack Line:
days:int=0)
None None for None

(Both Zope 2.2 (in fact, the same python))
Traceback (innermost last):
  File "<stdin>", line 11, in ?
  File "<stdin>", line 8, in test
  File "/usr/local/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Client.py",
line 221, in __call__
    raise NotAvailable, RemoteException(
bci.NotAvailable: argument 1: expected read-only character buffer, tuple
found (File: http://localhost/idm Line: [])
None None for None

Is this a problem with ZPublisher, or me?

Thanks,

-Ed


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to