you'd start with building yourself a list that can invoke self.changed().

Basically subclassing list and overridding append(), __setitem__().... plus 
more methods at 
http://docs.python.org/reference/datamodel.html#emulating-container-types .     
Also perhaps look at 
http://docs.python.org/library/userdict.html#module-UserList , or at least its 
source:  http://hg.python.org/cpython/file/fc91e02f305e/Lib/UserList.py




On Oct 23, 2011, at 4:17 PM, rivka wrote:

> Hi,
> 
> I am trying to efficiently manage mutable python lists in SQL db.
> Latest release of SQLAlchemy offers solution for dictionaries with the
> Mutable class. I would like to create similar solution with list
> (rather than wrapping up my list in a dictionary - which is my fall-
> back solution).
> 
> Any suggestions?
> 
> Thanks
> 
> Rivka
> 
> -- 
> 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 
> sqlalchemy+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sqlalchemy?hl=en.
> 

-- 
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 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to