changin src/resultlist.py for new searchfile.py
authorAlexandr Popov <popov2al@gmail.com>
Sun, 15 Mar 2009 10:38:03 +0000 (13:38 +0300)
committerAlexandr Popov <popov2al@gmail.com>
Sun, 15 Mar 2009 10:38:03 +0000 (13:38 +0300)
src/resultlist.py

index 1099eb8..6e20519 100755 (executable)
@@ -5,13 +5,12 @@
 
 class ResultList(object):
 
-    def __init__(self, out_ui):
-        self.ui = out_ui
+    def __init__(self):
         self.rlist = []
 
     def add(self, rproperties):
         self.rlist.append(rproperties)
 
-    def show(self):
+    def show(self, out_ui):
         for rproperties in self.rlist:
-            self.ui.show(rproperties)
\ No newline at end of file
+            out_ui.show(rproperties)