Now the problem is with a manager user too (yesterday this user works ok)<br>I try to inspect the process to see where it fails but seems to be ok<br>The error is raised when Zope try to commit the changes<br><br>This is the traceback:
<br><br><pre>Traceback (innermost last):<br> Module ZPublisher.Publish, line 121, in publish<br> Module Zope2.App.startup, line 240, in commit<br> Module transaction._manager, line 96, in commit<br> Module transaction._transaction, line 380, in commit
<br> Module transaction._transaction, line 378, in commit<br> Module transaction._transaction, line 433, in _commitResources<br> Module ZODB.Connection, line 484, in commit<br> Module ZODB.Connection, line 526, in _commit
<br> Module ZODB.Connection, line 553, in _store_objects<br> Module ZODB.serialize, line 407, in serialize<br> Module ZODB.serialize, line 416, in _dump<br> Module copy_reg, line 69, in _reduce_ex<br>TypeError: can't pickle instancemethod objects
<br></pre>
<br><br><div><span class="gmail_quote">2007/7/24, Jonathan <<a href="mailto:dev101@magma.ca">dev101@magma.ca</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>----- Original Message -----<br>From: "Garito" <<a href="mailto:garito@sistes.net">garito@sistes.net</a>><br>To: <<a href="mailto:zope@zope.org">zope@zope.org</a>><br>Sent: Tuesday, July 24, 2007 10:44 AM
<br>Subject: Re: [Zope] Re: Declare constructor as public<br><br><br>> Hi, J Cameron!<br>> With constructor I mean the function I use to create the object. In this<br>> case:<br>> context.manage_addProduct['Yanged'].CrearYanged(NuevaId)
<br>><br>> CrearYanged<br>><br>> How can I convert it to public?<br><br>Make sure that the folder and the script that contains the<br>"context.manage_addProduct['Yanged'].CrearYanged(NuevaId)" code are
<br>accessible to the user.<br><br>Also, the folder where the new 'Yanged' instance is being created must be<br>'writeable' by the user.<br><br>If it is not working, make sure that 'Unauthorized' is not listed in the
<br>'Ignored exception types' list in your error_log, so you can track the<br>problem down.<br><br><br>Jonathan<br><br><br><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>