Ignore:
Timestamp:
05/04/07 15:01:07 (13 years ago)
Author:
lawrence
Message:

Improvements in date and person handling.

File:
1 edited

Legend:

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

    r1905 r2386  
    4444def htmlTime(string): 
    4545    ''' Take a yyyy-mm-dd and turn into two line html ''' 
    46     if string in [None,'']: return '' 
     46    if string in [None,'','Unknown']: return '' 
    4747    t=string.split('-') 
    48     return '%s<br/>%s-%s'%tuple(t) 
    49      
     48    if len(t)==3: 
     49        return '%s<br/>%s-%s'%tuple(t) 
     50    else: 
     51        return t 
Note: See TracChangeset for help on using the changeset viewer.