Thanks!<br> <br>I added <a href="https://bugs.launchpad.net/bugs/423171" class="sprite bug-undecided">Bug #<span>423171</span>:</a><div class="object identifier">
</div>
<br>to Zope 2.<br> <br>Cheers!<br> <br>Mark<div class="object identifier">
</div>
<br><div class="gmail_quote">On Wed, Sep 2, 2009 at 12:22 AM, Maurits van Rees <span dir="ltr"><<a href="mailto:m.van.rees@zestsoftware.nl">m.van.rees@zestsoftware.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Mark Phillips, on 2009-09-02:<br>
<div><div></div><div class="h5">><br>
> Maurits,<br>
><br>
> Thanks for the pointer...I forgot about how the error log filters out<br>
> certain errors.<br>
><br>
> The error said that it could not find the method in my python file. Well, it<br>
> is there. Then I realized I was cutting and pasting the ID, method name,<br>
> etc. from the ahs site to the ahs_dev site. I inadvertently added a trailing<br>
> space, so the method could not be found. I would call this a bug, since I<br>
> believe a method name in python cannot have a trailing (or leading) spaces.<br>
> In the traceback below, and you can see the trailing space in the method<br>
> name that was picked up by the add external method form:<br>
><br>
> Traceback (innermost last):<br>
> Module ZPublisher.Publish, line 115, in publish<br>
> Module ZPublisher.mapply, line 88, in mapply<br>
> Module ZPublisher.Publish, line 41, in call_object<br>
> Module Products.ExternalMethod.ExternalMethod, line 59, in<br>
> manage_addExternalMethod<br>
> Module Products.ExternalMethod.ExternalMethod, line 111, in __init__<br>
> Module Products.ExternalMethod.ExternalMethod, line 134, in manage_edit<br>
> Module Products.ExternalMethod.ExternalMethod, line 141, in getFunction<br>
> Module App.Extensions, line 158, in getObject<br>
> - __traceback_info__:<br>
> ('/opt/Plone-2.5.5/zeocluster/client1/Extensions/WorkflowEmailScripts.py',<br>
> 'WorkflowEmailScripts')<br>
> NotFound: The specified object, <em>edit_new_content </em>, was not<br>
> found in module, <em>WorkflowEmailScripts</em>.<br>
><br>
> If my understanding of python is correct, shouldn't manage_addExternalMethod<br>
> stip off leading and trailing white space from the id, title, module, and<br>
> function names passed into the method? In ExternalMethod,<br>
> manage_addExternalMethod does this:<br>
> id=str(id)<br>
> title=str(title)<br>
> module=str(module)<br>
> function=str(function)<br>
><br>
> should it be?<br>
> id=str(id).strip()<br>
> title=str(title).strip()<br>
> module=str(module).strip()<br>
> function=str(function).strip()<br>
<br>
</div></div>Such a change would make sense for me.<br>
<div class="im"><br>
> Thanks again for shining a light on an otherwise murky road to<br>
> understanding! How would I submit a bug report, if you think there is a bug<br>
> here. Just a newbie trying to give back.<br>
<br>
</div>Products.ExternalMethod is part of Zope 2. The tracker for that is on<br>
launchpad: <a href="https://bugs.launchpad.net/zope2/" target="_blank">https://bugs.launchpad.net/zope2/</a><br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Maurits van Rees | <a href="http://maurits.vanrees.org/" target="_blank">http://maurits.vanrees.org/</a><br>
Work | <a href="http://zestsoftware.nl/" target="_blank">http://zestsoftware.nl/</a><br>
"This is your day, don't let them take it away." [Barlow Girl]<br>
<br>
<br>
_______________________________________________<br>
Product-Developers mailing list<br>
<a href="mailto:Product-Developers@lists.plone.org">Product-Developers@lists.plone.org</a><br>
<a href="http://lists.plone.org/mailman/listinfo/product-developers" target="_blank">http://lists.plone.org/mailman/listinfo/product-developers</a><br>
</div></div></blockquote></div><br>