[Checkins] SVN: grokcore.view/branches/1.13.5-without-static/src/grokcore/view/meta/directoryresource.py Drop the StaticResourcesGrokker.

Jan-Jaap Driessen jdriessen at thehealthagency.com
Fri Dec 3 11:27:15 EST 2010


Log message for revision 118684:
  Drop the StaticResourcesGrokker.

Changed:
  U   grokcore.view/branches/1.13.5-without-static/src/grokcore/view/meta/directoryresource.py

-=-
Modified: grokcore.view/branches/1.13.5-without-static/src/grokcore/view/meta/directoryresource.py
===================================================================
--- grokcore.view/branches/1.13.5-without-static/src/grokcore/view/meta/directoryresource.py	2010-12-03 16:26:02 UTC (rev 118683)
+++ grokcore.view/branches/1.13.5-without-static/src/grokcore/view/meta/directoryresource.py	2010-12-03 16:27:15 UTC (rev 118684)
@@ -79,19 +79,3 @@
         resource_path = _get_resource_path(factory.module_info, path)
         name = name or factory.module_info.dotted_name
         return _register(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(config, resource_path, name, layer)



More information about the checkins mailing list