Ignore:
Timestamp:
24/01/07 17:23:41 (13 years ago)
Author:
lawrence
Message:

Sundry modes to wsgi browse/discovery on the road to deploying on
glue (mostly about the many possible locations of elementtree)

File:
1 edited

Legend:

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

    r1958 r2045  
    55# 
    66# Code to support xml and elementTree viewing as text and html 
    7  
    87try: #python 2.5 
    9     import xml.etree.ElementTree as ET 
    10 except: 
    11     import ElementTree as ET 
     8    from xml.etree import ElementTree as ET 
     9except ImportError: 
     10    try: 
     11        # if you've installed it yourself it comes this way 
     12        import ElementTree as ET 
     13    except ImportError: 
     14        # if you've egged it this is the way it comes 
     15        from elementtree import ElementTree as ET 
    1216import re 
    1317 
Note: See TracChangeset for help on using the changeset viewer.