Changeset 1164:92e6925b39b8 for src/mlx/web.py
- Timestamp:
- 06/05/24 18:56:35 (4 weeks ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/web.py
r1154 r1164 23 23 import html.parser 24 24 import certifi 25 import base64 25 26 26 27 #--------------------------------------------------------------------------------------- … … 726 727 _latin2Encoder = codecs.getencoder("iso-8859-2") 727 728 728 def __init__(self, callback, summary, description, email ):729 def __init__(self, callback, summary, description, email, debugLog): 729 730 """Construct the request for the given bug report.""" 730 731 super(SendBugReport, self).__init__(callback) … … 732 733 self._description = description 733 734 self._email = email 735 self._debugLog = debugLog 734 736 735 737 def run(self): … … 747 749 attributes, True) 748 750 print("Created ticket with ID:", result.ticketID) 751 if self._debugLog: 752 serverProxy.ticket.putAttachment(result.ticketID, "debug.log", 753 "Debug log", 754 bytes(self._debugLog, "utf-8")) 755 756 749 757 result.success = True 750 758 … … 953 961 self._addRequest(request) 954 962 955 def sendBugReport(self, callback, summary, description, email ):963 def sendBugReport(self, callback, summary, description, email, debugLog = None): 956 964 """Send a bug report with the given data.""" 957 self._addRequest(SendBugReport(callback, summary, description, email)) 965 self._addRequest(SendBugReport(callback, summary, description, email, 966 debugLog = debugLog)) 958 967 959 968 def setCheckFlightPassed(self, callback, aircraftType):
Note:
See TracChangeset
for help on using the changeset viewer.