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

Opened 13 years ago

Last modified 13 years ago

add func.__module__ as candidate to copy in the decorator factory in decorator.py

Reported by: anonymous Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TurboGears Version:
Severity: normal Keywords:


Without this, the follow combination would fail :

@turbogears.expose(html=".some_template") @my_deco def some_func(self): pass

The reason is that with the "." leading template specification, func.module is used to complete the full spec/path of the template but because it is not copied by the decorator factory to the decorator, it is not found and raise an exception.

Change History

comment:1 Changed 13 years ago by simon

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

Fixed in r701. Thanks!

Note: See TracTickets for help on using tickets.