Views are not registered from inherited views
Bug #243144 reported by
Andreas Jung
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grok |
Won't Fix
|
Low
|
Brandon Rhodes | ||
1.0 |
Won't Fix
|
Low
|
Brandon Rhodes | ||
1.1 |
Won't Fix
|
Medium
|
Martijn Faassen |
Bug Description
Consider the following:
class SomeView(
..
class RSS(SomeView):
grok.
grok.
def render(self):
....
The grokking machinery does not tie the 'RSS' to the the 'foo' class if the base class of RSS is inherited from
another view. Replacing the base class SomeView with grok.View however works as expected.
Bug or feature (Grok 0.13)?
Changed in grok: | |
assignee: | nobody → brandon-rhodes |
milestone: | none → 1.0 |
Changed in grok: | |
status: | In Progress → Won't Fix |
To post a comment you must log in.
I cannot confirm this bug. I tried the following:
import grok
class viewbug( grok.Applicatio n, grok.Container):
pass
class Index(grok.View): index.pt
pass # see app_templates/
class SomeView( grok.View) :
def render(self):
return "SomeView"
class RSS(SomeView):
def render(self):
return "RSS"
and I can access both 'someview' and 'rss'.