Can anyone knowledgeable about ZODB/Persistence explain why this
generates the error:
TypeError: unbound method __init__() must be called with instance as
first argument
---------- cut
class MXSessionManager (base.MXPersistent, SessionManager):
def __init__(self):
SessionManager.__init__(self)
obj = MXSessionManager()
---------- cut
but the following, included with Greg's examples works fine?
---------- cut
class MXSessionManager (base.MXPersistent, SessionManager):
__SessionManager_init = SessionManager.__init__
def __init__ (self):
self.__SessionManager_init()
obj = MXSessionManager()
---------- cut
It's driving me crazy!
-Jeff
P.S I also found another gotcha. The use of form tokens in Quixote's
forms class *requires* either an FCGI-based setup or a persistent
session manager, as the form tokens are discarded otherwise and you
get complaints about double submission of forms.
Hence the reason I'm trying to get a persistent session manager
working... ;-)
Suggestion: add a config conditional to disable form token checking
in a future Quixote release, for developers.