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 #254 (closed enhancement: fixed)

Opened 13 years ago

Last modified 12 years ago

Allow sqlobject title and default to be used in fastdata widgets.

Reported by: ggodfrey+turbogears@… Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TG Widgets Version:
Severity: normal Keywords: fastdata
Cc:

Description

From Ronald Jaramillo (and I was about to post the same thing).

in turbogears.fastdata.formmaker you have column_widget_generic_col which returns:

widgets.TextField?(column.name)

The could be extended to check if your model column has a title attribute and a default value:

return widgets.TextField?(name=column.name,label=(column.title or

column.name), default=column.default)

Attachments

mydiffs Download (3.2 KB) - added by ggodfrey+turbogears@… 13 years ago.
Patch to implement defaults and title->label.

Change History

Changed 13 years ago by ggodfrey+turbogears@…

Patch to implement defaults and title->label.

comment:1 Changed 13 years ago by anonymous

  • Type changed from defect to enhancement

comment:2 Changed 13 years ago by kevin

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

committed in [364]. Thanks!

comment:3 Changed 13 years ago by kevin

  • Milestone set to 0.9
Note: See TracTickets for help on using tickets.