Re: [SQLObject] EnumCol is not honoring notNone

2007-05-14 Thread Oleg Broytmann
On Mon, May 14, 2007 at 03:46:06PM +0400, Oleg Broytmann wrote: > On Sun, May 13, 2007 at 07:53:47PM -0300, Claudio Martinez wrote: > > On 5/13/07, Claudio Martinez <[EMAIL PROTECTED]> wrote: > > >Given this scenario: > > > > > >class A(SQLObject): > > >n = EnumCol(enumValues=['x', 'y'], notNon

Re: [SQLObject] EnumCol is not honoring notNone

2007-05-14 Thread Oleg Broytmann
On Sun, May 13, 2007 at 07:53:47PM -0300, Claudio Martinez wrote: > On 5/13/07, Claudio Martinez <[EMAIL PROTECTED]> wrote: > >Given this scenario: > > > >class A(SQLObject): > >n = EnumCol(enumValues=['x', 'y'], notNone=False) > > > >class B(SQLObject): > >n = EnumCol(enumValues=['x', 'y']

Re: [SQLObject] EnumCol is not honoring notNone

2007-05-13 Thread Claudio Martinez
On 5/13/07, Claudio Martinez <[EMAIL PROTECTED]> wrote: Given this scenario: class A(SQLObject): n = EnumCol(enumValues=['x', 'y'], notNone=False) class B(SQLObject): n = EnumCol(enumValues=['x', 'y'], notNone=True) A(n=None) and B(n=None) both give this error: Invalid: expected a memb