version 1.80.2.15, 2008/01/14 18:43:21
|
version 1.80.2.17, 2008/01/14 19:15:33
|
Line 1532 class CDLIFileObject(CatalogAware,extVer
|
Line 1532 class CDLIFileObject(CatalogAware,extVer
|
def makeThisVersionCurrent(self,comment,author,RESPONSE=None): |
def makeThisVersionCurrent(self,comment,author,RESPONSE=None): |
"""copy this version to current""" |
"""copy this version to current""" |
parent=self.aq_parent |
parent=self.aq_parent |
newversion=parent.manage_addCDLIFileObject('',comment,author) |
parent.manage_addVersionedFileObject(id=None,vC=comment,author=author,file=self.getData(),RESPONSE=RESPONSE) |
newversion.manage_upload(self.getData()) |
#newversion=parent.manage_addCDLIFileObject('',comment,author) |
|
#newversion.manage_upload(self.getData()) |
|
|
if RESPONSE is not None: |
#if RESPONSE is not None: |
RESPONSE.redirect(self.aq_parent.absolute_url()+'/history') |
# RESPONSE.redirect(self.aq_parent.absolute_url()+'/history') |
|
|
return True |
return True |
|
|
Line 2237 class CDLIRoot(Folder):
|
Line 2238 class CDLIRoot(Folder):
|
# split search terms again (for grapheme search with words) |
# split search terms again (for grapheme search with words) |
splitwords = dict(((w,self.splitter[indexName].process([w])) for w in words)) |
splitwords = dict(((w,self.splitter[indexName].process([w])) for w in words)) |
|
|
for line in file.linesplit(): |
for line in file.splitlines(): |
line = unicodify(line) |
line = unicodify(line) |
# ignore lemma and other lines |
# ignore lemma and other lines |
if line.lstrip().startswith('#lem:'): |
if line.lstrip().startswith('#lem:'): |