Ignore:
Timestamp:
20/01/09 16:33:33 (11 years ago)
Author:
cbyrom
Message:

Add new ingest script - to allow ingest of DIF docs from eXist hosted
atom feed. NB, this required restructure of original OAI harvester
to allow re-use of shared code - by abstracting this out into new class,
absstractdocumentingester.

Add new documentation and tidy up codebase removing dependencies where possible to simplify things.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/branches/ingestAutomation-upgrade/OAIBatch/keywordAdder.py

    r4257 r4854  
    33adds Structured Keywords to moles documents 
    44''' 
    5 try: #python 2.5 
    6     from xml.etree import ElementTree as etree 
    7 except ImportError: 
    8     try: 
    9         # if you've installed it yourself it comes this way 
    10         import elementtree.ElementTree as etree 
    11 #        import ElementTree as etree 
    12     except ImportError: 
    13         # if you've egged it this is the way it comes 
    14         from ndgUtils.elementtree import ElementTree as etree 
    15  
    16 try: #python 2.5 
    17     from xml.etree import cElementTree 
    18 except ImportError: 
    19     try: 
    20         # if you've installed it yourself it comes this way 
    21         import cElementTree 
    22     except ImportError: 
    23         # if you've egged it this is the way it comes 
    24         from ndgUtils.elementtree import cElementTree 
     5from xml.etree import ElementTree as etree 
     6from xml.etree import cElementTree 
    257import csml.csml2Moles.molesReadWrite as MRW 
    268import sys, os, logging 
Note: See TracChangeset for help on using the changeset viewer.