Changeset 340


Ignore:
Timestamp:
03/24/10 15:21:34 (14 years ago)
Author:
bas
Message:

renamed attachments to attach_attachments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r339 r340  
    805805
    806806                if self.VERSION  == 0.9:
    807                         error_with_attachments = self.attachments(message_parts, True)
    808                 else:
    809                         error_with_attachments = self.attachments(message_parts)
     807                        error_with_attachments = self.attach_attachments(message_parts, True)
     808                else:
     809                        error_with_attachments = self.attach_attachments(message_parts)
    810810
    811811                if self.notification and not spam:
     
    961961                ## Save the attachments to the ticket   
    962962                #
    963                 error_with_attachments =  self.attachments(message_parts)
     963                error_with_attachments =  self.attach_attachments(message_parts)
    964964
    965965                if error_with_attachments:
     
    12411241                #
    12421242
     1243        def inline_part(self, part):
     1244                """
     1245                """
     1246                if self.VERBOSE:
     1247                        print "VB: inline_part()"
     1248
     1249                return part.get_param('inline', None, 'Content-Disposition') == '' or not part.has_key('Content-Disposition')
    12431250
    12441251        def get_message_parts(self, msg):
     
    14271434                return renamed_parts
    14281435                       
    1429         def inline_part(self, part):
    1430                 return part.get_param('inline', None, 'Content-Disposition') == '' or not part.has_key('Content-Disposition')
    1431                
    14321436                       
    14331437        def attachment_exists(self, filename):
     
    15321536                return s
    15331537
    1534         def attachments(self, message_parts, update=False):
     1538        def attach_attachments(self, message_parts, update=False):
    15351539                '''
    15361540                save any attachments as files in the ticket's directory
    15371541                '''
     1542                if self.VERBOSE:
     1543                        print "VB: attach_attachments()"
     1544
    15381545                if self.DRY_RUN:
    1539                         print "DRY_RUN: no attachments saved"
     1546                        print "DRY_RUN: no attachments attached to tickets"
    15401547                        return ''
    15411548
Note: See TracChangeset for help on using the changeset viewer.