Permalink
Browse files

Update response structure.

Change the comment to reflect the structure of paper- and
mobile-generated responses. Sync to the latest formbot change, which
adheres to that structure.
  • Loading branch information...
1 parent 9f682d1 commit fc630ef97d62226089cd2e34128dc28fb13fc275 @prashtx prashtx committed Apr 26, 2012
Showing with 17 additions and 4 deletions.
  1. +1 −1 formbot
  2. +16 −3 responses.js
Submodule formbot updated 2 files
+20 −16 formbot/barcode.py
+111 −112 process_form.py
View
@@ -5,10 +5,23 @@
*
* Collects responses from web, mobile, and paper forms.
*
- * Data structure:
+ * Data structure for paper-originating response:
* responses: [
- * { parcel_id: '10', responses: {'Q0': 0, 'Q1': 3}},
- * { parcel_id: '11', responses: {'Q0': 1, 'Q1': 2}}
+ * { parcel_id: "3728049",
+ * responses: {"type":3,"business":1},
+ * id: "cf1fa4c0-8e9e-11e1-8159-e53f8dbd1a6a",
+ * survey: "e458a930-8e27-11e1-b08f-37bd5a7df741",
+ * source : {type : "paper", scan: "", form: ""}
+ * }
+ * ]
+ * Data structure for mobile-originating response:
+ * responses: [
+ * { parcel_id: "3728049",
+ * responses: {"type":3,"business":1},
+ * id: "cf1fa4c0-8e9e-11e1-8159-e53f8dbd1a6a",
+ * survey: "e458a930-8e27-11e1-b08f-37bd5a7df741",
+ * source : {type : "mobile"}
+ * }
* ]
*
*/

0 comments on commit fc630ef

Please sign in to comment.