[Checkins] SVN: grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/meta.py Now that directives have a set() method, remove a hack that had to be introduced earlier.

Philipp von Weitershausen philikon at philikon.de
Sat May 3 07:43:33 EDT 2008


Log message for revision 86186:
  Now that directives have a set() method, remove a hack that had to be introduced earlier.

Changed:
  U   grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/meta.py

-=-
Modified: grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/meta.py
===================================================================
--- grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/meta.py	2008-05-03 11:42:39 UTC (rev 86185)
+++ grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/meta.py	2008-05-03 11:43:32 UTC (rev 86186)
@@ -46,10 +46,7 @@
     def grok(self, name, module, module_info, config, **kw):
         context = determine_module_component(module_info, directive.context,
                                              [grokcore.component.Context])
-        # XXX this depends on the particular implementation of the
-        # directive storages :(
-        dotted_name = 'grokcore.component.directive.context'
-        setattr(module, dotted_name, context)
+        grokcore.component.context.set(module, context)
         return True
 
 



More information about the Checkins mailing list