grok.template() is not properly inherited in subclasses
Bug #255005 reported by
Jan Wijbrand Kolman
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grok |
Fix Released
|
High
|
Jan Wijbrand Kolman | ||
0.14 |
Won't Fix
|
High
|
Jan Wijbrand Kolman | ||
1.0 |
Won't Fix
|
High
|
Jan Wijbrand Kolman | ||
1.1 |
Invalid
|
Undecided
|
Jan Wijbrand Kolman |
Bug Description
The grok.template() directive set on a view component is not inherited by subclasses of this view. This is contrary to e.g. grok.context() and grok.name() that are properly inherited.
Consider:
in module app.py:
-------
import grok
class MyApp(grok.
pass
class AppIndex(
grok.
grok.
grok.
in module more.py:
-------
import grok
import app
class AnotherAppView(
grok.
Will result in:
ConfigurationEx
To post a comment you must log in.
When you fix this, can you please do so in grokcore.view instead of
the grok trunk? I will release grokcore.view 1.0 soon and will make
the grok trunk use it.
Thanks.