[Checkins] SVN: grok/trunk/ Fix for
https://bugs.launchpad.net/grok/+bug/163802
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Mon Nov 19 08:38:37 EST 2007
Log message for revision 81929:
Fix for https://bugs.launchpad.net/grok/+bug/163802
Changed:
U grok/trunk/CHANGES.txt
U grok/trunk/src/grok/meta.py
-=-
Modified: grok/trunk/CHANGES.txt
===================================================================
--- grok/trunk/CHANGES.txt 2007-11-19 01:11:15 UTC (rev 81928)
+++ grok/trunk/CHANGES.txt 2007-11-19 13:38:36 UTC (rev 81929)
@@ -7,6 +7,8 @@
Bug fixes
---------
+* Use a configuration action for the registration of the static directory.
+
* Fix imports from zope.app.securitypolicy.
* Grok does not raise a GrokError anymore when it finds unassociated
Modified: grok/trunk/src/grok/meta.py
===================================================================
--- grok/trunk/src/grok/meta.py 2007-11-19 01:11:15 UTC (rev 81928)
+++ grok/trunk/src/grok/meta.py 2007-11-19 13:38:36 UTC (rev 81929)
@@ -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