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 #2189 (closed defect: worksforme)

Opened 10 years ago

Last modified 10 years ago

__before__ is not executed

Reported by: saabeilin Owned by: percious
Priority: high Milestone: 2.0b6
Component: TurboGears Version: trunk
Severity: major Keywords: pylons, __before__
Cc: me@…

Description

It seems that __before__ is not executed. I used paster to create a simple TG2 application and added __before__ to the root controller:

class RootController(TGController):
    def __before__(self, *args, **kwargs):
       print 'never gets here'

This happens both in Root controller and in sub-controllers, and when a controller is derived from RestController?, TGController or not derived from a TG2-class at all. (tested with TG2.0b5)

Change History

comment:1 Changed 10 years ago by Gustavo

  • Severity changed from normal to major
  • Cc me@… added
  • Priority changed from normal to high
  • Version changed from 2.0b1 to trunk
  • Milestone set to 2.0b6
  • Keywords pylons, __before__ added

comment:2 Changed 10 years ago by saabeilin

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

It seems it works fine from trunk!

Note: See TracTickets for help on using tickets.