Hello, one problem could be point one. You need a real directory in the ZOPE_ROOT directory, not a Folder in the Zope Web site. But perhaps this is only naming confusion. Than put your file testzope.py into this directory. If you add an External Method named TestZope than you can look it up with localhost:9673/testfolder/Testzope alas don't use the filename, which Zope does not know. Zope loads only the function from the file once, it does not read it if you use the method. HTH __Janko Ben Derstine writes:
Hello, I'm completely new to Zope and I'm trying to understand how external methods work. From the documentation it seems like it should be very simple but yet I can't make it work. Here is what I have done:
1. Created a folder in the Zope directory called Extensions. 2. Created a python script:
def Testzope(): "Testing zope" return 'Does this work?'
3.Named the script testzope.py and placed it in the Extensions folder. 4. I went to the zope management interface and added a folder called testfolder. 5. Within the testfolder I added an External method with ID testingzope, function name Testzope, and module file testzope (without the suffix). 6. When I hit Try It within the management interface it works correctly. 7. When I try to access it from outside the interface I consistently get "Document not found." 8. Here is how I try to access it: localhost:9673/testfolder/testzope/Testzope 9. Anything else I add (DHTML docs) seems to work fine and show up externally.
Any ideas?
Benjamin L Derstine Network Administrator Real Education, Inc. 10200 A East Girard Avenue Denver, CO 80231
e-mail: bend@realeducation.com phone: 303-873-7400 fax: 303-873-7449
"The Leader in Online Education over the Internet"
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )