Ignore:
Timestamp:
03/26/10 10:36:39 (10 years ago)
Author:
sander
Message:

Do not crash factory when the oooserver dies mid-conversion

File:
1 edited

Legend:

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

    r247 r335  
    5252                self.application = config.get(section, 'application').lower() 
    5353                self.version = config.get(section, 'version').lower() 
    54                 self.doctype = config.get(section, 'doctype') 
     54                self.doctype = [s.strip() for s in config.get(section, 'doctype').split(',')] 
    5555                self.formats = [s.strip() for s in config.get(section, 'formats').split(',')] 
    5656         
     
    6868                        job['application'].lower() == self.application and 
    6969                        job['version'].lower() == self.version and 
    70                         job['doctype'] == self.doctype and 
     70                        job['doctype'] in self.doctype and 
    7171                        (job['format'] == '' or job['format'] in self.formats) 
    7272                ) 
     73 
    7374                return eligable 
    7475 
Note: See TracChangeset for help on using the changeset viewer.