This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.add_state(new FreeText( | |
| "reg_school_classrooms", | |
| "reg_school_teachers", | |
| "How many classrooms do you have in your school?" | |
| )); | |
| self.add_creator('reg_school_teachers', function(state_name, im) { | |
| var input = parseInt(im.get_user_answer('reg_school_classrooms')); | |
| if (!isNaN(input)) { | |
| return new FreeText( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.check_valid_emis = function(emis){ | |
| // returns false if fails to find | |
| var numbers_only = new RegExp('^\\d+$'); | |
| if (numbers_only.test(emis)){ | |
| return im.config.array_emis.indexOf(parseInt(emis)) == -1; | |
| } else { | |
| return false; | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.cms_performance_learner = function(im) { | |
| var p = self.get_contact(im); | |
| p.add_callback(function(result) { | |
| var emis = result.contact["extras-rts_emis"]; | |
| var id = result.contact["extras-rts_id"]; | |
| var data = self.performance_data_learner_collect(emis, id); | |
| var boys_data = data[0]; | |
| var girls_data = data[1]; | |
| // Need to ensure no double save | |
| var contact_key = result.contact.key; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [2013-08-18T07:36:45.327103, INFO] Content: 1 | |
| [2013-08-18T07:36:45.327557, INFO] Switched to state: reg_zonal_head | |
| [2013-08-18T07:36:46.103355, ERROR] | |
| [2013-08-18T07:36:46.107001, ERROR] undefined:296 | |
| [2013-08-18T07:36:46.109676, ERROR] contact['name'] = im.get_user_answer('reg_first_name') | |
| [2013-08-18T07:36:46.111198, ERROR] ^ | |
| [2013-08-18T07:36:46.117648, ERROR] TypeError: Cannot set property 'name' of undefined | |
| [2013-08-18T07:36:46.119508, ERROR] at undefined:296:41 | |
| [2013-08-18T07:36:46.121035, ERROR] at Promise.self.run_remaining_callbacks (/usr/lib/node_modules/vumigo_v01/lib/promise.js:58:22) | |
| [2013-08-18T07:36:46.122507, ERROR] at Promise.self.callback (/usr/lib/node_modules/vumigo_v01/lib/promise.js:48:18) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/js_sandbox/lib/go-rts-zambia.js b/js_sandbox/lib/go-rts-zambia.js | |
| index 4ea910b..0353e43 100644 | |
| --- a/js_sandbox/lib/go-rts-zambia.js | |
| +++ b/js_sandbox/lib/go-rts-zambia.js | |
| @@ -264,11 +264,13 @@ function GoRtsZambia() { | |
| }; | |
| self.clear_contact_extra = function(extra){ | |
| + var fields = {}; | |
| + fields[extra] = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mikej at Michaels-MacBook-Air in ~/Documents/code/scaleconf.github.com git:(feature/2014-landing-page) ✗ | |
| ± jekyll serve | |
| Configuration file: /Users/mikej/Documents/code/scaleconf.github.com/_config.yml | |
| Source: /Users/mikej/Documents/code/scaleconf.github.com | |
| Destination: /Users/mikej/Documents/code/scaleconf.github.com/_site | |
| Generating... Error reading file /Users/mikej/Documents/code/scaleconf.github.com/_layouts/speaker-info.html: invalid byte sequence in US-ASCII | |
| Error reading file /Users/mikej/Documents/code/scaleconf.github.com/_layouts/sponsor-info.html: invalid byte sequence in US-ASCII | |
| Error reading file /Users/mikej/Documents/code/scaleconf.github.com/2012/location.html: invalid byte sequence in US-ASCII | |
| Error reading file /Users/mikej/Documents/code/scaleconf.github.com/sponsors/amazon.html: invalid byte sequence in US-ASCII | |
| Error reading file /Users/mikej/Documents/code/scaleconf.github.com/sponsors/basho.html: invalid byte sequence in US-ASCII |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_account(email, password): | |
| """ trys to find the newest cart a user created """ | |
| query = g.rc.add(core.config['RIAK_BUCKET_PREFIX'] + 'users') | |
| # This gets just keys | |
| query.map(""" | |
| function(v, meta, arg) { | |
| var data = JSON.parse(v.values[0].data); | |
| if(data[username] == arg[username] && data[password] == arg[password]){ | |
| return [v.key]; | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pg_dump -U grs -W -h localhost > backup20131011.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Mikej at Michaels-MacBook-Air in ~/Documents/code/go-rts-zambia git:(feature/issue-68-remove-djcelery) ✗ | |
| (ve) ± fab -H "[email protected]" deploy | |
| [[email protected]] Executing task 'deploy' | |
| [[email protected]] sudo: git pull | |
| [[email protected]] out: /bin/bash: /home/mjones/.bash_profile: Permission denied | |
| [[email protected]] out: Already up-to-date. | |
| [[email protected]] out: | |
| [[email protected]] sudo: ve/bin/python manage.py syncdb --migrate --noinput | |
| [[email protected]] out: /bin/bash: /home/mjones/.bash_profile: Permission denied |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ve)mjones@prd-rts:/var/praekelt/go-rts-qa$ ./manage.py migrate --settings=rts.settings --list | |
| djcelery | |
| (*) 0001_initial | |
| (*) 0002_v25_changes | |
| (*) 0003_v26_changes | |
| (*) 0004_v30_changes | |
| hierarchy | |
| (*) 0001_initial |