[Checkins] SVN: five.grok/branches/sylvain-zope213/src/five/grok/meta.py be consistent with: grokcore.view, no longer register a static folder by default.

Sylvain Viollon sylvain at infrae.com
Sat Feb 19 08:48:41 EST 2011


Log message for revision 120441:
  be consistent with: grokcore.view, no longer register a static folder by default.
  

Changed:
  U   five.grok/branches/sylvain-zope213/src/five/grok/meta.py

-=-
Modified: five.grok/branches/sylvain-zope213/src/five/grok/meta.py
===================================================================
--- five.grok/branches/sylvain-zope213/src/five/grok/meta.py	2011-02-19 11:11:46 UTC (rev 120440)
+++ five.grok/branches/sylvain-zope213/src/five/grok/meta.py	2011-02-19 13:48:41 UTC (rev 120441)
@@ -100,23 +100,6 @@
         return _register_resource(config, resource_path, name, layer)
 
 
-class StaticResourcesGrokker(martian.GlobalGrokker):
-
-    def grok(self, name, module, module_info, config, **kw):
-        # we're only interested in static resources if this module
-        # happens to be a package
-        if not module_info.isPackage():
-            return False
-        resource_path = _get_resource_path(module_info, 'static')
-
-        if not os.path.exists(resource_path):
-            return False
-
-        name = module_info.dotted_name
-        layer = IDefaultBrowserLayer
-        return _register_resource(config, resource_path, name, layer)
-
-
 class ViewletSecurityGrokker(martian.ClassGrokker):
     martian.component(five.grok.Viewlet)
     martian.directive(grokcore.security.require, name='permission')



More information about the checkins mailing list