[Checkins]
SVN: grok/branches/jw-viewlets-fix/src/grok/interfaces.py
Add two methods to the interface since they're really
expected to be there.
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Fri May 16 11:04:20 EDT 2008
Log message for revision 86795:
Add two methods to the interface since they're really expected to be there.
Changed:
U grok/branches/jw-viewlets-fix/src/grok/interfaces.py
-=-
Modified: grok/branches/jw-viewlets-fix/src/grok/interfaces.py
===================================================================
--- grok/branches/jw-viewlets-fix/src/grok/interfaces.py 2008-05-16 15:03:32 UTC (rev 86794)
+++ grok/branches/jw-viewlets-fix/src/grok/interfaces.py 2008-05-16 15:04:19 UTC (rev 86795)
@@ -320,6 +320,22 @@
as a cgi query string.
"""
+ def default_namespace():
+ """Returns a dictionary of namespaces that the template
+ implementation expects to always be available.
+
+ This method is not intended to be overridden by application
+ developers.
+ """
+
+ def namespace():
+ """Returns a dictionary that is injected in the template
+ namespace in addition to the default namespace.
+
+ This method is intended to be overridden by the application
+ developer.
+ """
+
def update(**kw):
"""This method is meant to be implemented by grok.View
subclasses. It will be called *before* the view's associated
@@ -507,4 +523,3 @@
class IViewletManager(IViewletManagerBase):
"""The Grok viewlet manager.
"""
-
More information about the Checkins
mailing list