-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Malcolm Tredinnick schrieb: > > Presumably you realise why this fails now: a TextField only stores text, > not Python object. > > So turn your Python object into a string: look at the Pickle and cPickle > modules in the standard Python library. > > Regards, > Malcolm >
ah, thx, I thought pickle only writes to a file, but now I found cPickle.dumps and cPickle.loads thank you :) mfg Light Lan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iQIVAwUBRheI8RG67lyyQrltAQKO6RAAkJdcBnCcAt7ZrsOoF1Ozg33dimfqGpIA qK/y/SEtXvqIW+VsuyjO2Bv3NLVsSE5w9bX/fs41eZk/qSlrgoRoVfSSijYhXBS/ 8YtSfiID0ga5zzzJva8uAtYWC/2g7ELKBfrtDzoLZ3/iBde+IoS+gsSRp4HJfGFm Bu4AuoeZfCLH0K3khOYJMYILq5Dux9xb4yTVAhWqaBxKQKtJrKO8/ZNOvMxdjAi7 qbO92EHr+uflUwCXTgk/xNeO7dm8nOeSI7K2fwxc/ql5cAHUbc+xlcm8B0iEQbm2 eP4OHd9fQtAIsxnCaIYETbPgnnh6x+xRJDxWtCRXUjCgMsxJdy4KEry2uVTSMnOo RRRCLpSvqgrf0M1xnOcln3lAYfx1UMORdy7jy4vzNFz4Z/wG4Iu5wsMjVsVNWBq/ sM9ElGPg2xBNA3cErn8EjPVHN5IUxiiNGtrvDAntFHxQ7QIzh67fQSjWjXJNtXWQ YD/MMcrh8iSt/DGn/rIDw27UqkOIShbNM5/xQ4iKkcjY/fwNTjvEbRjf7m4EIXju r/5vvZJRJG8CJis76/SxiXIu87rHMCK9IFenXQJGo2qoe9U94Rd4vZposEa4K8QQ 2uAyG+tTtJlYoO3aVCsM5HsjUiPdp5y13iEwhYVDfhi6WjDxaQGBOFWjudMbh15M Nyd4NH9B90k= =M+dR -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---