#16 new
Jonathan Saggau

APIAddRadarAction broken

Reported by Jonathan Saggau | February 24th, 2009 @ 08:15 PM

Hi Tim

Been poking at API and found the radar addition nonfunctional. The patch below seems to fit the Radar model and follow the conventions of your post method.

diff --git a/main.py b/main.py index e6f62a4..dec27c5 100755 --- a/main.py +++ b/main.py @@ -312,9 +312,10 @@ class APIAddRadarAction(Handler):

   description = self.request.get("description")
   product = self.request.get("product")
   classification = self.request.get("classification")

  • reproducible = int(self.request.get("reproducible"))
  • reproducible = self.request.get("reproducible") product_version = self.request.get("product_version") originated = self.request.get("originated")
  • resolved = self.request.get("resolved") radar = Radar(title=title,
                 number=number,
                 user=user,
    
    

Jonathan Saggau

Comments and changes to this ticket

  • Jonathan Saggau

    Jonathan Saggau February 26th, 2009 @ 12:17 PM

    Erg. So the markup messed-up the patch. I think it's clear enough what changes need to be made. Looks like the model was changed at some point and not the upload api.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Open Issue Tracker

Pages