[Zope-CMF] Decode for Record objects
Andreas Jung
lists at zopyx.com
Thu Jan 10 05:59:22 EST 2008
--On 10. Januar 2008 11:41:49 +0100 Charlie Clark <charlie at begeistert.org>
wrote:
> A happy 2008 to everyone!
>
> Currently it's not really possible to use ZSQL with CMF because
> CMFDefault.utils.decode does not know how to handle
> Shared.DC.ZRDB.Results.Results or Record.Record instances
>
> I think that the decode could be extended to be able to work with Results
> and Records returning lists of dictionaries and dictionaries
> respectively. Alternatively it might be best to enforce unicode in
> Shared.DC.ZRDC.Results
>
Consider working with SQLAlchemy. SA works nicely with unicode e.g. when
you're using a Postgres DB with Unicode as internal DB encoding.
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-cmf/attachments/20080110/c7dbdaeb/attachment.bin
More information about the Zope-CMF
mailing list