version 1.20, 2008/06/26 16:38:25
|
version 1.21, 2008/06/26 18:01:05
|
Line 1022 class extVersionedFile(CatalogAware,Fold
|
Line 1022 class extVersionedFile(CatalogAware,Fold
|
"""get a list of dicts with author, comment, filename, etc, of all versions""" |
"""get a list of dicts with author, comment, filename, etc, of all versions""" |
vl = [] |
vl = [] |
for v in self.objectValues(self.content_meta_type): |
for v in self.objectValues(self.content_meta_type): |
vl.append({'versionNumber':v.get('versionNumber',0), |
vl.append({'versionNumber':getattr(v,'versionNumber',0), |
'title':v.getTitle(), |
'title':v.getTitle(), |
|
'id':v.getId(), |
'date':v.getTime(), |
'date':v.getTime(), |
'editor':v.getLastEditor(), |
'author':getattr(v,'author',''), |
'comment':v.get('versionComment','') |
'comment':getattr(v,'versionComment','') |
}) |
}) |
|
return vl |
|
|
security.declareProtected('AUTHENTICATED_USER','forceunlock') |
security.declareProtected('AUTHENTICATED_USER','forceunlock') |
def forceunlock(self,RESPONSE=None): |
def forceunlock(self,RESPONSE=None): |