--- cdli/cdli_files.py 2006/06/17 14:53:35 1.26 +++ cdli/cdli_files.py 2006/06/17 15:03:19 1.27 @@ -1070,13 +1070,18 @@ class CDLIFileObject(versionedFileObject pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','makeThisVersionCurrent.zpt')).__of__(self) return pt() - def makeThisVersionCurrent(self,comment,author): + def makeThisVersionCurrent(self,comment,author,RESPONSE=None): """copy this version to current""" parent=self.aq_parent newversion=parent.manage_addCDLIFileObject('',comment,author) newversion.data=self.data[0:] + + if RESPONSE is not None: + RESPONSE.redirect(self.aq_parent.absolute_url()+'/history') + + return True security.declarePublic('view')