#2189: __before__ is not executed
------------------------+---------------------------------------------------
Reporter: saabeilin | Owner: percious
Type: defect | Status: new
Priority: normal | Milestone:
Component: TurboGears | Version: 2.0b1
Severity: normal | Keywords:
------------------------+---------------------------------------------------
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)
--
Ticket URL: <http://trac.turbogears.org/ticket/2189>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---