Changeset 445 for trunk/email2trac.py.in


Ignore:
Timestamp:
07/22/10 16:06:48 (12 years ago)
Author:
bas
Message:

ported LOOKBACK to UserDict?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r444 r445  
    183183                        self.parameters.email_quote = '> '
    184184
    185                 if self.parameters.has_key('ticket_update_by_subject_lookback'):
    186                         self.TICKET_UPDATE_BY_SUBJECT_LOOKBACK = int(self.parameters['ticket_update_by_subject_lookback'])
    187                 else:
    188                         self.TICKET_UPDATE_BY_SUBJECT_LOOKBACK = 30
     185                if self.parameters.ticket_update_by_subject_lookback:
     186                        self.parameters.ticket_update_by_subject_lookback = int(self.parameters.ticket_update_by_subject_lookback)
     187                else:
     188                        self.parameters.ticket_update_by_subject_lookback = 30
    189189
    190190                if self.parameters.has_key('verbatim_format'):
     
    978978                                # Convert days to seconds
    979979                                lookback = int(time.mktime(time.gmtime())) - \
    980                                                 self.TICKET_UPDATE_BY_SUBJECT_LOOKBACK * 24 * 3600
     980                                                self.parameters.ticket_update_by_subject_lookback * 24 * 3600
    981981
    982982
Note: See TracChangeset for help on using the changeset viewer.