Diff for /cdli/cdli_files.py between versions 1.26 and 1.28

version 1.26, 2006/06/17 14:53:35 version 1.28, 2006/06/18 12:05:21
Line 1054  def manage_addCDLIBasketVersion(self,use Line 1054  def manage_addCDLIBasketVersion(self,use
     else:      else:
         return ob          return ob
           
 class CDLIFileObject(versionedFileObject,CatalogAware):  class CDLIFileObject(CatalogAware,versionedFileObject):
     """CDLI file object"""      """CDLI file object"""
           
     meta_type="CDLI File Object"      meta_type="CDLI File Object"
Line 1065  class CDLIFileObject(versionedFileObject Line 1065  class CDLIFileObject(versionedFileObject
     
     security.declarePublic('makeThisVersionCurrent')      security.declarePublic('makeThisVersionCurrent')
           
       def PrincipiaSearchSource(self):
              """Return cataloguable key for ourselves."""
              return str(self)
          
     def makeThisVersionCurrent_html(self):      def makeThisVersionCurrent_html(self):
         """form for making this version current"""          """form for making this version current"""
                   
         pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','makeThisVersionCurrent.zpt')).__of__(self)          pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','makeThisVersionCurrent.zpt')).__of__(self)
         return pt()                           return pt()                 
     def makeThisVersionCurrent(self,comment,author):      def makeThisVersionCurrent(self,comment,author,RESPONSE=None):
         """copy this version to current"""          """copy this version to current"""
         parent=self.aq_parent          parent=self.aq_parent
                   
                   
         newversion=parent.manage_addCDLIFileObject('',comment,author)          newversion=parent.manage_addCDLIFileObject('',comment,author)
         newversion.data=self.data[0:]          newversion.data=self.data[0:]
                                           
           if RESPONSE is not None:
               RESPONSE.redirect(self.aq_parent.absolute_url()+'/history')
   
   
         return True          return True
           
     security.declarePublic('view')      security.declarePublic('view')
Line 1657  class CDLIRoot(Folder): Line 1666  class CDLIRoot(Folder):
                 return pt(txt='/uploadATF',threadName=threadName)                  return pt(txt='/uploadATF',threadName=threadName)
                                   
             else:              else:
 #                tmp={}                  tmp={}
 #                for key in self._v_uploadATF[threadName].returnValue.keys():                  for key in self._v_uploadATF[threadName].returnValue.keys():
 #                        t=self._v_uploadATF[threadName].returnValue[key]                          t=self._v_uploadATF[threadName].returnValue[key]
 #                        if type(t) is ListType:                          if type(t) is ListType:
 #                                       tmp[key]=self._v_uploadATF[threadName].returnValue[key][0:]                                         tmp[key]=self._v_uploadATF[threadName].returnValue[key][0:]
 #                        else:                          else:
 #                                       tmp[key]=self._v_uploadATF[threadName].returnValue[key]                                         tmp[key]=self._v_uploadATF[threadName].returnValue[key]
                               
                 tmp=self.cdli_main.tmpStore2[threadName]                  #tmp=self.cdli_main.tmpStore2[threadName]
                 del(self.cdli_main.tmpStore2[threadName])                  del(self.cdli_main.tmpStore2[threadName])
                 self._v_uploadATF[threadName].continueVar=False                  self._v_uploadATF[threadName].continueVar=False
                 self.REQUEST.SESSION['changed']=[x[0].getId() for x in tmp['changed']]                  self.REQUEST.SESSION['changed']=[x[0].getId() for x in tmp['changed']]

Removed from v.1.26  
changed lines
  Added in v.1.28


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>