On Mon, 30 Aug 1999, Victor Ng wrote:
Hi, how do I get a simple "Hello World" type Python program to run under Zope? I've tried going over the documentation, but there doesn't seem to be any mention of how to do this.
Specifically - where do I put my .py file? I'm running on a Linux box. Well, put the following into ..../Zope-....-src/Extensions/test.py: def testMethod(self,nick=None): "This is needed to make Bobo happy." if nick: return "Hallo %s" % nick else: return "Hello World!"
Now, in the ZOPE management interface, add an external method t143, which uses module "test" and method "testMethod". Now open your browser and try: http://myzope/foldertoexternalmethod/t143 http://myzope/foldertoexternalmethod/t143?nick=Vic Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA