Ignore:
Timestamp:
19/03/07 14:37:25 (13 years ago)
Author:
lawrence
Message:

Cleaning up edge cases in discovery so that while NDG browse isn't
enabled, what you see still makes sense :-).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/wsgi/ServiceBinding.py

    r1905 r2295  
    1515from htmlUtilities import hyperlink,image 
    1616from ETxmlView import nsdumb,et2text 
     17 
     18class DIFService: 
     19    ''' A DIF only knows about a related URL ''' 
     20    def __init__(self,c,u,d): 
     21        ''' Take a related url tuple (content_type,url,description) and store it, using 
     22        an ndgModifier if necessary ''' 
     23        self.contentType,self.url,self.description=c,u,d 
     24    def __str__(self): 
     25        return '<a href="%s" title="%s">%s</a>'%(self.url,self.contentType,self.description) 
     26 
    1727 
    1828def idconvert(e,helper=None): 
Note: See TracChangeset for help on using the changeset viewer.