Changeset 653


Ignore:
Timestamp:
04/08/14 10:26:59 (10 years ago)
Author:
bas
Message:

added two patches:

1) applied lower to an object instead of string, closes #340
2) bug in custom field initialization, see #340

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r651 r653  
     12.8.1
     2  * There was a case where the lower method on a string was referenced as an object instead of
     3    actually making a method call, closes #340
     4    Author: ianyh
     5    Applied by: Bas van der Vlies
     6
     7  * Custom ticket fields were not properly initialized, closes #338
     8    Author: ivanelsonnunes add gmail dot com
     9    Applied by: Bas van der Vlies
     10
     11  *
    1122.8.0
    213  * Also made delete_spam virtual env aware
  • trunk/debian/changelog

    r648 r653  
     1email2trac (2.8.1-1) stable; urgency=low
     2
     3  * See Changelog
     4
     5 -- Bas van der Vlies <bas.vandervlies@surfsara.nl>  Tue, 08 Apr 2014 10:01:51 +0200
     6
    17email2trac (2.8.0-1) stable; urgency=low
    28
  • trunk/email2trac.py.in

    r650 r653  
    839839            cc_list = tkt['cc'].split(',')
    840840            for cc in cc_list:
    841                 if self.email_addr.lower() in cc.lower.strip():
     841                if self.email_addr.lower() in cc.lower().strip():
    842842                    self.logger.debug('ALLOW, %s is in the CC' %(self.email_addr))
    843843
     
    11151115            ## default trac value
    11161116            #
     1117            CUSTOM_FIELD = False
    11171118            if not field.get('custom'):
    11181119                value = self.get_config('ticket', 'default_%s' %(name) )
     
    11241125
    11251126            else:
    1126                 ##  Else get the default value for reporter
     1127                ##  Else get the default value for custom fields
    11271128                #
     1129                CUSTOM_FIELD = True
    11281130                value = field.get('value')
    11291131                options = field.get('options')
     
    11531155                self.print_unicode(s)
    11541156
     1157            else:
     1158                ## custom fields need some initialisation
     1159                #
     1160                if CUSTOM_FIELD:
     1161                    user_dict[name] = ''
     1162                   
    11551163        self.update_ticket_fields(ticket, user_dict, new=1)
    11561164
    11571165        if 'status' not in user_dict.keys():
    11581166            ticket['status'] = 'new'
    1159 
    11601167
    11611168    def ticket_update_by_subject(self, subject):
  • trunk/email2trac.spec

    r648 r653  
    11Summary: Utilities for converting emails to trac tickets
    22Name: email2trac
    3 Version: 2.8.0
     3Version: 2.8.1
    44Release: 1
    55License: Apache License 2.0
Note: See TracChangeset for help on using the changeset viewer.