aboutsummaryrefslogtreecommitdiff
path: root/budget/api.py
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-11-27 04:11:22 +0100
committerAlexis Metaireau <alexis@notmyidea.org>2011-11-27 04:11:22 +0100
commit47010d4cd7d280ef9be386cfa2c4d3569314ab23 (patch)
tree466b1329dd26a84cbb07b7306512090116d8a41d /budget/api.py
parent672f2a1ca16a7e34acf8fadbf0d7113921d2573c (diff)
downloadihatemoney-mirror-47010d4cd7d280ef9be386cfa2c4d3569314ab23.zip
ihatemoney-mirror-47010d4cd7d280ef9be386cfa2c4d3569314ab23.tar.gz
ihatemoney-mirror-47010d4cd7d280ef9be386cfa2c4d3569314ab23.tar.bz2
change the icons, simplify some javascript
Diffstat (limited to 'budget/api.py')
-rw-r--r--budget/api.py7
1 files changed, 4 insertions, 3 deletions
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())