[Checkins]
SVN: grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/testing.py
Get another test to pass by introducing a hack :(
Philipp von Weitershausen
philikon at philikon.de
Fri May 2 18:39:29 EDT 2008
Log message for revision 86149:
Get another test to pass by introducing a hack :(
Changed:
U grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/testing.py
-=-
Modified: grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/testing.py
===================================================================
--- grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/testing.py 2008-05-02 22:37:49 UTC (rev 86148)
+++ grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/testing.py 2008-05-02 22:39:28 UTC (rev 86149)
@@ -174,7 +174,10 @@
module = module_info.getModule()
if context is not None:
- module.__grok_context__ = context
+ # XXX this depends on the particular implementation of the
+ # directive storages :(
+ dotted_name = 'grokcore.component.directive.context'
+ setattr(module, dotted_name, context)
if templates is not None:
module.__grok_templates__ = templates
config = ConfigurationMachine()
More information about the Checkins
mailing list