Patrick Donelan
821635eb71
Refactored ResponseJSON and SurveyJSON
...
Added Params::Validate to ResponseJSON.pm
Refactored ResponseJSON constructor and re-ordered params for
consistency
Added new ->session accessor
Updates tests
Removed unnecessary logging methods
Further refactored SurveyJSON, gave private variables underscores,
replaced direct hash access with accessors
2009-02-03 08:31:43 +00:00
Patrick Donelan
8833459c74
Added param validation to all SurveyJSON.pm methods.
2009-02-03 08:31:24 +00:00
Patrick Donelan
d00c8661f3
Made first argument to SurveyJSON contructor $session for consistency
...
with rest of wg.
Also added Params::Validate validation.
2009-02-03 08:31:07 +00:00
Patrick Donelan
a1033aeaa2
Replaced all decode/encode_json method calls with to/from_json method
...
calls now that we've licked the Survey encoding bug (wrong mysql db
field type)
2009-01-27 05:47:36 +00:00
Yung Han Khoe
a612b56e92
adding grade book view to Survey
2009-01-26 14:57:01 +00:00
Patrick Donelan
c4eb4e3b57
Refactored updateQuestionAnswers and addAnswersToQuestion in SurveyJSON
2009-01-26 02:20:28 +00:00
Patrick Donelan
a2d01c34da
Fixed a bug where newly created questions would not pre-populate answers
...
(caused by my refactoring)
2009-01-26 02:20:11 +00:00
Patrick Donelan
8d5e6880c0
More SurveyJSON refactoring (mostly documentation)
2009-01-21 05:34:58 +00:00
Patrick Donelan
102ec0dd25
More SurveyJSON refactoring..
2009-01-21 05:34:41 +00:00
Patrick Donelan
ef7c0cfaa1
More SurveJSON refactoring (mostly documentation and simple code
...
changes)
2009-01-21 05:34:23 +00:00
Patrick Donelan
fe32551bca
Added totalSections/Questions/Answers helper subs, refactored
...
getDragDropList to use helper subs, and added extra $address param
documentation.
2009-01-21 03:34:22 +00:00
Patrick Donelan
6d10570fdb
Refactored SurveyJSON's new, freeze and addObject for readability
2009-01-20 07:34:55 +00:00
Patrick Donelan
c4540a96ee
Replaces to_json and from_json with encode_json/decode_json to properly
...
handle non-ascii user input (e.g. MS Word apostrophe)
2009-01-19 03:33:07 +00:00
Yung Han Khoe
46cca4fae1
rfe 9200: Survey Text/TextArea handling
2009-01-15 14:17:40 +00:00
Patrick Donelan
b7520da07d
Merge commit 'tags/WebGUI_7.6.8-beta' into survey-rfe
...
* commit 'tags/WebGUI_7.6.8-beta': (96 commits)
Release 7.6.8-beta
preparing for 7.6.8 release
convert to new storage format
fixing photo comment test
fixed: Syndicated Content corrupts wide characters
Add the WikiPage to the list of contributions shown in the Account Contributions tab.
added #!/usr/bin/env perl to all utility scripts
Forward port i18n fix for Gallery Album RSS list.
Fix some Survey i18n typos in the time limit hoverhelp.
Large batch of Help and i18n. Also, make sure that the
Fix a typo in the i18n help for the ITransact Pay Driver.
Correct dataform captcha variable name in the help.
Forward porting expanded patch for handling deleted things.
Have Thingy check for existance of table and column to prevent
Fix linking to other things and autocreating the form field for it.
Update test to match fixed code.
Remove the warnings pragma
Only resize photos if they are larger than the Gallery resolutions.
Fix a syntax error made in the i18n of the search button.
I18n'ed a submit button in the manage transactions screen.
...
Conflicts:
lib/WebGUI/Asset/Wobject/Survey.pm
lib/WebGUI/Asset/Wobject/Survey/SurveyJSON.pm
www/extras/wobject/Survey/editsurvey.js
www/extras/wobject/Survey/editsurvey/object.js
2009-01-14 06:00:06 +00:00
Patrick Donelan
fc3851705a
Implemented Survey branching expressions ( #9233 ). Woot!
2008-12-15 10:25:44 +00:00
Patrick Donelan
ad0f3b388d
SurveyJSON->update() should iterate over supplied object keys, not
...
existing object keys. Also applied PBP formatting, fat commas, etc..
2008-12-15 10:25:22 +00:00
Patrick Donelan
fa04344b7d
SurveyJSON->update() should iterate over supplied object keys, not
...
existing object keys. Also applied PBP formatting, fat commas, etc..
2008-12-15 05:52:07 +00:00
Colin Kuskie
931b502666
Update SurveyJSON POD for the new method.
...
Add legal and header POD for ResponseJSON.
2008-12-06 00:23:17 +00:00
Colin Kuskie
8ea45fe456
Switch to using dclone from Clone::clone due to bugs under
...
perl 5.10
2008-12-05 04:21:43 +00:00
Colin Kuskie
a50c27de67
add POD, fix a few typos.
...
Add tests for updateQuestionAnswers
2008-12-04 23:35:40 +00:00
Colin Kuskie
75f6497924
Tests for getEditVars, getEditSectionVars and addAnswersToQuestion.
...
Add POD.
Fix a bug with setting verbatims in addAnswersToQuestion
2008-12-04 22:01:17 +00:00
Colin Kuskie
24fe2e6dc0
Add tests for getQuestionEditVars.
...
Refactor out the list of valid question types to make testing easier.
2008-12-04 20:47:42 +00:00
Colin Kuskie
0453f47bc1
Tests for getDragDrop and getAnswerEditVars.
...
More POD.
2008-12-04 20:18:49 +00:00
Colin Kuskie
d370772762
Make copy use safe references.
...
Add tests for remove, and copy.
2008-12-03 04:41:38 +00:00
Graham Knop
706b24bcb6
fix some POD errors
2008-12-03 00:33:07 +00:00
Kaleb Murphy
5127a307b7
Minor fix. JSON no longer assumes proper utf8, but uses whatever off-brand locale a luser wants to use.
2008-12-02 16:03:23 +00:00
Colin Kuskie
23f8e48f6d
Update POD for several methods.
...
Make getObject clone data for safety and update tests.
Make newObject always alter $address for consistency and update tests.
2008-12-01 17:39:34 +00:00
Colin Kuskie
377126da8c
Add more POD to SurveyJSON.
...
Add some basic tests for getObject, update and remove.
2008-11-30 04:30:40 +00:00
Colin Kuskie
020c882fb6
Test abusing references in getObject.
...
More insertObject testing.
More POD.
2008-11-29 17:29:00 +00:00
Colin Kuskie
fe33c87f13
Add tests for insertObject, and a helper method for summarizing the SurveyJSON data structure.
...
Add POD for insertObject. Note that splicing beyond the end of the array will generate
a warning.
2008-11-29 05:32:14 +00:00
Colin Kuskie
59cd001bd8
Add POD and Plain Black legal notice.
2008-11-28 05:01:30 +00:00
Kaleb Murphy
1d5859631c
Used WG perltidyrc to clean up files
2008-11-14 14:49:48 +00:00
Kaleb Murphy
02d76504a6
Removed some debug statements and perltidied the code
2008-11-13 18:59:01 +00:00
Graham Knop
48b4ba1fc8
adding survey back in
2008-11-12 03:24:49 +00:00
Graham Knop
151e705286
Backing out Survey for now
2008-11-12 02:40:27 +00:00
Kaleb Murphy
1dd08e25c9
The new survey is here. Make sure to wg-reset your test instances to get the new DB schema.
2008-11-06 20:48:18 +00:00
Kaleb Murphy
d8bc8f1520
preparing for merge
2008-11-06 20:18:23 +00:00
Kaleb Murphy
76b1f55225
prepping for merge
2008-11-06 19:44:28 +00:00
Kaleb Murphy
4c82eb9b61
Add new report table (and sql file), and the survey now does reporting.
2008-10-24 21:38:03 +00:00
Patrick Donelan
c049c91976
Hack to allow 20 questions per page until we support an arbitrary limit
2008-10-24 03:49:08 +00:00
Kaleb Murphy
5afae6de85
You can now copy sections and questions. And if I correctly understand how to bundle asset packages, all the new template changes are included.
2008-10-20 16:17:25 +00:00
Kaleb Murphy
c2fc74ae85
Need to finish the template packages, reports, fix up a small branching issue, copying, and an upgrade path.
2008-10-14 03:07:53 +00:00
Kaleb Murphy
2de1d83d65
Editor is done except for prettifying it, but you can now build a survey with the new data layer
2008-09-30 19:25:38 +00:00
Kaleb Murphy
9c5082f450
minor changes to drag and drop
2008-09-30 16:26:33 +00:00
Kaleb Murphy
c812705537
Editor is 98% finished. (still wrapping up final bits on drag and drop)
2008-09-29 17:55:21 +00:00
Kaleb Murphy
ac14d55b18
minor changes
2008-09-26 14:18:36 +00:00
Kaleb Murphy
5174824b5f
Finishing up editor
2008-09-26 02:06:21 +00:00
Kaleb Murphy
38c7ee33c4
Moving edit screens to be template based for i18n (almost done with editor.
2008-09-25 02:09:22 +00:00
Kaleb Murphy
e81accaa15
Really dont use this copy
2008-09-24 15:29:51 +00:00