Ignore:
Timestamp:
14/03/07 21:02:11 (12 years ago)
Author:
lawrence
Message:

Better handling of DIF parameters as currently reported by
mini-MOLES

File:
1 edited

Legend:

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

    r2274 r2278  
    11from htmlUtilities import * 
    22from renderService import * 
     3from renderParameters import * 
    34 
    45class renderEntity: 
     
    172173        else: 
    173174            html+='''<tr><td class="line" width="20%%">%ss</td><td>'''%title 
    174         html+=keywords[0] 
    175         for item in keywords[1:]: 
    176             i=item.replace(' ','&nbsp;') 
    177             html+=',&nbsp;&nbsp; %s'%i 
     175             
     176        #is it a list of DIF style parameter keywords? If so, let's format that especially 
     177        #and use the vocabulary server 
     178        if (title=='Parameter' and len(keywords[0].split('/'))==5): 
     179            html+=renderParameters(keywords) 
     180        else: 
     181            html+=keywords[0] 
     182            for item in keywords[1:]: 
     183                i=item.replace(' ','&nbsp;') 
     184                html+=',&nbsp;&nbsp; %s'%i 
    178185        html+='</td></tr>' 
    179186    return html 
Note: See TracChangeset for help on using the changeset viewer.