Ignore:
Timestamp:
19/12/06 12:29:21 (15 years ago)
Author:
lawrence
Message:

Modifications to support tooltips on the inrecord icon links

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/browse/portal/cgi/browse/ServiceBinding.py

    r1317 r1895  
    3535        ''' Set icon type t, or if it doesn't exist, use RELATED ''' 
    3636        self.icon=self.get(t,'icon') 
    37         if self.icon is None: 
    38             self.seticon('RELATED') 
    39         else: self.iconalt=self.get(t,'icon_alt') 
     37        self.title=self.get(t,'icon_title') 
     38        self.iconalt=self.get(t,'icon_alt') 
     39        if self.icon is None:  self.seticon('RELATED') 
    4040    def do(self,serviceType,dataProvider): 
    4141        '''  Return an actual endpoint for a given service from the data provider, e.g. 
     
    126126        def icon(self): 
    127127            ''' return html icon linking to specific service ''' 
    128             return hyperlink(image(self.serviceMap.icon,self.serviceMap.iconalt),self.url) 
     128            return hyperlink(image( 
     129                self.serviceMap.icon,self.serviceMap.iconalt,t=self.serviceMap.title),self.url) 
    129130        def __makeuri(self,s,r,l): 
    130131            ''' Actually create the URI ''' 
Note: See TracChangeset for help on using the changeset viewer.