It looks to me like the python is the problem. Unless I am mistaken, you either need to say
thisapp=licapp.licapp() or from Shared.bend import licapp .
Good luck... and search the list archives for discussion of using the python debugger in combo with Zope development. Howard Clinton Shaw III St. Thomas High School
---------- From: Ben Derstine[SMTP:bend@realeducation.com] Sent: Thursday, May 06, 1999 7:16 PM To: 'zope@zope.org' Subject: [Zope] Creating a class in an external method
Hello,
I'm trying to get an external method to create an object. When I try the external method defined below Zope says an error has occurred. If I take out the line thisapp=licapp.licapp() then it prints 'hi' in a browser. I know my code is okay because this is something I've built external to Zope and I'm now trying to get it working with Zope. Is there anyway to get informative error messages? All afternoon I've been struggling with 'an error has occurred' or ' a serious application error has occurred' and not having a clue what is wrong. Is there an easier way to develop with Zope where you actually get useful feedback on what is going wrong?
import Shared.bend.licapp
def makedepts(): "Create and display deptmartment list"
thisapp=licapp.licapp()
return 'hi'
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 )