Ignore:
Timestamp:
30/04/09 16:21:02 (10 years ago)
Author:
cbyrom
Message:

Add help page to application + tidy up codebase remove uneccessary code
and fixing name references, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/model/providerinfo.py

    r5238 r5242  
    11''' 
    2  Class representing a change request for vocab term data 
    3  - effectively gathering a collection of Vocab Terms together with 
    4  change dates to show the evolution of a new name submission or change request 
     2 Class representing provider info data 
     3 - effectively gathering a collection of RepositoryInfos together with name 
     4 information to group them 
    55   
    6  @author: C Byrom, Tessella Feb 2009 
     6 @author: C Byrom, Tessella Apr 2009 
    77''' 
    88from xml.etree import cElementTree as ET 
     
    3838        ''' 
    3939        Constructor - initialise the ProviderInfo name object 
    40         @keyword et: elementtree entry representing a ProviderInfo - to 
    41         start the change request with 
     40        @keyword et: elementtree entry representing a ProviderInfo object 
    4241        ''' 
    4342        logging.debug("Initialising new ProviderInfo document object") 
     
    6766        ''' 
    6867        Extract data from an elementtree object and add to ProviderInfo object 
    69         - NB, assume if we're doing this, we're reading in a master doc - so we 
    70         don't need to worry about change request - i.e. we start the list of  
    71         standard names from scratch 
    7268         
    7369        @param et: Elementtree object representing a ProviderInfo 
     
    9288    def toET(self): 
    9389        ''' 
    94         Create an array of Elementtree Elements representing the data held by the change request 
    95         object.  NB, order the elements of this according to their creation date 
     90        Create an Elementtree object representing the data held by the provider info 
     91        object. 
    9692         
    9793        @return Elementree representing the ProviderInfo data 
     
    141137        @param repositoryInfo: a RepositoryInfo to remove from the collection 
    142138        ''' 
    143         logging.debug("Removing change request, '%s', from collection" %repositoryInfo) 
     139        logging.debug("Removing repository info, '%s', from collection" %repositoryInfo) 
    144140 
    145141        ris = [] 
     
    152148 
    153149        self.repositoryInfos = ris 
    154         logging.debug("- provider info removed") 
     150        logging.debug("- repository info removed") 
    155151 
    156152 
Note: See TracChangeset for help on using the changeset viewer.