Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2167 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

Catwalk did not recognise constrain on multiple columns

Reported by: miniwark Owned by: percious
Priority: normal Milestone: 2.1a2
Component: Catwalk2 Version:
Severity: normal Keywords:


I am using Catwalk 2.0r_219

with this SQLalchemy 0.5.1 declarative model :

class Rock(DeclarativeBase):

    __tablename__ = "rock"

    rock_id = Column(Integer, autoincrement=True, primary_key=True)

    zone = Column(Integer, nullable=False)
    groupe = Column(Integer, nullable=False)
    rock = Column(Unicode(16), nullable=False)

    __table_args__ = (UniqueConstraint("zone", "groupe", "rock"), {})

Catwalk work perfectly when i whant to add an entry witch did breack the constrain, but if y try to add an entry who break it i have the following error :

AttributeError: 'CatwalkModelController' object has no attribute 'start_response'

By the way, catwalk play well with constrains on a culumn, he seem to did not accept contrains on multiple columns.

Change History

comment:1 Changed 10 years ago by mramm

  • Milestone changed from 2.0b5 to 2.1

comment:2 Changed 10 years ago by percious

  • Milestone changed from 2.1 to 2.1a1

comment:3 Changed 10 years ago by percious

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.