#160 Any EnumCol creation throws AssertionError

closed-wont-fix
nobody
General (126)
5
2006-05-19
2006-02-28
Anonymous
No

The simplest example using EnumCol fails with an
AssertionError when attempting to create a SQLObject
subclass:

>>> class Page (SQLObject):
... name=EnumCol(['val1', 'val2'])

results in:

AssertionError: You cannot change a name after it has
already been set (from ['val1', 'val2'] to name)

This is in SQLObject v0.7.0. I'm a noob, so maybe this
is somehow my fault, but the example seems so simple
that I'd like to doubt that for now.

Discussion

  • Oleg Broytman
    Oleg Broytman
    2006-05-19

    Logged In: YES
    user_id=4799

    class Page (SQLObject):
    name=EnumCol(enumValues=['val1', 'val2'])

     
  • Oleg Broytman
    Oleg Broytman
    2006-05-19

    • status: open --> closed-wont-fix