[Zope3-checkins] SVN: Zope3/trunk/src/z3checkins/message.py updated
a deprecated type of call to getUtility().
Gintautas Miliauskas
gintas at pov.lt
Sat May 22 06:35:25 EDT 2004
Log message for revision 24880:
updated a deprecated type of call to getUtility().
-=-
Modified: Zope3/trunk/src/z3checkins/message.py
===================================================================
--- Zope3/trunk/src/z3checkins/message.py 2004-05-22 09:40:21 UTC (rev 24879)
+++ Zope3/trunk/src/z3checkins/message.py 2004-05-22 10:35:24 UTC (rev 24880)
@@ -338,7 +338,7 @@
def createAndAdd(self, data):
if data.has_key('data'): # XXX should we bark if no data is given?
msg_raw = data['data']
- parser = getUtility(self.context, IMessageParser)
+ parser = getUtility(IMessageParser, context=self.context)
if msg_raw.startswith("From "):
# detected an mbox file
mbox = StringIO(msg_raw)
More information about the Zope3-Checkins
mailing list