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

version 1.47.2.26, 2005/10/10 19:10:13 version 1.47.2.27, 2005/10/11 13:14:01
Line 704  class MPIWGRoot(ZSQLExtendFolder): Line 704  class MPIWGRoot(ZSQLExtendFolder):
         """updates the publication db, i.e. copy year into the main table"""          """updates the publication db, i.e. copy year into the main table"""
                   
         if personId:          if personId:
             founds = self.ZSQLInlineSearch(_table="publications",id=personId)              founds = self.ZSQLInlineSearch(_table="publications",id_main=personId)
         else:          else:
             founds = self.ZSQLInlineSearch(_table="publications")              founds = self.ZSQLInlineSearch(_table="publications")
                           
         for found in founds:          for found in founds:
               print found
             if found.id_institutsbibliographie and (not found.id_institutsbibliographie ==""):              if found.id_institutsbibliographie and (not found.id_institutsbibliographie ==""):
                 entries = self.ZSQLInlineSearch(_table="institutsbiblio",id=found.id_institutsbibliographie)                  entries = self.ZSQLInlineSearch(_table="institutsbiblio",id=found.id_institutsbibliographie)
                 for entry in entries:                  for entry in entries:
                     self.ZSQLChange(_table='publications',_identify='oid=%s' % entry.oid,year=entry.year)                      self.ZSQLChange(_table='publications',_identify='oid=%s' % found.oid,year=entry.year,referencetype=entry.reference_type)
                                           
             if found.id_gen_bib and (not found.id_gen_bib ==""):              if found.id_gen_bib and (not found.id_gen_bib ==""):
                 entries = self.ZSQLInlineSearch(_table="bibliography",id=found.id_gen_bib)                  entries = self.ZSQLInlineSearch(_table="bibliography",id=found.id_gen_bib)
                 for entry in entries:                  for entry in entries:
                     self.ZSQLChange(_table='publications',_identify='oid=%s' % entry.oid,year=entry.year)                      self.ZSQLChange(_table='publications',_identify='oid=%s' % found.oid,year=entry.year,referencetype=entry.reference_type)
                                           
         return True                  return True        
                   

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


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