[Zope] newbie

Jens Vagelpohl jens at dataflake.org
Mon Apr 5 23:59:03 EDT 2004


> I installed Zope 2.7 in Windows. I've created a simple hello.py 
> containing a hello function:
> def hello( self, name="World" ):
>    return "Hello, %s" % name
> This module is in D:\Zope-Instance\Extensions\.
>
> In Zope, I created a folder from root and add the hello external 
> method to that folder. I clicked on the external method and then 
> clicked on the Test tab, and instead of running the method,  a window 
> opened and ask if I wanted to download hello.txt.
>
> What's happening???

That's your browser reacting to the fact that the response returned 
from that method does nothing to tell it about the content type it is 
receiving I would assume.

jens

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2365 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20040405/5326d8c5/smime.bin


More information about the Zope mailing list