Code

display _some_ text even when the link isn't interesting
[roundup.git] / roundup / backends / back_metakit.py
index 1cdcda30f4a2880d33a69e69580bf9f174fe4894..c8e220d8cfdbbafe927eb65854264e25580665ad 100755 (executable)
@@ -738,10 +738,10 @@ class Class:
         view = self.__getview()
         self.db.commit()
     # ---- end of ping's spec
-    def filter(self, search_matches, filterspec, sort, group):
+    def filter(self, search_matches, filterspec, sort=(None,None),
+            group=(None,None)):
         # search_matches is None or a set (dict of {nodeid: {propname:[nodeid,...]}})
         # filterspec is a dict {propname:value}
-        # sort and group are lists of propnames
         # sort and group are (dir, prop) where dir is '+', '-' or None
         #                    and prop is a prop name or None