Eric Brunson wrote:
> Hi All,
>
>
>
> def dereferenced_columns( self ):
>     columnnames = []
>     derefcolumnstext = ''
>     for column in self.table.columns:
>         if column.foreign_key:
>             # do whatever it takes to figure out the foreign key
>             # and add it to my list
>         else:
>             columnnames.append( "%s" % column )
>     return derefcolumnstext += ','.join( columnnames )
>   
Ignore the syntax error at the end here, I was actually trying to pare 
the snippet down do that it didn't have any extraneous stuff in it.  The 
line should read "return ','.join( columnnames )"

Thanks,
e.
 


-------------------------------------------------------------------------
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
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to