[Zope] - Importing objects

Amos Latteier amos@aracnet.com
Tue, 08 Dec 1998 12:05:44 -0800


>Okay. In one particular case, I have a sort of status report which is in a
>fixed location in a flat text file, but it's not even clear how I can get
>that. Basically, I have a module in the Extensions directory. It defines
>one function. When I try to add an External method, it does find the
>module, and it does find the function, but then it barfs:
>
>Traceback (innermost last):
>  File /home/rlist/Zope-1.9b1-src/lib/python/ZPublisher/Publish.py, line
>861, in publish_module
>  File /home/rlist/Zope-1.9b1-src/lib/python/ZPublisher/Publish.py, line
>583, in publish
>    (Info: /Remailers/manage_addExternalMethod)
>  File
>/home/rlist/Zope-1.9b1-src/lib/python/Products/ExternalMethod/ExternalMetho
d.py,
>line 125, in manage_addExternalMethod
>    (Object: Navigation)
>  File
>/home/rlist/Zope-1.9b1-src/lib/python/Products/ExternalMethod/ExternalMetho
d.py,
>line 167, in __init__
>    (Object: Item)
>  File
>/home/rlist/Zope-1.9b1-src/lib/python/Products/ExternalMethod/ExternalMetho
d.py,
>line 186, in manage_edit
>    (Object: Item)
>  File
>/home/rlist/Zope-1.9b1-src/lib/python/Products/ExternalMethod/ExternalMetho
d.py,
>line 207, in getFunction
>    (Object: Item)
>  File /home/rlist/Zope-1.9b1-src/lib/python/App/Extensions.py, line 104,
>in __cmp__
>AttributeError: 'None' object has no attribute 'co_argcount'
>
>So I'm obviously overlooking something.

It seems that External Methods are broken in beta 1. There was at least on
patch posted to the Zope list. They should be fixed in beta 2. Sorry.

-Amos