Diff for /ECHO_content/ECHO_helpers.py between versions 1.39 and 1.43

version 1.39, 2005/02/07 12:25:54 version 1.43, 2005/02/08 22:04:34
Line 25  def content_html(self,type): Line 25  def content_html(self,type):
             obj=getattr(self,type+"_template")              obj=getattr(self,type+"_template")
             return obj()              return obj()
         else:          else:
             pt=PageTemplateFile('Products/ECHO_content/zpt/ECHO_%s_template_standard.zpt'%type).__of__(self)          pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','ECHO_%s_template_standard.zpt'%type)).__of__(self)
             pt.content_type="text/html"              pt.content_type="text/html"
             return pt()              return pt()
           
Line 33  def content_html(self,type): Line 33  def content_html(self,type):
   
 class ECHO_basis:  class ECHO_basis:
     """basis eigenschaften fuer echo objekte"""      """basis eigenschaften fuer echo objekte"""
       security=ClassSecurityInfo()
       security.declarePublic('getImageTag')
       def getImageTag(self):
           """sollte uerberschrieben werden, falls von der Klasse eine imagetag zurueckkommt"""
           
           return ""
       
     def showRDF(self):      def showRDF(self):
         """showrdf"""          """showrdf"""
             self.REQUEST.RESPONSE.setHeader('Content-Type','text/xml')              self.REQUEST.RESPONSE.setHeader('Content-Type','text/xml')
Line 390  def checkOnlyOneInGroup(object): Line 397  def checkOnlyOneInGroup(object):
   
 def getSubCols(self, sortfield=None, subColTypes=displayTypes, sortFieldMD=None):  def getSubCols(self, sortfield=None, subColTypes=displayTypes, sortFieldMD=None):
   
       
     def sort(x,y):      def sort(x,y):
         return cmp(x[0],y[0])          return cmp(x[0],y[0])
           
Line 421  def getSubCols(self, sortfield=None, sub Line 429  def getSubCols(self, sortfield=None, sub
         tmplist=[]          tmplist=[]
   
         for x in ids:          for x in ids:
           
         if hasattr(x,sortfield):          if hasattr(x,sortfield):
             try:              try:
                 tmp=int(getattr(x,sortfield))                  tmp=int(getattr(x,sortfield))
Line 814  def readMetadata(url): Line 823  def readMetadata(url):
         for node in metacontent:          for node in metacontent:
         try:          try:
             #print urllib.unquote(getText(node.childNodes)),getText(node.childNodes)              #print urllib.unquote(getText(node.childNodes)),getText(node.childNodes)
             metadict[re.sub('-','_',node.tagName.lower())]=urllib.unquote(getText(node.childNodes))              #metadict[re.sub('-','_',node.tagName.lower())]=urllib.unquote(getText(node.childNodes))
               metadict[re.sub('-','_',node.tagName.lower())]=getText(node.childNodes)
           
         except:          except:
             """nothing"""              """nothing"""
   

Removed from v.1.39  
changed lines
  Added in v.1.43


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