On Thu, Apr 13, 2006 at 10:32:23AM +0100, Ed Singleton wrote:
> Is there a way I can easily add additional properties to a column in
> my table definition?
> 
> For example:
> 
> class Contact(SQLObject):
>     firstName = StringCol(length=64, prettyprint="First Name")
>     secondName = StringCol(length=64, prettyprint="Second Name")

   Tere is no. One of the reasons is that columns are not the actual
objects - they are only markers for the metaclass that replaces them with
actual column objects, instances of classess SOStringCol, SOIntCol, etc.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to