Changeset 171


Ignore:
Timestamp:
05/25/09 14:19:24 (12 years ago)
Author:
sander
Message:

Case insensitive matching on app name and version number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/factory/src/backends/__init__.py

    r161 r171  
    5050                self.section = section 
    5151 
    52                 self.application = config.get(section, 'application') 
    53                 self.version = config.get(section, 'version') 
     52                self.application = config.get(section, 'application').lower() 
     53                self.version = config.get(section, 'version').lower() 
    5454                self.doctype = config.get(section, 'doctype') 
    5555                self.formats = [s.strip() for s in config.get(section, 'formats').split(',')] 
     
    6666                """ 
    6767                eligable = ( 
    68                         job['application'] == self.application and 
    69                         job['version'] == self.version and 
     68                        job['application'].lower() == self.application and 
     69                        job['version'].lower() == self.version and 
    7070                        job['doctype'] == self.doctype and 
    7171                        (job['format'] == '' or job['format'] in self.formats) 
Note: See TracChangeset for help on using the changeset viewer.