[Zope] Newbie: How-To: Using ZClient to Access Another webserver

Maarten Slaets maarten.slaets@kpnqwest.com
Mon, 08 Nov 1999 11:37:39 +0100


hi zopers,

This howto (Using ZClient to Access Another webserver) by lstaffor explains
how to connect to another webserver (for instance). i did exactly as
explained on:
http://www.zope.org/Members/lstaffor/ZClientMethod
but when i try to add the external method in the web management interface i
get this traceback:

<traceback>
Traceback (innermost last):
  File /usr/local/Zope-2.0.1-src/lib/python/ZPublisher/Publish.py, line 214,
in publish_module
  File /usr/local/Zope-2.0.1-src/lib/python/ZPublisher/Publish.py, line 179,
in publish
  File /usr/local/Zope-2.0.1-src/lib/python/Zope/__init__.py, line 201, in
zpublisher_exception_hook
  File /usr/local/Zope-2.0.1-src/lib/python/ZPublisher/Publish.py, line 165,
in publish
  File /usr/local/Zope-2.0.1-src/lib/python/ZPublisher/mapply.py, line 160,
in mapply
    (Object: manage_addExternalMethod)
  File /usr/local/Zope-2.0.1-src/lib/python/ZPublisher/Publish.py, line 102,
in call_object
    (Object: manage_addExternalMethod)
  File
/usr/local/Zope-2.0.1-src/lib/python/Products/ExternalMethod/ExternalMethod.py,
line 126, in manage_addExternalMethod
  File
/usr/local/Zope-2.0.1-src/lib/python/Products/ExternalMethod/ExternalMethod.py,
line 166, in __init__
    (Object: webClient)
  File
/usr/local/Zope-2.0.1-src/lib/python/Products/ExternalMethod/ExternalMethod.py,
line 185, in manage_edit
    (Object: webClient)
  File
/usr/local/Zope-2.0.1-src/lib/python/Products/ExternalMethod/ExternalMethod.py,
line 194, in getFunction
    (Object: webClient)
  File /usr/local/Zope-2.0.1-src/lib/python/App/Extensions.py, line 204, in
getObject
    (Info: ('/usr/local/Zope-2.0.1-src/Extensions/WebClient.py',
'WebClient'))
SyntaxError: (see above
</traceback>

1/ Is there something wrong with the source given on the website? (i did an
exact copy paste, because i don't know pyhton yet. 'yet' because i will
learn it, but now i have to finish this project rapidly otherwise my boss
will finish me:-)
2/ Does anyone have the WebClient.py source of lstaffor?

-- 
Maarten Slaets
Web Developer
KPNQwest Belgium
http://www.fonky.com/vcard/MaartenSlaets/