--- cdli/cdliSplitter.py 2006/12/22 11:56:08 1.2 +++ cdli/cdliSplitter.py 2007/01/24 18:05:24 1.3 @@ -3,6 +3,7 @@ Author splitter """ import Zope +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