-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommon_tags.py
34 lines (28 loc) · 987 Bytes
/
common_tags.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from xform_manager.xform_instance_parser import XFORM_ID_STRING
# WE SHOULD PUT MORE STRUCTURE ON THESE TAGS SO WE CAN ACCESS DOCUMENT
# FIELDS ELEGANTLY
# These are common variable tags that we'll want to access
INSTANCE_DOC_NAME = u"_name"
ID = u"_id"
PICTURE = u"picture"
GPS = u"location/gps"
LGA = u"lga"
SURVEY_TYPE = u'_survey_type_slug'
# Phone IMEI:
DEVICE_ID = u"device_id" # This tag was used in Phase I
IMEI = u"imei" # This tag was used in Phase II
# Survey start time:
START_TIME = u"start_time" # This tag was used in Phase I
START = u"start" # This tag was used in Phase II
END_TIME = u"end_time"
END = u"end"
# value of INSTANCE_DOC_NAME that indicates a regisration form
REGISTRATION = u"registration"
# keys that we'll look for in the registration form
NAME = u"name"
# extra fields that we're adding to our mongo doc
SURVEYOR_NAME = u"_surveyor_name"
LGA_ID = u"_lga_id"
ATTACHMENTS = u"_attachments"
DATE = u"_date"
PHONE_UPDATE = u"phone"