Skip to content

Commit

Permalink
Merge pull request #104 from dimagi/build-id
Browse files Browse the repository at this point in the history
add build_id to metadata
  • Loading branch information
czue committed Mar 31, 2014
2 parents 82862d1 + 2118af0 commit 93f1f52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions couchforms/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ class SubmissionPost(object):

failed_auth_response = HttpResponseForbidden('Bad auth')

def __init__(self, instance=None, attachments=None,
auth_context=None, domain=None, app_id=None, path=None,
def __init__(self, instance=None, attachments=None, auth_context=None,
domain=None, app_id=None, build_id=None, path=None,
location=None, submit_ip=None, openrosa_headers=None,
last_sync_token=None, received_on=None, date_header=None):
assert domain, domain
Expand All @@ -344,6 +344,7 @@ def __init__(self, instance=None, attachments=None,
# get_location has good default
self.domain = domain
self.app_id = app_id
self.build_id = build_id
self.location = location or couchforms.get_location()
self.received_on = received_on
self.date_header = date_header
Expand Down Expand Up @@ -374,6 +375,7 @@ def _attach_shared_props(self, doc):

doc['domain'] = self.domain
doc['app_id'] = self.app_id
doc['build_id'] = self.build_id
doc['#export_tag'] = ["domain", "xmlns"]

return doc
Expand Down

0 comments on commit 93f1f52

Please sign in to comment.