version 1.19, 2008/01/21 17:36:45
|
version 1.20, 2008/06/26 16:38:25
|
Line 1018 class extVersionedFile(CatalogAware,Fold
|
Line 1018 class extVersionedFile(CatalogAware,Fold
|
ret.sort(sortv) |
ret.sort(sortv) |
return ret |
return ret |
|
|
|
def getVersionList(self): |
|
"""get a list of dicts with author, comment, filename, etc, of all versions""" |
|
vl = [] |
|
for v in self.objectValues(self.content_meta_type): |
|
vl.append({'versionNumber':v.get('versionNumber',0), |
|
'title':v.getTitle(), |
|
'date':v.getTime(), |
|
'editor':v.getLastEditor(), |
|
'comment':v.get('versionComment','') |
|
}) |
|
|
security.declareProtected('AUTHENTICATED_USER','forceunlock') |
security.declareProtected('AUTHENTICATED_USER','forceunlock') |
def forceunlock(self,RESPONSE=None): |
def forceunlock(self,RESPONSE=None): |
"""unlock""" |
"""unlock""" |