[Zope] ZClient Error!

Shashank Ashtikar shashank.ashtikar at gmail.com
Mon Dec 27 04:56:16 EST 2004


Hi all,

I am trying to use ZClient to access a Python Script inside Zope serve
script is very simple it is as follows.

#!/usr/bin/python

from ZPublisher import Client


Client.call("http://localhost:8080/test_folder/Portal1/abcd",
           'username',
           'password')

This is executed from a command prompt. When I execute this script I
get following error.

Traceback (most recent call last):
  File "./testCron.py", line 8, in ?
    'shashank1')
  File "/usr/share/partecs/zope/lib/python/ZPublisher/Client.py", line
277, in call
    return apply(Function(url,username=username, password=password), (), kw)
  File "/usr/share/partecs/zope/lib/python/ZPublisher/Client.py", line
154, in __call__
    raise NotAvailable, RemoteException(
bci.NotAvailable: string index out of range (File:
http://localhost:8080/test_folder/Portal1/abcd Line: [])
None None for None

I am using Zope 2.7.3, Python 2.3.4 with Plone 2.0.5 installed this
script I am trying to access is inside a Plone site

I googled around but I could not get a satisfactory answer.

TIA

-- 
Shashank Ashtikar


More information about the Zope mailing list