[Checkins] SVN: lovely.tag/trunk/src/lovely/tag/tagging.py use
context for util lookup
Bernd Dorn
bernd.dorn at lovelysystems.com
Wed Dec 6 14:04:51 EST 2006
Log message for revision 71461:
use context for util lookup
Changed:
U lovely.tag/trunk/src/lovely/tag/tagging.py
-=-
Modified: lovely.tag/trunk/src/lovely/tag/tagging.py
===================================================================
--- lovely.tag/trunk/src/lovely/tag/tagging.py 2006-12-06 18:00:41 UTC (rev 71460)
+++ lovely.tag/trunk/src/lovely/tag/tagging.py 2006-12-06 19:04:51 UTC (rev 71461)
@@ -35,7 +35,8 @@
@Lazy
def docId(self):
- ids = zope.component.getUtility(intid.interfaces.IIntIds)
+ ids = zope.component.getUtility(intid.interfaces.IIntIds,
+ context=self.context)
id = ids.queryId(self.context)
if id is None:
ids.register(self.context)
@@ -45,6 +46,7 @@
@Lazy
def engine(self):
return zope.component.getUtility(interfaces.ITaggingEngine,
+ context=self.context,
name=self.engineName)
def update(self, user, tags):
More information about the Checkins
mailing list