Changeset 166


Ignore:
Timestamp:
07/05/07 18:34:56 (17 years ago)
Author:
bas
Message:

email2trac.py.in:

  • Gonna build in some checking if we supplied the right ticket fields and values for the ticket fielf manipulation. Else we get all kind of weird erros. Have found the right entry points.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r165 r166  
    431431                except AttributeError:
    432432                        tkt_fields = dict()
    433 
    434433                        nr = result.group('ticketnr')
     434
    435435                        # Strip '#' and ':'
    436436                        #
     
    453453                        # Must we update some ticket fields
    454454                        #
    455                         #for entry in tkt.fields:
    456                         #       print entry['name']
    457                         #       print entry
    458                         #sys.exit(1)
     455                        for entry in tkt.fields:
     456                                print entry['name']
     457                                try:
     458                                        print entry['options']
     459                                except KeyError:
     460                                        print entry
     461                                        pass
     462
     463                        sys.exit(1)
    459464                        for key,value in tkt_fields.items():
    460465                                tkt[key] = value
Note: See TracChangeset for help on using the changeset viewer.