abel deuring schrieb:
> Good idea. Actually, your hint gave me a clue how to get the
> computed column values the complicated way ;) I added a view to the
> database, which returns the computed value, created a ForeignKey
> column for this view in the SQLObject for the main table, and added
> a _get_ method for the attribute that retreives the value from the
> ForeignKey column.
> 
> Not very efficient, but I prefer to leave the function in the
> database, instead of replacing it by a Python function. 

Would be nice, if one could define a column as a SQL function call, maybe like
this:

class MyClass(SQLObject):
    col = StringCol()
    computedValue = FunctionCol('my_function')


Chris

-------------------------------------------------------------------------
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&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to