[Checkins] SVN: grokcore.site/trunk/src/grokcore/site/directive.py we cannot anymore use directives inside directive implementations
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Mon Nov 1 13:55:39 EDT 2010
Log message for revision 118078:
we cannot anymore use directives inside directive implementations
Changed:
U grokcore.site/trunk/src/grokcore/site/directive.py
-=-
Modified: grokcore.site/trunk/src/grokcore/site/directive.py
===================================================================
--- grokcore.site/trunk/src/grokcore/site/directive.py 2010-11-01 17:54:26 UTC (rev 118077)
+++ grokcore.site/trunk/src/grokcore/site/directive.py 2010-11-01 17:55:39 UTC (rev 118078)
@@ -69,7 +69,11 @@
"provides argument of %s." % self.name)
if provides is None:
- provides = grokcore.component.provides.bind().get(factory)
+ # We cannot bind the provides directive and get information
+ # from the factory, so we do it "manually" as we know how
+ # to get to the information.
+ dotted = grokcore.component.provides.dotted_name()
+ provides = getattr(factory, dotted, None)
if provides is None:
if util.check_subclass(factory, LocalUtility):
More information about the checkins
mailing list