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

Opened 13 years ago

Last modified 12 years ago

[PATCH] Use of deprecated decorator interface on fastdata (expose)

Reported by: Jorge Godoy <jgodoy@…> Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TurboGears Version:
Severity: normal Keywords:
Cc:

Description

/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/fastdata/datacontroller.py:243: DeprecationWarning?: Use a seperate decorator validate rather than passing arguments validators and/or inputform to decorator expose.

create = turbogears.expose(inputform=_get_form)(create)

/home/godoy/desenvolvimento/python/TurboGears/trunk/turbogears/fastdata/datacontroller.py:258: DeprecationWarning?: Use a seperate decorator validate rather than passing arguments validators and/or inputform to decorator expose.

update = turbogears.expose(inputform=_get_form)(update)

Attachments

datacontroller.py.patch Download (942 bytes) - added by randall@… 13 years ago.
replaces deprecated expose validation with turbogears.validate

Change History

Changed 13 years ago by randall@…

replaces deprecated expose validation with turbogears.validate

comment:1 Changed 13 years ago by randall@…

  • Milestone set to 0.9
  • Component changed from CherryPy to TurboGears
  • Summary changed from Use of deprecated decorator interface on fastdata (expose) to [PATCH] Use of deprecated decorator interface on fastdata (expose)

Someone please review this patch.

comment:2 Changed 13 years ago by michele

It's perfect, but I don't have commit access. :D

comment:3 Changed 13 years ago by alberto

committed at r745. Thanks!

comment:4 Changed 13 years ago by alberto

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