Hi All,

Another somewhat silly question, anyone know of a way I can add 
attributes to columns that were autogenerated by using fromDatabase=True ?

for example;

class News(SQLObject):
        _connection = conn
        _connection.debug = True
        class sqlmeta:
                fromDatabase = True
                idName = 'NID'
                style = FOMStyle()

       body.prettyName = 'Post Body'
       subject.prettyName = 'Subject'

body.prettyName and subject.prettyName both generate an error (because 
body isn't actually defined anywhere). I tried overwriting the column 
definitions prior to defining those two (but after sqlmeta) but no luck 
there either. Anyone have any ideas what I should do?


-- 
Derek Fedel
Director of Network Development


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to