[Checkins] SVN: grokcore.view/trunk/src/grokcore/view/interfaces.py Moved the interface IGrokSecurityView from grok to here.

Souheil CHELFOUH souheil at chelfouh.com
Mon Nov 1 13:47:41 EDT 2010


Log message for revision 118072:
  Moved the interface IGrokSecurityView from grok to here.
  

Changed:
  U   grokcore.view/trunk/src/grokcore/view/interfaces.py

-=-
Modified: grokcore.view/trunk/src/grokcore/view/interfaces.py
===================================================================
--- grokcore.view/trunk/src/grokcore/view/interfaces.py	2010-11-01 17:40:43 UTC (rev 118071)
+++ grokcore.view/trunk/src/grokcore/view/interfaces.py	2010-11-01 17:47:40 UTC (rev 118072)
@@ -76,6 +76,7 @@
 
     IBrowserRequest = Attribute('Browser request interface')
     IDefaultBrowserLayer = Attribute('Default layer for browser views.')
+    IGrokSecurityView = Attribute('Marker interface for permissive views.')
 
 
 class IGrokView(IBrowserPage, IBrowserView):
@@ -173,3 +174,15 @@
 
     def render(view):
         """Renders the template"""
+
+
+class IGrokSecurityView(Interface):
+    """A view treated special by the Grok publisher.
+
+    Views that provide this interface are treated more generously by
+    the Grok publisher, as they are allowed to use attributes, which
+    are not covered by permission setttings.
+
+    `grok.Permission` and `grok.require` settings however, will be
+    applied to such views.
+    """



More information about the checkins mailing list