RESULTS OF TESTS
TEST:
Trying to picle/unpickle the req object:
CODE:
from mod_python import Session, apache
def handler(req):
d = { "request" : req }
test1 = cPickle.loads(cPickle.dumps(d))
req.write(str(test1))
RESULT:
TypeError: can't pickle mp_request objects
COMMENT:
Expect
OFFENDING CODE
handler's code:
from mod_python import Session, apache
from ozone.storage.Storable import Storable
from ozone.websites.Website import Website
from ozone.websites.DynamicWebsite import DynamicWebsite
def handler(req):
req.sess = Session.FileSession(req)
req.sess['storable
Nicolas Lehuen wrote:
Hi dharana, I have a two parts answer :
1) One thing I'm really sure is that there is no way for the pickle
module to handle the request object correctly. Hence, if the session
code is trying to pickle an object which contains a reference to a
request object, I have no idea
dharana wrote:
OFFENDING CODE
handler's code:
from mod_python import Session, apache
from ozone.storage.Storable import Storable
from ozone.websites.Website import Website
from ozone.websites.DynamicWebsite import DynamicWebsite
def handler(req):
req.sess = Session.FileSession(req)
re
I am really ashamed :(
The error was a bug in psycopg. His author warned me a few days ago about a
severe bug that was recently fixed and urged me to sync what I didn't did until
today.
The problem was caused by DictRow objects which where stored in all my Storable
objects. I don't know the
dharana wrote:
I wonder if _dbschema, which is a class attribute, is the problem?
Quoting from the python documentation for pickle
(http://www.python.org/doc/2.3.5/lib/node65.html)
Yes, it is a class attribute.
"""Similarly, classes are pickled by named reference, so the same
restricti
Hmmm ... it appears I was over-optimistic about my patches :-)
Most of them related to win32 installation rather than building.
There are a few changes to setup.py.in that rearrange it but most are to
the win32_postinstall.py
I had a power failure two days in a row so sorry for the delay ; plea