Changeset 6270


Ignore:
Timestamp:
06/01/10 14:59:52 (10 years ago)
Author:
sdonegan
Message:

support updates to appearance of editor

Location:
TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/model
Files:
2 edited

Legend:

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

    r5255 r6270  
    1616NAME_ATT_NAME = "name" 
    1717EMAIL_ADDRESS_NAME = "email" 
     18DATA_CENTRE_NAME = "name" 
     19DATA_FORMAT_NAME = "dataFormat" 
    1820 
    1921 
     
    8183        self.email = et.findtext(EMAIL_ADDRESS_NAME) or '' 
    8284        self.oldName = self.name 
    83          
     85                 
    8486        repositoryInfos = et.findall(RI_ROOT_ELEMENT_NAME) 
    85          
    8687        self.repositoryInfos = [] 
    8788        if repositoryInfos: 
    8889            for ri in repositoryInfos: 
    89                 self.repositoryInfos.append(RepositoryInfo(et = ri)) 
     90                thisRepInfo = RepositoryInfo(et = ri) 
     91                self.repositoryInfos.append(thisRepInfo) 
     92                 
    9093         
     94        self.dataCentreName = thisRepInfo.name 
     95        self.dataFormat = thisRepInfo.dataFormat 
     96                 
    9197        logging.debug("Data added from elementtree") 
    9298     
  • TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/model/repositoryinfo.py

    r5237 r6270  
    139139        if not ET.iselement(et): 
    140140            raise ValueError("Input et [%s] is not an elementtree Element object" %et) 
    141  
     141            
     142         
    142143        self.harvestTime = et.findtext(HARVEST_TIME_NAME) or '' 
    143144        self.splitBySet = et.findtext(SPLIT_BY_SET_NAME) or False 
     
    148149        self.modificationDate = et.findtext(MODIFICATION_DATE_ELEMENT_NAME) or '' 
    149150        self.version = et.findtext(VERSION_ELEMENT_NAME) or '1' 
     151         
    150152        logging.debug("Data added from elementtree") 
    151153     
Note: See TracChangeset for help on using the changeset viewer.