you could probably also address this with the example ive been dishing
out lately, the "unique instance" wiki recipe at :
http://www.sqlalchemy.org/trac/wiki/UsageRecipes/UniqueObject

that way youd just be able to say:

host.platform = Platform('windows')
host.platform = Platform('bogus')

and existing vs. new is handled for you.

however, it does *not* really let you do this:

host.platform.name = 'bogus'

but i think that since a Platform's identity is its name, you should
use a new Platform instance anyway.


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

Reply via email to