[Zope-dev] Dynamically altering Product methods

Dieter Maurer dieter@handshake.de
Thu, 21 Nov 2002 19:14:50 +0100


boa13@free.fr writes:
 > ....
 > I then get the following error:
 > 
 > 2002-11-20T12:20:45 ERROR(200) ZODB Couldn't load state for
 >  '\x00\x00\x00\x00\x00\x00\n\xa5'
 > Traceback (innermost last):
 >   Module ZODB.Connection, line 533, in setstate
 > TypeError: ('expected 1 arguments, got 0', <extension class
 >  AccessControl.cAccessControl.PermissionRole at 00E35258>, ())
 > 
 > I have spent quite some time debugging this last night. Line 533 in
 > ZODB.Connection is
 > 
 >             state = unpickler.load()
 > 
 > and the message means (it took some time to understand!) that unpickler.load()
 > did not return anything.
That appears not to be your problem:

     All Python calls return something, maybe "None".

     Your error message suggests that a "PermissionRole" instance
     is called without argument.
     This cannot be caused by a wrong "state" value above.


You did read the ZODB3 documentation and the Zope Developper Guide,
before you started to do such difficult staff?


Dieter