Ok<br>Then I put another function into the monkey patch to rename the objects<br>Did you try to install the product? I&#39;m specially interested in the opinions of big helpers like you<br><br>Thank you very much!<br><br><div>
<span class="gmail_quote">2008/1/11, Dieter Maurer &lt;<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Garito wrote at 2008-1-11 17:34 +0100:<br>&gt;I&#39;m try to implement the edition part of ZSM and I begin with the rename<br>&gt;objects functionality<br>&gt;I create a InPlaceEditor object to rename every branch but when I submit the
<br>&gt;form the rename command works ok but the response is the manage_main (or<br>&gt;similar) and the tree disappear<br><br>Many &quot;manage_*&quot; functions/methods have been designed not only to be<br>used as simple functions but as also part of the ZMI.
<br>When used as ZMI functions, they must (eventually) return some HTML.<br>They either do this by itself returning the HTML or by redirecting<br>to an HTML page.<br><br>These functions often distinquish between the &quot;normal function use&quot;
<br>and the &quot;ZMI use&quot; by looking whether &quot;REQUEST&quot; is passed in.<br>If used as a ZMI functionality, the ZPublisher will pass in &quot;REQUEST&quot;<br>automatically.<br><br>&gt;Is there a way to make manage_renameObjects returns the changed values?
<br>&gt;If not I need to write another monkey_patched function, isn&#39;t it?<br><br>If you need to use these functions via the &quot;ZPublisher&quot;,<br>then it is best to make a little wrapper that is &quot;ZPublisher&quot; called
<br>instead and then calls the function without passing &quot;REQUEST&quot;.<br><br><br><br>--<br>Dieter<br></blockquote></div><br><br clear="all"><br>-- <br>Mis Cosas<br><a href="http://blogs.sistes.net/Garito">http://blogs.sistes.net/Garito
</a><br>Zope Smart Manager<br><a href="http://blogs.sistes.net/Garito/670">http://blogs.sistes.net/Garito/670</a>