[Zope] Syntax error in XML-RPC How to?

Michel Pelletier michel@digicool.com
Thu, 09 Mar 2000 14:51:55 -0800


Andrew Diller wrote:
> 
> On Thu, Mar 09, 2000 at 12:56:42PM -0800, Michel Pelletier wrote:
> > What's the traceback embedded in the HTML source of the error page?
> >
> > It will point you directly to where the syntax error is.
> >
> > -Michel
> >
> 
> Well, it dosen't point to much, IMHO.
> 
> Traceback (innermost last):
>   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module
>   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 179, in publish
>   File /usr/local/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
>   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 165, in publish
>   File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
>     (Object: manage_addExternalMethod)
>   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object
>     (Object: manage_addExternalMethod)
>   File /usr/local/zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 125, in
> manage_addExternalMethod
>   File /usr/local/zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 167, in __init__
>     (Object: ba)
>   File /usr/local/zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 186, in manage_edit
>     (Object: ba)
>   File /usr/local/zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 195, in getFunction
>     (Object: ba)
>   File /usr/local/zope/lib/python/App/Extensions.py, line 205, in getObject
>     (Info: ('/usr/local/zope/Extensions/ba.py', 'ba'))
> SyntaxError: (see above)
> 
> I've named the python script ba.py.

Ah yes, I didn't realize it was in an external method.  External methods
mask the exact error information.

Just import ba.py into a python interpreter *without* Zope and it will
tell you where the error is.

-Michel