Hi

Simply found that the PickleCol has an argument pickleProtocol that is
not used.

I tried the following patch: In PickleValidator class

    def from_python(self, value, state):
        if value is None:
            return None
-        return pickle.dumps(value)
+        return pickle.dumps(value,protocol=self.pickleProtocol)

I need that because without protocol 2, I cannot store sqlobjects in
pickleCol...
I know there is a workaround, but it would be cool to have that.

However this does not work because when reading back the object, I get
an error saying that the 'ascii' codec can't decode a specific byte.
Seems that the pickleCol uses BlobCol and mysql returns unicode...

SqlObject version is 0.7.0

Regards
Sophana




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to