#2066: Routes Does not work with DecoratedController and __before__
------------------------+---------------------------------------------------
Reporter: percious | Owner: faide
Type: defect | Status: new
Priority: normal | Milestone: 2.0b1
Component: TurboGears | Version: trunk
Severity: major | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Old description:
> If you make a decorated controler ala:
>
> class MyController(DecoratedController):
> def __before__(self):
> print 'never gets here'
>
> def index(self):
> return ''
>
> and make a route like:
>
> map.connect('my_index', 'my', controller='my')
>
> An error occurs, complaining that __before__ does not have a decorated
> attribute.
New description:
If you make a decorated controler ala:
{{{
class MyController(DecoratedController):
def __before__(self):
print 'never gets here'
def index(self):
return ''
and make a route like:
map.connect('my_index', 'my', controller='my')
}}}
An error occurs, complaining that __before__ does not have a decorated
attribute.
--
Ticket URL: <http://trac.turbogears.org/ticket/2066#comment:1>
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
-~----------~----~----~----~------~----~------~--~---