Diff for /MPIWGWeb/MPIWGProjects.py between versions 1.47.2.42 and 1.47.2.43

version 1.47.2.42, 2005/11/22 17:58:27 version 1.47.2.43, 2005/12/22 20:33:45
Line 765  class MPIWGRoot(ZSQLExtendFolder): Line 765  class MPIWGRoot(ZSQLExtendFolder):
                   
         RESPONSE.setHeader('Content-type', 'text/html')          RESPONSE.setHeader('Content-type', 'text/html')
         RESPONSE.write("<html><body>\n")          RESPONSE.write("<html><body>\n")
         url="http://itgroup.mpiwg-berlin.mpg.de:8050/FMPro?-db=personal-www&-format=-dso_xml&-lay=sql_export&-max=20000&-findall"          url="http://itgroup.mpiwg-berlin.mpg.de:8050/FMPro?-db=personal-www&-format=-dso_xml&-lay=sql_export&-max=20000&name=Laubichler&-find"
         dom = NonvalidatingReader.parseUri(url)          dom = NonvalidatingReader.parseUri(url)
         #fh=urllib.urlopen(url)          #fh=urllib.urlopen(url)
         #dom=xml.dom.minidom.parse(fh)          #dom=xml.dom.minidom.parse(fh)
Line 850  class MPIWGRoot(ZSQLExtendFolder): Line 850  class MPIWGRoot(ZSQLExtendFolder):
   
                 obj=getattr(memberFolder,username)                  obj=getattr(memberFolder,username)
                                   
                 obj.updateDBEntry(DBid=id,publish_the_data=publish_the_data,                  done= obj.updateDBEntry(DBid=id,publish_the_data=publish_the_data,
                                    date_from=date_from,                                     date_from=date_from,
                                    date_to=date_to,stay_at_mpiwg=stay_at_mpiwg,position=position)                                     date_to=date_to,stay_at_mpiwg=stay_at_mpiwg,position=position)
           if not done and (publish_the_data=='yes'):
               
                       ret=obj.createNewDBEntry(publish_the_data,id,name,
                                             vorname,username,title,position,e_mail,
                                             e_mail_p,date_from,date_to,
                                             abteilung,heimat_inst,funded_by,
                                             e_mail2,txt,txt_p)
                       if not ret[0]:
   
                   RESPONSE.write("<p>Error: %s</p>\n"%repr(ret[1]))
               else:
                   RESPONSE.write("<p>New: %s</p>\n"%repr(ret[1]))
   
         #TODO: reindexCatlogs and updatePublications wieder einbaue          #TODO: reindexCatlogs and updatePublications wieder einbaue
         #self.reindexCatalogs(RESPONSE)          #self.reindexCatalogs(RESPONSE)
Line 1908  class MPIWGProject(CatalogAware,Folder): Line 1920  class MPIWGProject(CatalogAware,Folder):
         start=kupu.find("<body>")          start=kupu.find("<body>")
         end=kupu.find("</body>")          end=kupu.find("</body>")
         newcontent= kupu[start+6:end]          newcontent= kupu[start+6:end]
         print newcontent          
         if preview:          if preview:
                           
             return self.preview(newcontent)              return self.preview(newcontent)

Removed from v.1.47.2.42  
changed lines
  Added in v.1.47.2.43


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