just two seconds ago someone asked about sticking a JSON plugin in
SQLAlchemy (this looks essentially like JSON to me). is the
"extension" proposal something that builds in using MapperExtension ?
it seems like people are just looking for json-like functions for
things (which is handy, though not an SA-core kind of feature).
On Apr 14, 2008, at 6:49 AM, Paul Johnston wrote:
> Hi,
>
> I have a utility function that I keep using again and again in my
> web apps. It takes a nested hash/list structure, something like:
>
> data = \
> {
> 'id': 123,
>
> 'name': 'Example customer',
> 'contacts':
> [
> {'id':12, name='Alice'}
>
> {'id':23, name='Bob'}
> ]
> }
> And it takes an SQLAlchemy object. It updates the object based on
> the hash/list, in a "deep" way, in that it goes down relationships.
>
> There's an old version of my code here:
> http://www.sqlalchemy.org/trac/wiki/UsageRecipes/ProcHash
>
> Anyway, I keep using this, so can it be included as an SQLAlchemy
> extension? If it's accepted, I will do the work to create unit tests
> for it.
>
> Paul
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---