-----Original Message----- From: Ben Derstine [mailto:bend@realeducation.com] Sent: Thursday, May 06, 1999 8:17 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?
The traceback of the exception raised is in an HTML comment of the error page. This traceback is in a comment so as not to be show to normal users when errors are raised. Setting the environment variable BOBO_DEBUG_MODE to 'yes' will not wrap the traceback in comments. The traceback will make it easier for you to see what's going on. -Michel
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
http://www.realeducation.com "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 )