[Checkins] SVN: grokcore.view/branches/jw-generic_directory_resource/src/grokcore/view/meta/directoryresource.py the module_info is set on the factory.

Jan-Wijbrand Kolman janwijbrand at gmail.com
Thu Oct 9 17:00:37 EDT 2008


Log message for revision 91944:
  the module_info is set on the factory.

Changed:
  U   grokcore.view/branches/jw-generic_directory_resource/src/grokcore/view/meta/directoryresource.py

-=-
Modified: grokcore.view/branches/jw-generic_directory_resource/src/grokcore/view/meta/directoryresource.py
===================================================================
--- grokcore.view/branches/jw-generic_directory_resource/src/grokcore/view/meta/directoryresource.py	2008-10-09 20:59:42 UTC (rev 91943)
+++ grokcore.view/branches/jw-generic_directory_resource/src/grokcore/view/meta/directoryresource.py	2008-10-09 21:00:37 UTC (rev 91944)
@@ -77,7 +77,7 @@
 
     def execute(self, factory, config, name, path, layer, **kw):
         resource_path = _get_resource_path(factory.module_info, path)
-        name = name or module_info.dotted_name
+        name = name or factory.module_info.dotted_name
         return _register(config, resource_path, name, layer)
 
 class StaticResourcesGrokker(martian.GlobalGrokker):



More information about the Checkins mailing list