[Zope] problem with External Methods

Tino Wildenhain tino@wildenhain.de
Tue, 01 May 2001 02:25:45 +0200


Hi marc,

it would be more helpful if you provide your
external methods code also :)

Regards
Tino

--On Montag, 30. April 2001 16:39 -0400 marc lindahl <marc@bowery.com> 
wrote:

> on 2.3.2 I just tried to add an External Method and got this error --
> anyone have an idea?  Seems like some stuff in ExternalMethod.py isn't
> getting initialized (for example, if I initialize func_defaults in the
> .py I'm trying to externalize, it gives another error, about func_code).
> Is there requirements of the .py, something that needs to be imported or
> whatever, for this product to work?
>
> Error listing:
>
>
>                Zope Error
>
>                Zope has encountered an error while publishing this
> resource.
>
>                Error Type: AttributeError
>                Error Value: func_defaults
>
>
>
>                Troubleshooting Suggestions
>
>                      The URL may be incorrect.
>                      The parameters passed to this resource may be
> incorrect.
>                      A resource that this resource relies on may be
> encountering an error.
>
>                For more detailed information about the error, please refer
> to the HTML source for this page.
>
>                If the error persists please contact the site maintainer.
> Thank you for your patience.
>
>
>
>
> Traceback (innermost last):
>   File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
> 223, in publish_module
>   File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
> 187, in publish
>   File /usr/local/zope/Zope-2.3.1/lib/python/Zope/__init__.py, line 221,
> in zpublisher_exception_hook
>   File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
> 171, in publish
>   File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/mapply.py, line
> 160, in mapply
>     (Object: manage_addExternalMethod)
>   File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
> 112, in call_object
>     (Object: manage_addExternalMethod)
>   File
> /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet
> hod .py, line 131, in manage_addExternalMethod
>   File
> /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet
> hod .py, line 179, in __init__
>     (Object: mp3info)
>   File
> /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet
> hod .py, line 202, in manage_edit
>     (Object: mp3info)
>   File
> /usr/local/zope/Zope-2.3.1/lib/python/Products/ExternalMethod/ExternalMet
> hod .py, line 217, in getFunction
>     (Object: mp3info)
> AttributeError: (see above)
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )