changeset 786:bb40c019139c pytest2

remove unused Item.search_items/list_items code (which called deprecated backend code)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 28 Aug 2011 15:25:58 +0200
parents e0c61257b6c4
children 7a51d13c9bc3
files MoinMoin/items/__init__.py
diffstat 1 files changed, 0 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Sun Aug 28 15:06:44 2011 +0200
+++ b/MoinMoin/items/__init__.py	Sun Aug 28 15:25:58 2011 +0200
@@ -529,20 +529,6 @@
         if flaskg.user.valid:
             newrev[USERID] = unicode(flaskg.user.id)
 
-    def search_items(self, term=None):
-        """ search items matching the term or,
-            if term is None, return all items
-        """
-        if term:
-            backend_items = flaskg.storage.search_items(term)
-        else:
-            # special case: we just want all items
-            backend_items = flaskg.storage.iteritems()
-        for item in backend_items:
-            yield Item.create(item=item)
-
-    list_items = search_items  # just for cosmetics
-
     def get_index(self):
         """ create an index of sub items of this item """
         if self.name: