Modify

Opened 18 years ago

Closed 18 years ago

#390 closed defect (fixed)

ticket.update returns a failure to get the ticket

Reported by: moof@… Owned by: Alec Thomas
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.9

Description (last modified by Noah Kantrowitz)

> server.ticket.update(41, u'Actualizacion automatica', attrs)
Traceback (most recent call last):
  File "<input>", line 1, in ?
  File "C:\Python24\lib\xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "C:\Python24\lib\xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "C:\Python24\lib\xmlrpclib.py", line 1147, in request
    return self._parse_response(h.getfile(), sock)
  File "C:\Python24\lib\xmlrpclib.py", line 1286, in _parse_response
    return u.close()
  File "C:\Python24\lib\xmlrpclib.py", line 744, in close
    raise Fault(**self._stack[0])
Fault: <Fault 2: "''TicketRPC' object has no attribute 'getTicket'' while executing 'ticket.update()'">

The code is wrong and referring a method that does not exist. Attached is a patch to correct the line.

Attachments (1)

ticket.py.patch (438 bytes) - added by moof@… 18 years ago.
Patch to resolve the problem

Download all attachments as: .zip

Change History (3)

Changed 18 years ago by moof@…

Attachment: ticket.py.patch added

Patch to resolve the problem

comment:1 Changed 18 years ago by Noah Kantrowitz

Description: modified (diff)

Fix traceback so it looks less dumb

comment:2 Changed 18 years ago by Alec Thomas

Resolution: fixed
Status: newclosed

Closed in r786.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.