Changeset 491:3109e293df85 for src


Ignore:
Timestamp:
04/01/13 12:00:55 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Added the ID of the ticket to the reply dialog (re #190)

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/gui.py

    r490 r491  
    14151415            if result.success:
    14161416                type = MESSAGETYPE_INFO
    1417                 messageFormat = xstr("sendBugReport_success")
     1417                messageFormat = xstr("sendBugReport_success") % (result.ticketID,)
    14181418                secondaryMarkup = xstr("sendBugReport_success_sec")
    14191419            else:
  • src/mlx/web.py

    r488 r491  
    811811
    812812        result = Result()
     813        result.success = False
    813814
    814815        attributes = {}
     
    816817            attributes["reporter"] = self._email
    817818
    818         id = serverProxy.ticket.create(self._summary, self._description,
    819                                        attributes, True)
    820         print "Created ticket with ID:", id
     819        result.ticketID = serverProxy.ticket.create(self._summary, self._description,
     820                                                    attributes, True)
     821        print "Created ticket with ID:", result.ticketID
    821822        result.success = True
    822823
Note: See TracChangeset for help on using the changeset viewer.