--- a/web/ldt/text/views.py Fri Nov 19 14:29:17 2010 +0100
+++ b/web/ldt/text/views.py Fri Nov 19 18:12:57 2010 +0100
@@ -32,6 +32,7 @@
import tempfile
import uuid
from tagging.models import Tag
+from oauth_provider.decorators import *
## Filters the annotation depending on the request parameters
## Returns an xml containing the resulting annotations
@@ -65,7 +66,7 @@
## Creates an annotation from a urlencoded xml content
## Returns an xml-structured annotation
-#@login_required
+@oauth_required
@csrf_exempt
def create_annotation(request):
cont = request.POST["content"]
@@ -144,7 +145,7 @@
## Deletes an annotation (from its id)
## Returns an empty xml-structured annotation
-#@login_required
+@oauth_required
@csrf_exempt
def delete_annotation(request):
try:
@@ -159,7 +160,7 @@
## Updates the content of an annotation
## Returns the xml-structured updated annotation
-#@login_required
+@oauth_required
@csrf_exempt
def update_annotation(request):
try: