Diff for /MPIWGWeb/MPIWGProjects.py between versions 1.47.2.10 and 1.47.2.11

version 1.47.2.10, 2005/06/06 14:51:47 version 1.47.2.11, 2005/06/08 20:00:16
Line 644  class MPIWGRoot(ZSQLExtendFolder): Line 644  class MPIWGRoot(ZSQLExtendFolder):
                     #title=project[0].WEB_title                      #title=project[0].WEB_title
                     title=[project[0].getContent('WEB_title')]                      title=[project[0].getContent('WEB_title')]
                     #print title                      #print title
               if idNr[0]!="x":
                     returnList.append((depth,nr,title,project[0]))                      returnList.append((depth,nr,title,project[0]))
                   
         return returnList          return returnList
Line 673  class MPIWGRoot(ZSQLExtendFolder): Line 674  class MPIWGRoot(ZSQLExtendFolder):
                     department=int(element[3].getContent('xdata_05'))-1                      department=int(element[3].getContent('xdata_05'))-1
                                           
                     ret+="""</ul></div>\n"""                      ret+="""</ul></div>\n"""
               if department==4: #hack
               department=3
   
                     ret+="""<div class="bildspalte"><img src="../grafik/dept%i.jpg" width="160" height="120" vspace="40"></div>                      ret+="""<div class="bildspalte"><img src="../grafik/dept%i.jpg" width="160" height="120" vspace="40"></div>
                     <div class="dept">\n<ul class="liste">\n                      <div class="dept">\n<ul class="liste">\n
                     """%department                      """%department
Line 1199  class MPIWGProject(CatalogAware,Folder): Line 1203  class MPIWGProject(CatalogAware,Folder):
                 tmp=splitted[1].split("</p>")                  tmp=splitted[1].split("</p>")
         #return repr(splitted[1])          #return repr(splitted[1])
                 try:                  try:
             self.REQUEST.SESSION['image']=tmp[0].split("\"")[1].encode('utf-8')              self.imageURL=tmp[0].split("\"")[1].encode('utf-8')
         except:          except:
             self.REQUEST.SESSION['image']=tmp[0].split("src=")[1].split(" ")[0].encode('utf-8')              self.imageURL=tmp[0].split("src=")[1].split(" ")[0].encode('utf-8')
           
                 split2="</p>".join(tmp[1:])                  split2="</p>".join(tmp[1:])
   
                 text3=splitted[0]+split2                  text3=splitted[0]+split2
Line 1209  class MPIWGProject(CatalogAware,Folder): Line 1214  class MPIWGProject(CatalogAware,Folder):
                 splitted=text3.split("""<p class="picturetitle">""")                  splitted=text3.split("""<p class="picturetitle">""")
                 if len(splitted)>1:                  if len(splitted)>1:
                     tmp=splitted[1].split("</p>")                      tmp=splitted[1].split("</p>")
                     self.REQUEST.SESSION['imagecap']=tmp[0].encode('utf-8')              self.imagecap=tmp[0].encode('utf-8')
                   
                     split4="".join(tmp[1:])                      split4="".join(tmp[1:])
   
                     text5=splitted[0]+split4                      text5=splitted[0]+split4
Line 1224  class MPIWGProject(CatalogAware,Folder): Line 1230  class MPIWGProject(CatalogAware,Folder):
   
         #teste ob WEB_project_description und keine führenden p tags          #teste ob WEB_project_description und keine führenden p tags
         if (len(text5)>4) and (not text5[0:3]=='<p>') and (field=='WEB_project_description'):          if (len(text5)>4) and (not text5[0:3]=='<p>') and (field=='WEB_project_description'):
             return "<p>"+text5+"</p>"              text5= "<p>"+text5+"</p>"
   
   
         #filter image          #filter image

Removed from v.1.47.2.10  
changed lines
  Added in v.1.47.2.11


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