Diff for /MPIWGWeb/MPIWGProjects.py between versions 1.47.2.25 and 1.47.2.26

version 1.47.2.25, 2005/10/10 08:42:49 version 1.47.2.26, 2005/10/10 19:10:13
Line 700  class MPIWGRoot(ZSQLExtendFolder): Line 700  class MPIWGRoot(ZSQLExtendFolder):
         if RESPONSE is not None:          if RESPONSE is not None:
             RESPONSE.redirect('manage_main')              RESPONSE.redirect('manage_main')
   
       def updatePublicationDB(self,personId=None):
           """updates the publication db, i.e. copy year into the main table"""
           
           if personId:
               founds = self.ZSQLInlineSearch(_table="publications",id=personId)
           else:
               founds = self.ZSQLInlineSearch(_table="publications")
               
           for found in founds:
               if found.id_institutsbibliographie and (not found.id_institutsbibliographie ==""):
                   entries = self.ZSQLInlineSearch(_table="institutsbiblio",id=found.id_institutsbibliographie)
                   for entry in entries:
                       self.ZSQLChange(_table='publications',_identify='oid=%s' % entry.oid,year=entry.year)
                       
               if found.id_gen_bib and (not found.id_gen_bib ==""):
                   entries = self.ZSQLInlineSearch(_table="bibliography",id=found.id_gen_bib)
                   for entry in entries:
                       self.ZSQLChange(_table='publications',_identify='oid=%s' % entry.oid,year=entry.year)
                       
           return True        
           
        
           
     def updateHomepages(self,RESPONSE):      def updateHomepages(self,RESPONSE):
         """lege members an"""          """lege members an"""
           
         self.upDateSQL('personalwww.xml')          self.upDateSQL('personalwww.xml')
         founds=self.ZSQLInlineSearch(_table='personal_www',publish_the_data='yes')          founds=self.ZSQLInlineSearch(_table='personal_www',publish_the_data='yes')
         project=getattr(self,'members')          project=getattr(self,'members')
Line 718  class MPIWGRoot(ZSQLExtendFolder): Line 740  class MPIWGRoot(ZSQLExtendFolder):
                     RESPONSE.write("<p>old:%s (%s,%s)</p>\n"%(found.username,found.name,found.vorname))                      RESPONSE.write("<p>old:%s (%s,%s)</p>\n"%(found.username,found.name,found.vorname))
   
   
   
         #delete non existing          #delete non existing
   
   
Line 733  class MPIWGRoot(ZSQLExtendFolder): Line 756  class MPIWGRoot(ZSQLExtendFolder):
             pass              pass
         self.ProjectCatalog.manage_catalogReindex(self.REQUEST,RESPONSE,self.REQUEST['URL1'])          self.ProjectCatalog.manage_catalogReindex(self.REQUEST,RESPONSE,self.REQUEST['URL1'])
           
           self.updatePublicationDB() 
                                           
         if RESPONSE is not None:          if RESPONSE is not None:
             RESPONSE.redirect('manage_main')              RESPONSE.redirect('manage_main')

Removed from v.1.47.2.25  
changed lines
  Added in v.1.47.2.26


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