From: Rajeev J S. <raj...@di...> - 2005-09-20 20:02:00
|
Hello all, I have a problem using PickleCol. For some reason, I am not able to set the col value to an emptry dictionary. Could someone offer some insight into this problem ? >>> class A(SQLObject): ... someCol = PickleCol(default=None, length=9999999) ... >>> A.createTable() >>> a = A() >>> a.someCol = None >>> a.someCol = {} Traceback (most recent call last): File "<stdin>", line 1, in ? File "<string>", line 1, in <lambda> <snip> formencode.api.Invalid: expected a pickle string in the PickleCol 'someCol', got <type 'buffer'> instead Regards, Rajeev J Sebastian |