version 1.81, 2008/01/21 17:19:01
|
version 1.82, 2008/06/26 18:08:02
|
Line 2157 class CDLIRoot(Folder):
|
Line 2157 class CDLIRoot(Folder):
|
return f[0].getObject().getData() |
return f[0].getObject().getData() |
|
|
|
|
|
|
def showFile(self,fileId,wholePage=False): |
def showFile(self,fileId,wholePage=False): |
"""show a file |
"""show a file |
@param fileId: P-Number of the document to be displayed |
@param fileId: P-Number of the document to be displayed |
Line 2296 class CDLIRoot(Folder):
|
Line 2295 class CDLIRoot(Folder):
|
return dict([(id,self.tagWordInFile(id, word, indexName, regExp)) for id in fileIds]) |
return dict([(id,self.tagWordInFile(id, word, indexName, regExp)) for id in fileIds]) |
|
|
|
|
|
def getFileVersionList(self, pnum): |
|
"""get the version history as a list for the translit file with the given pnum""" |
|
f = getattr(self, self.file_catalog).search({'textid':pnum}) |
|
if not f: |
|
return [] |
|
|
|
return f[0].getObject().getVersionList() |
|
|
|
|
def URLquote(self,str): |
def URLquote(self,str): |
"""quote url""" |
"""quote url""" |
return urllib.quote(str) |
return urllib.quote(str) |