Diff for /ECHO_content/VLPExtension.py between versions 1.74 and 1.77

version 1.74, 2008/09/04 12:09:33 version 1.77, 2008/09/08 18:41:34
Line 530  class VLP_collection(ECHO_collection): Line 530  class VLP_collection(ECHO_collection):
   
                 if RESPONSE is not None:                  if RESPONSE is not None:
                     self.REQUEST.RESPONSE.write("<p>%s</p>\n"%litid)                      self.REQUEST.RESPONSE.write("<p>%s</p>\n"%litid)
           logging.debug("<p>%s</p>\n"%litid)
   
             except:              except:
                 error=sys.exc_info()[0:2]                  error=sys.exc_info()[0:2]
Line 562  class VLP_collection(ECHO_collection): Line 563  class VLP_collection(ECHO_collection):
             RESPONSE.write("<html><body>")              RESPONSE.write("<html><body>")
   
         files=os.listdir(self.vlp_basis)          files=os.listdir(self.vlp_basis)
           i=0
         for fileName in files:          for fileName in files:
               if i<100:
                   i+=1
               else:
                   i=0
                   j=0
                   while j<5:
                       try:
                           transaction.get().commit()  
                           j=6
                       except:
                           logging.error("Commit: %s"%j)
                           j+=1
                           
                   RESPONSE.write("<p>committed</p>")
             if fileName[0:3]=="lit":              if fileName[0:3]=="lit":
                 metalink=self.REQUEST['URL1']+"/"+fileName+"/index_meta"                  metalink=self.REQUEST['URL1']+"/"+fileName+"/index_meta"
                 try:                  try:
Line 571  class VLP_collection(ECHO_collection): Line 587  class VLP_collection(ECHO_collection):
                         logging.debug("updateCollection: new %s"%fileName)                          logging.debug("updateCollection: new %s"%fileName)
                         if RESPONSE is not None:                          if RESPONSE is not None:
                             RESPONSE.write("<p>new: %s</p>\n"%fileName)                              RESPONSE.write("<p>new: %s</p>\n"%fileName)
                           logging.debug("new: %s \n"%fileName)
                         newObj=VLP_resource(fileName,'',metalink,fileName,fileName,fileName,'generated','book','','','','','','')                          newObj=VLP_resource(fileName,'',metalink,fileName,fileName,fileName,'generated','book','','','','','','')
                         self._setObject(fileName,newObj)                          self._setObject(fileName,newObj)
                                   
                     if RESPONSE is not None:                      if RESPONSE is not None:
                         RESPONSE.write("<p>got: %s "%fileName)                          RESPONSE.write("<p>got: %s "%fileName)
               
                   logging.debug("got: %s "%fileName)
                     genObj=getattr(self,fileName)                      genObj=getattr(self,fileName)
                     logging.debug("updateCollection: inspecting %s"%fileName)                      logging.debug("updateCollection: inspecting %s"%fileName)
                     # create index                      # create index

Removed from v.1.74  
changed lines
  Added in v.1.77


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