Diff for /versionedFile/extVersionedFile.py between versions 1.4 and 1.5

version 1.4, 2007/02/05 15:32:50 version 1.5, 2007/06/25 11:05:03
Line 22  try: Line 22  try:
 except:  except:
  print "no images"   print "no images"
   
   
 from threading import Thread  from threading import Thread
 import shutil  import shutil
 import tempfile  import tempfile
 import os.path  import os.path
 import urllib  import urllib
   
 import time  import time
   import logging
   
 try:  try:
     from Products.ECHO_content.ECHO_collection import ECHO_basis      from Products.ECHO_content.ECHO_collection import ECHO_basis
 except:  except:
Line 426  class extVersionedFileFolder(Folder,ECHO Line 426  class extVersionedFileFolder(Folder,ECHO
   
   
     def header_html(self):      def header_html(self):
         """zusätzlicher header"""          """zusaetzlicher header"""
         ext=self.ZopeFind(self,obj_ids=["header.html"])          ext=self.ZopeFind(self,obj_ids=["header.html"])
         if ext:          if ext:
             return ext[0][1]()              return ext[0][1]()
Line 477  class extVersionedFileFolder(Folder,ECHO Line 477  class extVersionedFileFolder(Folder,ECHO
         ob.title=id          ob.title=id
         file2=file          file2=file
                   
         obj=ob.manage_addextVersionedFileObject(id,vC,author,file2,content_type=content_type)          logging.info("ADD: %s"%repr(ob))
           obj=ob.manage_addVersionedFileObject(id,vC,author,file2,content_type=content_type)
         self.REQUEST.SESSION['objID']=ob.getId()          self.REQUEST.SESSION['objID']=ob.getId()
         self.REQUEST.SESSION['objID_parent']=None          self.REQUEST.SESSION['objID_parent']=None
   

Removed from v.1.4  
changed lines
  Added in v.1.5


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