Modify

Opened 11 years ago

Closed 10 years ago

#10966 closed defect (worksforme)

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

Reported by: bram.decoene@… Owned by: Chris Nelson
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@… 11 years ago.
printscreen of the error page

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by bram.decoene@…

Attachment: deb 20130322 14.10.jpg added

printscreen of the error page

comment:1 Changed 11 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 11 years ago by Chris Nelson

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 11 years ago by Chris Nelson

Status: newassigned

comment:4 Changed 10 years ago by Chris Nelson

Resolution: worksforme
Status: assignedclosed

No response from OP in 8 months. Closing.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Chris Nelson.
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.