changeset 407:72278e056ec4

indexing: removed/commented unused code
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 06 Aug 2011 20:48:53 +0200
parents 256c6e0ae8bf
children 8cc72401fc25
files MoinMoin/storage/backends/indexing.py
diffstat 1 files changed, 6 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/backends/indexing.py	Sat Aug 06 20:40:37 2011 +0200
+++ b/MoinMoin/storage/backends/indexing.py	Sat Aug 06 20:48:53 2011 +0200
@@ -287,11 +287,12 @@
         if result:
             return result[0]
 
-    def get_item_id_whoosh(self, uuid):
-        with self.index_object.latest_revisions_index.searcher() as searcher:
-            result = searcher.document(uuid=uuid, wikiname=self.wikiname)
-        if result:
-            return result
+    #not used yet
+    #def get_item_id_whoosh(self, uuid):
+    #    with self.index_object.latest_revisions_index.searcher() as searcher:
+    #        result = searcher.document(uuid=uuid, wikiname=self.wikiname)
+    #    if result:
+    #        return result
 
     def update_item(self, metas):
         """
@@ -449,18 +450,6 @@
                 logging.debug("REMOVE FROM LATEST: %d", latest_doc_number)
                 async_writer.delete_document(latest_doc_number)
 
-    def get_uuid_revno_name(self, rev_id):
-        """
-        get item uuid and revision number by rev_id
-        """
-        item_table = self.item_table
-        rev_table = self.rev_table
-        result = select([item_table.c.uuid, rev_table.c.revno, item_table.c.name],
-                        and_(rev_table.c.id == rev_id,
-                             item_table.c.id == rev_table.c.item_id)
-                       ).execute().fetchone()
-        return result
-
     def history_whoosh(self, mountpoint=u'', item_name=u'', reverse=True, start=None, end=None):
         if mountpoint:
             mountpoint += '/'