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 #1820 (closed defect: fixed)

Opened 11 years ago

Last modified 9 years ago

crud list produces error NoSuchColumnError for some tables

Reported by: dakila Owned by: anonymous
Priority: normal Milestone: 2.0.* bugfix
Component: TurboGears Version: trunk
Severity: normal Keywords: crud, dbsprockets


to reproduce NoSuchColumnError? creating a quickstarted project in tg2 and running crud for model User which has a many to many relation to Group will produce the traceback error when accessed via browser, in this case it will output a traceback

NoSuchColumnError: "Could not locate column in row for column

the select method by provider does not take into account the table dependency, however the associated widget will look for the tg_group resulting in the error above. This can be partially resolved by using the getTableValue method instead of provider.select


crud_controller.py_tmpl.diff Download (581 bytes) - added by dakila 11 years ago.
small patch to use the getTableValue

Change History

Changed 11 years ago by dakila

small patch to use the getTableValue

comment:1 Changed 11 years ago by dakila

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r4590

comment:2 Changed 9 years ago by chrisz

  • Milestone changed from __unclassified__ to 2.0.* bugfix
Note: See TracTickets for help on using tickets.