Hi,

[Apologies if this is a double post, I don't think the first one made
it]

I need to run the PASSWORD() function on the database server and
retrieve the result. I have managed to get this working, with the
following code:

import model
from sqlobject.sqlbuilder import Select, func

conn = model.Users._connection
result =
conn.queryAll(conn.sqlrepr(Select(func.PASSWORD('foo'))))[0][0]

Where Users is a table in my database. This solution seems
unnecessarily complicated, though - is there a simpler way to do it?

Cheers,

Patrick


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to