--- versionedFile/extVersionedFile.py 2008/06/26 16:38:25 1.20 +++ versionedFile/extVersionedFile.py 2008/06/26 18:01:05 1.21 @@ -1022,12 +1022,14 @@ class extVersionedFile(CatalogAware,Fold """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), + vl.append({'versionNumber':getattr(v,'versionNumber',0), 'title':v.getTitle(), + 'id':v.getId(), 'date':v.getTime(), - 'editor':v.getLastEditor(), - 'comment':v.get('versionComment','') + 'author':getattr(v,'author',''), + 'comment':getattr(v,'versionComment','') }) + return vl security.declareProtected('AUTHENTICATED_USER','forceunlock') def forceunlock(self,RESPONSE=None):