[Checkins] SVN: grokcore.view/trunk/src/grokcore/view/meta/directoryresource.py Do not register a 'static' DirectoryResource any longer.

Jan-Jaap Driessen jdriessen at thehealthagency.com
Sun Jan 2 16:35:40 EST 2011


Log message for revision 119264:
  Do not register a 'static' DirectoryResource any longer.

Changed:
  U   grokcore.view/trunk/src/grokcore/view/meta/directoryresource.py

-=-
Modified: grokcore.view/trunk/src/grokcore/view/meta/directoryresource.py
===================================================================
--- grokcore.view/trunk/src/grokcore/view/meta/directoryresource.py	2011-01-02 21:34:30 UTC (rev 119263)
+++ grokcore.view/trunk/src/grokcore/view/meta/directoryresource.py	2011-01-02 21:35:39 UTC (rev 119264)
@@ -11,7 +11,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""Grokkers for the static resource directory."""
+"""Grokkers for resource directories."""
 
 import os
 
@@ -82,20 +82,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