version 1.29, 2008/10/09 07:44:34
|
version 1.30, 2008/10/29 12:12:25
|
Line 1018 class extVersionedFile(CatalogAware,Fold
|
Line 1018 class extVersionedFile(CatalogAware,Fold
|
#return "File: %s Version:%i modified:%s size:%s modified by:%s"%(self.title,lastVersion.versionNumber,lastVersion.getTime(),lastVersion.getSize(),lastVersion.lastEditor()) |
#return "File: %s Version:%i modified:%s size:%s modified by:%s"%(self.title,lastVersion.versionNumber,lastVersion.getTime(),lastVersion.getSize(),lastVersion.lastEditor()) |
return self.history() |
return self.history() |
|
|
|
def getVersionNr(self,nr): |
|
"""get version with number nr""" |
|
tmp=0 |
|
lastVersion=None |
|
|
|
|
|
for version in self.ZopeFind(self): |
|
|
|
if hasattr(version[1],'versionNumber'): |
|
|
|
if int(version[1].versionNumber) ==nr : |
|
return version[1] |
|
|
|
return None |
security.declarePublic('getVersion') |
security.declarePublic('getVersion') |
def getVersion(self): |
def getVersion(self): |
# TODO: this is ugly and it returns the next version number |
# TODO: this is ugly and it returns the next version number |