Ticket #966 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

[M] SpaceTimeingestPostGISFromMoles not importing cElementTree for python2.5

Reported by: selatham Owned by: mpritcha
Priority: critical Milestone: NDG2 Cleanup
Component: discovery Version:
Keywords: DiscoveryService Cc:

Description

Do like in original SpaceTimeIngestFromMoles:-

try: #python 2.5
3 	    from xml.etree import cElementTree
4 	    from xml.etree import ElementTree as etree
5 	except ImportError:
6 	    try:
7 	        # if you've installed it yourself it comes this way
8 	        import cElementTree
9 	        import ElementTree as etree
10 	    except ImportError:
11 	        # if you've egged it this is the way it comes
12 	        from ndgUtils.elementtree import cElementTree
13 	        from ndgUtils.elementtree import ElementTree as etree

Change History

comment:1 Changed 11 years ago by lawrence

Actually I think we should settle on the following and only the following:

from ndgUtils.elementtree import cElementTree
from ndgUtils.elementtree import ElementTree as etree

since we will start using specific parts of 1.3 and later ...

comment:2 Changed 11 years ago by lawrence

  • Keywords DiscoveryService added
  • Component changed from DiscoveryService to discovery

Moved from DiscoveryService? component to discovery as part of NDG2 cleanup

comment:3 Changed 11 years ago by sdonegan

  • Status changed from new to closed
  • Resolution set to fixed

Thinks this is fixed..? Not seen anything like it and updated postgres code nullifies it.

Note: See TracTickets for help on using tickets.