Opened 3 years ago

Closed 2 years 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


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@… 3 years ago.
printscreen of the error page

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by bram.decoene@…

printscreen of the error page

comment:1 Changed 3 years 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 3 years ago by ChrisNelson

At r12750, the line in question is:

return, 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):


return, set())


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

This seems fine.

Please retest with current code.

comment:3 Changed 3 years ago by ChrisNelson

  • Status changed from new to assigned

comment:4 Changed 2 years 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

as closed The owner will remain ChrisNelson.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.