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">&lt;<a href="mailto:m.van.rees@zestsoftware.nl">m.van.rees@zestsoftware.nl</a>&gt;</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">&gt;<br>
&gt; Maurits,<br>
&gt;<br>
&gt; Thanks for the pointer...I forgot about how the error log filters out<br>
&gt; certain errors.<br>
&gt;<br>
&gt; The error said that it could not find the method in my python file. Well, it<br>
&gt; is there. Then I realized I was cutting and pasting the ID, method name,<br>
&gt; etc. from the ahs site to the ahs_dev site. I inadvertently added a trailing<br>
&gt; space, so the method could not be found. I would call this a bug, since I<br>
&gt; believe a method name in python cannot have a trailing (or leading) spaces.<br>
&gt; In the traceback below, and you can see the trailing space in the method<br>
&gt; name that was picked up by the add external method form:<br>
&gt;<br>
&gt; Traceback (innermost last):<br>
&gt;   Module ZPublisher.Publish, line 115, in publish<br>
&gt;   Module ZPublisher.mapply, line 88, in mapply<br>
&gt;   Module ZPublisher.Publish, line 41, in call_object<br>
&gt;   Module Products.ExternalMethod.ExternalMethod, line 59, in<br>
&gt; manage_addExternalMethod<br>
&gt;   Module Products.ExternalMethod.ExternalMethod, line 111, in __init__<br>
&gt;   Module Products.ExternalMethod.ExternalMethod, line 134, in manage_edit<br>
&gt;   Module Products.ExternalMethod.ExternalMethod, line 141, in getFunction<br>
&gt;   Module App.Extensions, line 158, in getObject<br>
&gt;    - __traceback_info__:<br>
&gt; (&#39;/opt/Plone-2.5.5/zeocluster/client1/Extensions/WorkflowEmailScripts.py&#39;,<br>
&gt; &#39;WorkflowEmailScripts&#39;)<br>
&gt; NotFound: The specified object, &lt;em&gt;edit_new_content &lt;/em&gt;, was not<br>
&gt; found in module, &lt;em&gt;WorkflowEmailScripts&lt;/em&gt;.<br>
&gt;<br>
&gt; If my understanding of python is correct, shouldn&#39;t manage_addExternalMethod<br>
&gt; stip off leading and trailing white space from the id, title, module, and<br>
&gt; function names passed into the method? In ExternalMethod,<br>
&gt; manage_addExternalMethod does this:<br>
&gt;     id=str(id)<br>
&gt;     title=str(title)<br>
&gt;     module=str(module)<br>
&gt;     function=str(function)<br>
&gt;<br>
&gt; should it be?<br>
&gt;     id=str(id).strip()<br>
&gt;     title=str(title).strip()<br>
&gt;     module=str(module).strip()<br>
&gt;     function=str(function).strip()<br>
<br>
</div></div>Such a change would make sense for me.<br>
<div class="im"><br>
&gt; Thanks again for shining a light on an otherwise murky road to<br>
&gt; understanding! How would I submit a bug report, if you think there is a bug<br>
&gt; 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>
&quot;This is your day, don&#39;t let them take it away.&quot; [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>