On Wed, 2007-02-07 at 02:53 -0800, rgravina wrote:

> Is there anyway I can specify the list of tags like this, instead?
> 
> book.tags = [u"python", u"programming"]
> 
> What I'd like to do is be able to have other parts of my code use this
> class like any other, and hide away the implementation details of my
> sqlalchemy database.
> 
> Also, does anyone have any suggestions about how I could maintain the
> order of this list as well?

You could use another table for maintaining the tags and a property for
maintaining them, like Lee does here:

http://www.splee.co.uk/2006/10/28/simpleblog-part-3-many-to-many-relationships/

Regards,
Cliff


--~--~---------~--~----~------------~-------~--~----~
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