Diff for /ECHO_content/ECHO_helpers.py between versions 1.88 and 1.90

version 1.88, 2008/08/21 07:44:56 version 1.90, 2008/09/08 19:02:30
Line 420  class ECHO_basis: Line 420  class ECHO_basis:
         bt = BrowserCheck(self)          bt = BrowserCheck(self)
         id = ob.getFullId()          id = ob.getFullId()
         link = ob.getLinkId()          link = ob.getLinkId()
           if target is None:
               targetattr = ""
           else:
               targetattr = 'target="%s"'%target
                
         if text is None:          if text is None:
             text = ob.getLabel()              text = ob.getLabel()
               
         if text is None:          if text is None:
             text = "link"              text = "link"
               
         tiptext = ob.getTip()          tiptext = ob.getTip()
         tag = ""          tag = ""
         if bt.isN4:          if bt.isN4:
             # N4 needs layer for highlighting              # N4 needs layer for highlighting
             tag += '<ilayer id="a.%s"><a class="maplink" onmouseover="highlightPair(\'%s\', true)" onmouseout="highlightPair(\'%s\', false)" href="%s" target="%s"'%(id,id,id,link,target)              tag += '<ilayer id="a.%s"><a class="maplink" onmouseover="highlightPair(\'%s\', true)" onmouseout="highlightPair(\'%s\', false)" href="%s" %s'%(id,id,id,link,targetattr)
             tag += ">" + text + "</a></ilayer>"              tag += ">" + text + "</a></ilayer>"
         else:          else:
             # a-element              # a-element
             tag = '<a id="a.%s" class="maplink" onmouseover="highlightPair(\'%s\', true)" onmouseout="highlightPair(\'%s\', false)" href="%s" target="%s"'%(id,id,id,link,target)              tag = '<a id="a.%s" class="maplink" onmouseover="highlightPair(\'%s\', true)" onmouseout="highlightPair(\'%s\', false)" href="%s" %s'%(id,id,id,link,targetattr)
             if tiptext:              if tiptext:
                 tag += ' title="%s"'%tiptext                  tag += ' title="%s"'%tiptext
             tag += ">" + text + "</a>"              tag += ">" + text + "</a>"
Line 633  def getSubCols(self, sortfield=None, Line 640  def getSubCols(self, sortfield=None,
                                 return  cmp(x[0],y[0])                                  return  cmp(x[0],y[0])
                         else:                          else:
                                 if type(x[0])==types.StringType:                                  if type(x[0])==types.StringType:
                                         tmpX=unicode(x[0])                                          tmpX=unicodify(x[0])
                                         tmpY=y[0]                                          tmpY=y[0]
                                 else:                                  else:
                                         tmpY=unicode(y[0])                                          tmpY=unicodify(y[0])
                                         tmpX=x[0]                                          tmpX=x[0]
                                 return cmp(tmpX,tmpY)                                  return cmp(tmpX,tmpY)
   

Removed from v.1.88  
changed lines
  Added in v.1.90


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