Ignore:
Timestamp:
12/01/09 10:10:44 (11 years ago)
Author:
cbyrom
Message:

Add code to allow publishing of data to multiple feeds - to offer
different levels of granularity to subscribe to (with appropriate feed
titles) + add code to
allow feed publication to be done asynchronously + extend to
run atom to DIF transforms at point of publish for atom docs
in the published state (i.e. with state of 'published' or 'Published').
Add code to ingest required organisation data when setting up
the eXist DB - and provide cache of this data to avoid unecessary
lookups. Also extend the eXist DB setup code to initialise the
various new feeds added.
Add utility methods to check if an eXist collection is new and to
establish the publication state of an atom doc - and to change
the state of this doc (NB, need to do a doc delete and doc create
for this - can't see a doc 'move' function in eXist). Also add
code to do the atom to DIF transform direct in the eXist DB.
Improve error handling when publishing feed data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/ndgObject.py

    r4696 r4782  
    1919    ATOM_DOC_TYPE = 'ATOM' 
    2020    ATOM_BACKUP_DOC_TYPE = 'ATOM-BACKUP' 
     21     
     22    # NB, DIF records are stored in local eXist DB to allow feeds to serve them 
     23    BROWSE_DIF_DOC_TYPE = 'BROWSE-DIF' 
    2124 
    2225        # various namespaces used in the docs 
     
    3538    BROWSE_SCHEMES = [MOLES_DOC_TYPE, NDGB1_DOC_TYPE, \ 
    3639                      NUMSIM_DOC_TYPE, ATOM_DOC_TYPE, \ 
    37                       ATOM_BACKUP_DOC_TYPE] 
     40                      ATOM_BACKUP_DOC_TYPE, BROWSE_DIF_DOC_TYPE] 
    3841     
    3942    def __init__(self,uri,config=None): 
Note: See TracChangeset for help on using the changeset viewer.