Hi,
I'm currently having the following issue when trying to pickle SQLObjects
(0.5.2) / python 2.2:
-------------------------------------------------------------------------
from cPickle import dump, load
class SessionTest:
def __init__(self, val):
self._dict = {'row': val}
# get an SQLObject with id == 1
a = Alinea_getArticleWithID(1)
test = SessionTest(a)
f = open('toto','w')
dump(test,f)
f.close()
print open('toto').read()
-------------------------------------------------------------------------
dump(test,f)
cPickle.UnpickleableError: Cannot pickle <type 'thread.lock'> objects
Has anybody succeeded pickling SQLObjects ?
Cheers,
PS: I'm not subscribed to the list, please reply to ph...@re...
--
PN
|