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

Opened 13 years ago

Last modified 12 years ago

[PATCH] Makes the widget instance a callable that calls the insert method

Reported by: michele Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TG Widgets Version:
Severity: normal Keywords:
Cc:

Description

So you can use:

form(action="save)

Attachments

callable.patch Download (1.2 KB) - added by michele 13 years ago.
The patch

Change History

Changed 13 years ago by michele

The patch

comment:1 Changed 13 years ago by kevin

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

Nope... can't do it this way. If the form passed in for validation is a callable, that callable is called to get the real form. This is important, because this form is specified in @validate at class creation time, and you're not always sure at that point which form you want. fastdata is a good example (and the reason this was added).

comment:2 Changed 13 years ago by michele

Ok, this will need some more thoughts. :-)

comment:3 Changed 13 years ago by kevin

  • Status changed from closed to reopened
  • Resolution wontfix deleted
  • Milestone set to 0.9

Nope again. I was just plain wrong. This patch is good. Sorry!

Committed in [574]

comment:4 Changed 13 years ago by kevin

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