diff MoinMoin/items/__init__.py @ 76:dab51965d605

import terms module from new location
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 06 Mar 2011 16:52:18 +0100
parents efe399a0375b
children 29f2e129dd36
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Sun Mar 06 16:21:36 2011 +0100
+++ b/MoinMoin/items/__init__.py	Sun Mar 06 16:52:18 2011 +0100
@@ -504,7 +504,7 @@
     def get_index(self):
         """ create an index of sub items of this item """
         import re
-        from MoinMoin.search.term import NameRE
+        from MoinMoin.storage.terms import NameRE
 
         if self.name:
             prefix = self.name + u'/'
@@ -619,7 +619,7 @@
 
     def get_templates(self, mimetype=None):
         """ create a list of templates (for some specific mimetype) """
-        from MoinMoin.search.term import AND, LastRevisionMetaDataMatch
+        from MoinMoin.storage.terms import AND, LastRevisionMetaDataMatch
         term = LastRevisionMetaDataMatch(TAGS, ['template']) # XXX there might be other tags
         if mimetype:
             term = AND(term, LastRevisionMetaDataMatch(MIMETYPE, mimetype))