--- cdli/cdliSplitter.py 2006/12/22 11:56:08 1.2 +++ cdli/cdliSplitter.py 2007/02/08 12:00:23 1.4 @@ -2,7 +2,8 @@ Author splitter """ -import Zope +import Zope2 +import transaction from Products.ZCTextIndex.ISplitter import ISplitter from Products.ZCTextIndex.PipelineFactory import element_factory @@ -82,7 +83,7 @@ class graphemeSplitter: if not (w==''): if pNum: #only whe pnum is found (first call of the splitter, is always called twice in the pipeline Zope.app().cdliRoot.storeInLineIndex(w.lstrip().strip(),(pNum,lineNum)) - get_transaction().commit() + transaction.get().commit() result.append(w.lstrip().rstrip()) return result