Ignore:
Timestamp:
17/05/06 13:35:11 (14 years ago)
Author:
lawrence
Message:

Some minor bug fixes in rendering DIFs and stubB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/StubB/XSLT/browse/portal/cgi/People.py

    r938 r940  
    2929                 ... for presentation we figure further org contacts can be found by following the link which ought to exist) ''' 
    3030            self.data={'personName':'','personEmail':'','personPhone':'','orgURL':'','orgName':'','searchlink':''} 
    31         def tohtml(self,prefix=''): 
     31        def toHTML(self,prefix=''): 
    3232            if self.elem is None: return '' 
    3333            def makelink(r,n): 
    3434                if r!='': 
    35                     return '<a href="%s%>%s</a>'%(a,b) 
     35                    return '<a href="%s">%s</a>'%(r,n) 
    3636                else: return n 
    3737            html='<p>'+prefix 
     
    5555                ''' Instantiate a MOLES contact element ''' 
    5656                self.elem=element 
     57                contact.__init__(self) 
    5758                if self.elem is None: return 
    58                 contact.__init__(self) 
    59                 self.data['personName']=Name(self.elem.find('dgRoleHolder/dgPerson/name')) 
     59                self.data['personName']=Name(self.elem.find('dgRoleHolder/dgPerson/name')) 
    6060                if ctype=='organisation': 
    6161                        base='dgRoleHolder/dgOrganisation/' 
     
    7070    def __init__(self,elem,ctype='centre'): 
    7171        self.elem=elem 
     72        contact.__init__(self) 
    7273        if self.elem is None: return 
    73         contact.__init__(self) 
    7474        if ctype=='centre': 
    7575            self.data['orgName']=wrapGetText(self.elem,'Data_Center_Name/Short_Name') 
Note: See TracChangeset for help on using the changeset viewer.