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

Opened 13 years ago

Last modified 12 years ago

template parameter to expose decorator picks wrong module

Reported by: Jeff Watkins Owned by: anonymous
Priority: normal Milestone:
Component: CherryPy Version:
Severity: normal Keywords:
Cc:

Description

When a method is decorated more than once, the expose decorator will pick the wrong module for templates that begin with ".".

This is because _execute_func pulls the module attribute from the decorated function, however, if the function was previously decorated (say by adding inputform or validators to the expose decorator or by using identity.require) this module will not have the correct value (it will be the module of the decorator).

Change History

comment:1 Changed 13 years ago by simon

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

Fixed by introducing decorator library.

Note: See TracTickets for help on using tickets.