Re: [SQLObject] Getting the length of a field
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2006-10-05 14:36:58
|
On Tue, Oct 03, 2006 at 03:47:39PM -0500, Jaime Wyant wrote: > class User(SQLObject): > first_name = UnicodeCol(length = 55, notNone = True) > middle_name = UnicodeCol(length = 55) > last_name = UnicodeCol(length = 55, notNone = True) > > Is there anyway to get the maxlength of a UnicodeCol field User.sqlmeta.columns["first_name"].length Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |