[Checkins] SVN: grok/branches/0.11/ Fix for https://bugs.launchpad.net/grok/+bug/163802

Jan-Wijbrand Kolman janwijbrand at gmail.com
Mon Nov 19 09:18:12 EST 2007


Log message for revision 81930:
  Fix for https://bugs.launchpad.net/grok/+bug/163802

Changed:
  U   grok/branches/0.11/CHANGES.txt
  U   grok/branches/0.11/src/grok/meta.py

-=-
Modified: grok/branches/0.11/CHANGES.txt
===================================================================
--- grok/branches/0.11/CHANGES.txt	2007-11-19 13:38:36 UTC (rev 81929)
+++ grok/branches/0.11/CHANGES.txt	2007-11-19 14:18:11 UTC (rev 81930)
@@ -7,6 +7,8 @@
 Bug fixes
 ---------
 
+* Use a configuration action for the registration of the static directory.
+
 * Fix https://bugs.launchpad.net/grok/+bug/161948: grok.testing.grok()
   now also loads the ZPT template factories so that unit tests that
   need to configure views with ZPT templates continue to work.

Modified: grok/branches/0.11/src/grok/meta.py
===================================================================
--- grok/branches/0.11/src/grok/meta.py	2007-11-19 13:38:36 UTC (rev 81929)
+++ grok/branches/0.11/src/grok/meta.py	2007-11-19 14:18:11 UTC (rev 81930)
@@ -480,9 +480,14 @@
 
         resource_factory = components.DirectoryResourceFactory(
             resource_path, module_info.dotted_name)
-        component.provideAdapter(
-            resource_factory, (IDefaultBrowserLayer,),
-            interface.Interface, name=module_info.dotted_name)
+        adapts = (IDefaultBrowserLayer,)
+        provides = interface.Interface
+        name = module_info.dotted_name
+        config.action(
+            discriminator=('adapter', adapts, provides, name),
+            callable=component.provideAdapter,
+            args=(resource_factory, adapts, provides, name),
+            )
         return True
 
 



More information about the Checkins mailing list