[Zope3-checkins] CVS: zopeproducts/zwiki/browser - wiki.py:1.5
Stephan Richter
srichter@cbu.edu
Thu, 10 Apr 2003 09:30:51 -0400
Update of /cvs-repository/zopeproducts/zwiki/browser
In directory cvs.zope.org:/tmp/cvs-serv28027/browser
Modified Files:
wiki.py
Log Message:
Needed to import generator for Python 2.2.2
=== zopeproducts/zwiki/browser/wiki.py 1.4 => 1.5 ===
--- zopeproducts/zwiki/browser/wiki.py:1.4 Thu Apr 10 08:50:41 2003
+++ zopeproducts/zwiki/browser/wiki.py Thu Apr 10 09:30:50 2003
@@ -15,6 +15,8 @@
$Id$
"""
+from __future__ import generators
+
from datetime import datetime
from zope.component import \
getAdapter, getService, getServiceManager, createObject
@@ -86,7 +88,7 @@
'total': total,
}
return result
-
+
def _resultIterator(self, results):
for hubid, score in results:
yield self._cookInfo(hubid, score)