From 47010d4cd7d280ef9be386cfa2c4d3569314ab23 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sun, 27 Nov 2011 04:11:22 +0100 Subject: change the icons, simplify some javascript --- budget/api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'budget/api.py') diff --git a/budget/api.py b/budget/api.py index 9d41b3c..4ca04f2 100644 --- a/budget/api.py +++ b/budget/api.py @@ -2,7 +2,7 @@ from flask import * from models import db, Project, Person, Bill -from forms import (ProjectForm, EditProjectForm, MemberForm, BillForm, +from forms import (ProjectForm, EditProjectForm, MemberForm, BillForm, get_billform_for) from utils import for_all_methods @@ -12,6 +12,7 @@ from werkzeug import Response api = Blueprint("api", __name__, url_prefix="/api") + def check_project(*args, **kwargs): """Check the request for basic authentication for a given project. @@ -134,8 +135,8 @@ class BillHandler(object): project_resource = RESTResource( name="project", - route="/projects", - app=api, + route="/projects", + app=api, actions=["add", "update", "delete", "get"], handler=ProjectHandler()) -- cgit v1.1