Ticket #966 (closed defect: fixed)
[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:2 Changed 13 years ago by lawrence
- Keywords DiscoveryService added
- Component changed from DiscoveryService to discovery
Moved from DiscoveryService? component to discovery as part of NDG2 cleanup
Note: See
TracTickets for help on using
tickets.
Actually I think we should settle on the following and only the following:
since we will start using specific parts of 1.3 and later ...