|
27
|
1 |
''' |
|
|
2 |
Created on 07 August 2012 |
|
|
3 |
|
|
|
4 |
@author: Corinne |
|
|
5 |
''' |
|
|
6 |
import logging |
|
|
7 |
|
|
|
8 |
logger = logging.getLogger('document') |
|
|
9 |
|
|
|
10 |
class ClientDocumentAnnotationDeleteAttributes(object): |
|
|
11 |
|
|
|
12 |
def __init__(self, request): |
|
|
13 |
self.request = request |
|
|
14 |
|
|
|
15 |
def get_user(self): |
|
|
16 |
user = '' |
|
|
17 |
try: |
|
|
18 |
user = self.request.POST['user'] |
|
|
19 |
except Exception, err: |
|
|
20 |
logger.info('No user attribute in the http post request. ' + str(err)) |
|
|
21 |
return user |
|
|
22 |
|
|
|
23 |
def get_annotation_id(self): |
|
|
24 |
annotation_id = '' |
|
|
25 |
try: |
|
|
26 |
annotation_id = self.request.POST['annotation_id'] |
|
|
27 |
except Exception, err: |
|
|
28 |
logger.info('No annotation_id attribute in the http post request. ' + str(err)) |
|
|
29 |
return annotation_id |