[Checkins] SVN: grok/trunk/src/grok/interfaces.py Introduce a marker interface that allows non-Grok views

Uli Fouquet uli at gnufix.de
Sat Dec 27 08:29:27 EST 2008


Log message for revision 94376:
  Introduce a marker interface that allows non-Grok views
  to state, that they (permission-wise) want to be handled
  like regular Grok-Views by the Grok publisher.
  

Changed:
  U   grok/trunk/src/grok/interfaces.py

-=-
Modified: grok/trunk/src/grok/interfaces.py
===================================================================
--- grok/trunk/src/grok/interfaces.py	2008-12-27 05:28:34 UTC (rev 94375)
+++ grok/trunk/src/grok/interfaces.py	2008-12-27 13:29:27 UTC (rev 94376)
@@ -214,3 +214,13 @@
     """A Grok container.
     """
 
+class IGrokSecurityView(interface.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