Changeset 451


Ignore:
Timestamp:
07/23/10 10:58:47 (12 years ago)
Author:
bas
Message:

Last variable SUBJECT_FIELD_SEPARATOR ported to UserDict?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r450 r451  
    239239                        self.parameters.email_triggers_workflow = int(self.parameters.email_triggers_workflow)
    240240
    241                 if self.parameters.has_key('subject_field_separator'):
    242                         self.SUBJECT_FIELD_SEPARATOR = self.parameters['subject_field_separator'].strip()
    243                 else:
    244                         self.SUBJECT_FIELD_SEPARATOR = '&'
     241                if not self.parameters.subject_field_separator:
     242                        self.parameters.subject_field_separator = '&'
     243                else:
     244                        self.parameters.subject_field_separator = self.parameters.subject_field_separator.strip()
    245245
    246246                self.trac_smtp_from = self.get_config('notification', 'smtp_from')
     
    576576                self.logger.debug("function str_to_dict")
    577577
    578                 fields = string.split(s, self.SUBJECT_FIELD_SEPARATOR)
     578                fields = string.split(s, self.parameters.subject_field_separator)
    579579
    580580                result = dict()
Note: See TracChangeset for help on using the changeset viewer.