I've got a row from sqlobject using the XXX.get(1) technique. so far so
good.
now I've got a dictionary of updates that I want to use to update the db,
but only if the old data meets certain criteria. So I would like to do
something like:
row = mytable.get(1)
for (name,value) in mychanges.items():
if row.col(name) != '&":
row.col(name) = value
I know I can do it with getattr(row, name), but that's ugly (to me).
As cool as sqlobject is, there must be a pythonic way of doing this. Any
ideas?
---------------------------------------------------------------------------
The information contained in this message may be privileged and / or
confidential and protected from disclosure. If the reader of this message is
not the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify the sender
immediately by replying to this message and deleting the material from any
computer.
---------------------------------------------------------------------------
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss