[Zope] Re: Declare constructor as public

Garito garito at sistes.net
Tue Jul 24 11:47:14 EDT 2007


Now the problem is with a manager user too (yesterday this user works ok)
I try to inspect the process to see where it fails but seems to be ok
The error is raised when Zope try to commit the changes

This is the traceback:

Traceback (innermost last):
  Module ZPublisher.Publish, line 121, in publish
  Module Zope2.App.startup, line 240, in commit
  Module transaction._manager, line 96, in commit
  Module transaction._transaction, line 380, in commit
  Module transaction._transaction, line 378, in commit
  Module transaction._transaction, line 433, in _commitResources
  Module ZODB.Connection, line 484, in commit
  Module ZODB.Connection, line 526, in _commit
  Module ZODB.Connection, line 553, in _store_objects
  Module ZODB.serialize, line 407, in serialize
  Module ZODB.serialize, line 416, in _dump
  Module copy_reg, line 69, in _reduce_ex
TypeError: can't pickle instancemethod objects



2007/7/24, Jonathan <dev101 at magma.ca>:
>
>
> ----- Original Message -----
> From: "Garito" <garito at sistes.net>
> To: <zope at zope.org>
> Sent: Tuesday, July 24, 2007 10:44 AM
> Subject: Re: [Zope] Re: Declare constructor as public
>
>
> > Hi, J Cameron!
> > With constructor I mean the function I use to create the object. In this
> > case:
> > context.manage_addProduct['Yanged'].CrearYanged(NuevaId)
> >
> > CrearYanged
> >
> > How can I convert it to public?
>
> Make sure that the folder and the script that contains the
> "context.manage_addProduct['Yanged'].CrearYanged(NuevaId)" code are
> accessible to the user.
>
> Also, the folder where the new 'Yanged' instance is being created must be
> 'writeable' by the user.
>
> If it is not working, make sure that 'Unauthorized' is not listed in the
> 'Ignored exception types' list in your error_log, so you can track the
> problem down.
>
>
> Jonathan
>
>
>
>


-- 
Mis Cosas
http://blogs.sistes.net/Garito
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070724/350fe653/attachment.htm


More information about the Zope mailing list