Diff for /MPIWGWeb/MPIWGProjects.py between versions 1.47.2.3 and 1.47.2.4

version 1.47.2.3, 2005/05/26 14:37:50 version 1.47.2.4, 2005/05/27 06:47:19
Line 1135  class MPIWGProject(CatalogAware,Folder): Line 1135  class MPIWGProject(CatalogAware,Folder):
         """get attrbiute"""          """get attrbiute"""
         return getattr(self,field)          return getattr(self,field)
   
     def getContent(self,field):      def getContent(self,field,filter=None):
         """Inhalt des Feldes"""          """Inhalt des Feldes"""
                   
         text=u''          text=u''
Line 1167  class MPIWGProject(CatalogAware,Folder): Line 1167  class MPIWGProject(CatalogAware,Folder):
         if (text2=='') and (field=='WEB_project_header'):          if (text2=='') and (field=='WEB_project_header'):
             return self.getContent('WEB_title')              return self.getContent('WEB_title')
   
           if filter:
               splitted=text2.split("""<p class="picture">""")
               tmp=splitted[1].split("</p>")
               self.REQUEST.SESSION['image']=tmp[0].split("\"")[1].encode('utf-8')
               split2="</p>".join(tmp[1:])
   
               text3=splitted[0]+split2
   
               splitted=text3.split("""<p class="picturetitle">""")
               tmp=splitted[1].split("</p>")
               print tmp
               self.REQUEST.SESSION['imagecap']=tmp[0].encode('utf-8')
               split4="".join(tmp[1:])
   
               text5=splitted[0]+split4
               
           else:
               text5=text2
   
         #teste ob WEB_project_description und keine führenden p tags          #teste ob WEB_project_description und keine führenden p tags
         if (len(text2)>4) and (not text2[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>"+text2+"</p>"              return "<p>"+text5+"</p>"
   
   
           #filter image
   
   
         return text2.encode('utf-8')          return text5.encode('utf-8')
           
     def show_html(self):      def show_html(self):
         """simple index"""          """simple index"""

Removed from v.1.47.2.3  
changed lines
  Added in v.1.47.2.4


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