Ignore:
Timestamp:
17/03/09 12:49:01 (11 years ago)
Author:
cbyrom
Message:

Add new fields to vocab list data model to handle the parser file data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/src/models/vocablist.py

    r5082 r5109  
    2828        self.name = None 
    2929        self.newsgroupEmail = '' 
     30        self.parserDataFile = None 
    3031         
    3132        # these are the users who can edit this list 
     
    5758 
    5859 
    59     def setData(self, url, name, editors = [], newsgroupEmail = None): 
     60    def setData(self, url, name, editors = [], newsgroupEmail = None, 
     61                parserDataFile = None): 
    6062        ''' 
    6163        Set data on the vocab list data model 
     
    6567        @keyword newsgroupEmail: email of the news group associated with the vocab list 
    6668        edit entries in this list   
     69        @keyword parserDataFile: path to the file containing the parser data for 
     70        generating standard definitions from the vocab list names  
    6771        ''' 
    68         logging.debug("Setting data on VocabList:\nurl = %s \nname = %s \neditors = %s" 
    69                       %(url, name, editors)) 
     72        logging.debug("Setting data on VocabList:\nurl = %s \nname = %s \neditors = %s\nParser data file = %s" 
     73                      %(url, name, editors, parserDataFile)) 
    7074        self.url = httpify(url) 
    7175        self.name = name 
    7276        self.editors = editors 
    7377        self.newsgroupEmail = newsgroupEmail 
     78        self.parserDataFile = parserDataFile 
    7479        logging.debug("Finished setting data on VocabList") 
    7580         
Note: See TracChangeset for help on using the changeset viewer.