[Checkins] SVN: grok/trunk/src/grok/ Using the interface 'IGrokSecurityView' now placed in grokcore.view

Souheil CHELFOUH souheil at chelfouh.com
Mon Nov 1 15:22:05 EDT 2010


Log message for revision 118086:
  Using the interface 'IGrokSecurityView' now placed in grokcore.view
  

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

-=-
Modified: grok/trunk/src/grok/components.py
===================================================================
--- grok/trunk/src/grok/components.py	2010-11-01 19:21:56 UTC (rev 118085)
+++ grok/trunk/src/grok/components.py	2010-11-01 19:22:04 UTC (rev 118086)
@@ -214,7 +214,7 @@
 
 class JSON(BrowserPage, ViewishViewSupport):
     """Base class for JSON views in Grok applications."""
-    interface.implements(interfaces.IGrokSecurityView)
+    interface.implements(grokcore.view.IGrokSecurityView)
 
     def __call__(self):
         view_name = self.__view_name__

Modified: grok/trunk/src/grok/interfaces.py
===================================================================
--- grok/trunk/src/grok/interfaces.py	2010-11-01 19:21:56 UTC (rev 118085)
+++ grok/trunk/src/grok/interfaces.py	2010-11-01 19:22:04 UTC (rev 118086)
@@ -216,18 +216,6 @@
     """
 
 
-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.
-    """
-
-
 class IApplicationInitializedEvent(IObjectEvent):
     """A Grok Application has been created with success and is now ready
     to be used.



More information about the checkins mailing list