Changeset 488:0240f723563b for src


Ignore:
Timestamp:
04/01/13 09:59:18 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added the actual creation of the bug report ticket (re #190)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/web.py

    r484 r488  
    1313import traceback
    1414import xml.sax
     15import xmlrpclib
    1516
    1617#---------------------------------------------------------------------------------------
     
    807808    def run(self):
    808809        """Perform the sending of the bug report."""
    809         time.sleep(3)
     810        serverProxy = xmlrpclib.ServerProxy("http://mlx.varadiistvan.hu/rpc")
    810811
    811812        result = Result()
     813
     814        attributes = {}
     815        if self._email:
     816            attributes["reporter"] = self._email
     817
     818        id = serverProxy.ticket.create(self._summary, self._description,
     819                                       attributes, True)
     820        print "Created ticket with ID:", id
    812821        result.success = True
    813822
Note: See TracChangeset for help on using the changeset viewer.