[Checkins] SVN: grok/trunk/src/grok/interfaces.py Add missing
interface description.
Martijn Faassen
faassen at infrae.com
Tue Oct 31 09:34:38 EST 2006
Log message for revision 71007:
Add missing interface description.
Changed:
U grok/trunk/src/grok/interfaces.py
-=-
Modified: grok/trunk/src/grok/interfaces.py
===================================================================
--- grok/trunk/src/grok/interfaces.py 2006-10-31 14:28:19 UTC (rev 71006)
+++ grok/trunk/src/grok/interfaces.py 2006-10-31 14:34:37 UTC (rev 71007)
@@ -132,3 +132,20 @@
class IGrokView(interface.Interface):
"""Grok views all provide this interface.
"""
+ def redirect(url):
+ """Redirect to given URL"""
+
+ def url(obj=None, name=None):
+ """Construct URL.
+
+ If no arguments given, construct URL to view itself.
+
+ If only obj argument is given, construct URL to obj.
+
+ If only name is given as the first argument, construct view URL
+ to view with that name on our context.
+
+ If both object and name arguments are supplied, construct
+ URL to view on that object.
+ """
+
More information about the Checkins
mailing list