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 sqlalchemy@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to