Modify

Opened 18 months ago

Closed 5 months ago

#10966 closed defect (worksforme)

TypeError: query() takes at least 4 arguments (3 given)

Reported by: bram.decoene@… Owned by: ChrisNelson
Priority: high Component: TracJsGanttPlugin
Severity: major Keywords: query function error
Cc: Trac Release: 0.12

Description

see error message printscreen in attachment

How to reproduce:
assign project to ticket that had none before (ticket created before SimpleMultiProject plugin installation)
Modification is saved (project assigned), but error page is shown

Attachments (1)

deb 20130322 14.10.jpg (124.8 KB) - added by bram.decoene@… 18 months ago.
printscreen of the error page

Download all attachments as: .zip

Change History (5)

Changed 18 months ago by bram.decoene@…

printscreen of the error page

comment:1 Changed 18 months ago by anonymous

Correction on 'how to reproduce': every time changes are saved to a ticket without a project (SimpleMultiProject plugin) attached
(not only when changing project as stated initially)

comment:2 Changed 12 months ago by ChrisNelson

At r12750, the line in question is:

return self.pm.query(options, set())

and query() is defined as:

def query(self, req, options, fields, ticket=None):

so it seems that the fields parameter is missing.

At r13361, I see:

def query(self, options, fields, req=None):

and

return self.pm.query(options, set())

so:

  • options is provided
  • fields is an empty set
  • req defaults to None.

This seems fine.

Please retest with current code.

comment:3 Changed 12 months ago by ChrisNelson

  • Status changed from new to assigned

comment:4 Changed 5 months ago by ChrisNelson

  • Resolution set to worksforme
  • Status changed from assigned to closed

No response from OP in 8 months. Closing.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.