Step 1 of 2
++
++
+ + +
From ff6feb27253811571e4009e8f7048c3374bdf4a7 Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Fri, 5 Oct 2012 17:53:41 -0500 Subject: Worked on rewriting search page parsing code. Downloaded jquery validation code to use with the block index feature on the trait data page (as well as others in the future). --- wqflask/wqflask/parser.py | 16 + wqflask/wqflask/search_results.py | 3 +- .../static/new/packages/ValidationPlugin/README.md | 39 + .../new/packages/ValidationPlugin/changelog.txt | 337 + .../demo/ajaxSubmit-intergration-demo.html | 80 + .../ValidationPlugin/demo/captcha/captcha.js | 27 + .../demo/captcha/fonts/Anorexia.ttf | Bin 0 -> 14300 bytes .../ValidationPlugin/demo/captcha/image_req.php | 6 + .../demo/captcha/images/button.png | Bin 0 -> 1546 bytes .../ValidationPlugin/demo/captcha/images/image.php | 35 + .../ValidationPlugin/demo/captcha/index.php | 66 + .../ValidationPlugin/demo/captcha/newsession.php | 12 + .../ValidationPlugin/demo/captcha/process.php | 14 + .../ValidationPlugin/demo/captcha/rand.php | 11 + .../ValidationPlugin/demo/captcha/style.css | 140 + .../packages/ValidationPlugin/demo/css/chili.css | 15 + .../packages/ValidationPlugin/demo/css/cmxform.css | 46 + .../ValidationPlugin/demo/css/cmxformTemplate.css | 55 + .../packages/ValidationPlugin/demo/css/core.css | 21 + .../packages/ValidationPlugin/demo/css/reset.css | 61 + .../packages/ValidationPlugin/demo/css/screen.css | 11 + .../demo/custom-messages-metadata-demo.html | 92 + .../ValidationPlugin/demo/custom-methods-demo.html | 116 + .../ValidationPlugin/demo/dynamic-totals.html | 145 + .../ValidationPlugin/demo/errorcontainer-demo.html | 155 + .../packages/ValidationPlugin/demo/file_input.html | 53 + .../new/packages/ValidationPlugin/demo/form.php | 10 + .../new/packages/ValidationPlugin/demo/form.phps | 10 + .../packages/ValidationPlugin/demo/images/bg.gif | Bin 0 -> 1175 bytes .../ValidationPlugin/demo/images/checked.gif | Bin 0 -> 220 bytes .../demo/images/cmxform-divider.gif | Bin 0 -> 43 bytes .../demo/images/cmxform-fieldset.gif | Bin 0 -> 314 bytes .../ValidationPlugin/demo/images/loading.gif | Bin 0 -> 418 bytes .../ValidationPlugin/demo/images/unchecked.gif | Bin 0 -> 223 bytes .../new/packages/ValidationPlugin/demo/index.html | 228 + .../ValidationPlugin/demo/jquerymobile.html | 71 + .../ValidationPlugin/demo/js/chili-1.7.pack.js | 1 + .../ValidationPlugin/demo/login/images/bg.gif | Bin 0 -> 89 bytes .../ValidationPlugin/demo/login/images/header1.jpg | Bin 0 -> 442 bytes .../ValidationPlugin/demo/login/images/page.gif | Bin 0 -> 664 bytes .../demo/login/images/required_star.gif | Bin 0 -> 121 bytes .../ValidationPlugin/demo/login/index.html | 76 + .../ValidationPlugin/demo/login/screen.css | 457 + .../ValidationPlugin/demo/marketo/emails.php | 10 + .../ValidationPlugin/demo/marketo/emails.phps | 10 + .../packages/ValidationPlugin/demo/marketo/ie6.css | 35 + .../demo/marketo/images/backRequiredGray.gif | Bin 0 -> 137 bytes .../demo/marketo/images/back_green-fade.gif | Bin 0 -> 2421 bytes .../demo/marketo/images/back_nav_blue.gif | Bin 0 -> 1668 bytes .../ValidationPlugin/demo/marketo/images/blank.gif | Bin 0 -> 799 bytes .../demo/marketo/images/button-submit.gif | Bin 0 -> 4527 bytes .../demo/marketo/images/favicon.ico | Bin 0 -> 1150 bytes .../ValidationPlugin/demo/marketo/images/help.png | Bin 0 -> 1615 bytes .../demo/marketo/images/left-nav-callout-long.png | Bin 0 -> 1381 bytes .../demo/marketo/images/login-sprite.gif | Bin 0 -> 2017 bytes .../demo/marketo/images/logo_marketo.gif | Bin 0 -> 8363 bytes .../ValidationPlugin/demo/marketo/images/sf.png | Bin 0 -> 3745 bytes .../demo/marketo/images/step1-24.gif | Bin 0 -> 1357 bytes .../demo/marketo/images/step2-24.gif | Bin 0 -> 1355 bytes .../demo/marketo/images/step3-24.gif | Bin 0 -> 1362 bytes .../demo/marketo/images/tab-sprite.gif | Bin 0 -> 4710 bytes .../demo/marketo/images/tab_green.gif | Bin 0 -> 1652 bytes .../ValidationPlugin/demo/marketo/images/time.png | Bin 0 -> 793 bytes .../demo/marketo/images/toggle.gif | Bin 0 -> 845 bytes .../demo/marketo/images/warning.gif | Bin 0 -> 234 bytes .../ValidationPlugin/demo/marketo/index.html | 242 + .../demo/marketo/jquery.maskedinput.js | 267 + .../ValidationPlugin/demo/marketo/mktSignup.js | 125 + .../ValidationPlugin/demo/marketo/step2.htm | 291 + .../ValidationPlugin/demo/marketo/stylesheet.css | 1179 +++ .../new/packages/ValidationPlugin/demo/milk/bg.gif | Bin 0 -> 73 bytes .../packages/ValidationPlugin/demo/milk/emails.php | 10 + .../ValidationPlugin/demo/milk/emails.phps | 10 + .../packages/ValidationPlugin/demo/milk/index.html | 230 + .../ValidationPlugin/demo/milk/left_white.png | Bin 0 -> 538 bytes .../packages/ValidationPlugin/demo/milk/milk.css | 236 + .../packages/ValidationPlugin/demo/milk/milk.png | Bin 0 -> 5121 bytes .../ValidationPlugin/demo/milk/right_white.png | Bin 0 -> 1579 bytes .../packages/ValidationPlugin/demo/milk/users.php | 12 + .../packages/ValidationPlugin/demo/milk/users.phps | 10 + .../ValidationPlugin/demo/multipart/index.html | 412 + .../demo/multipart/js/jquery.maskedinput-1.0.js | 246 + .../demo/multipart/js/ui.accordion.js | 477 + .../ValidationPlugin/demo/multipart/js/ui.core.js | 519 ++ .../ValidationPlugin/demo/multipart/style.css | 705 ++ .../demo/radio-checkbox-select-demo.html | 149 + .../packages/ValidationPlugin/demo/tabs/index.html | 152 + .../ValidationPlugin/demo/themerollered.html | 229 + .../ValidationPlugin/demo/tinymce/index.html | 76 + .../demo/tinymce/themes/simple/editor_template.js | 1 + .../demo/tinymce/themes/simple/img/icons.gif | Bin 0 -> 1440 bytes .../demo/tinymce/themes/simple/langs/en.js | 11 + .../tinymce/themes/simple/skins/default/ui.css | 32 + .../ValidationPlugin/demo/tinymce/tiny_mce.js | 1 + .../ValidationPlugin/dist/additional-methods.js | 437 + .../dist/additional-methods.min.js | 4 + .../ValidationPlugin/dist/jquery.validate.js | 1248 +++ .../ValidationPlugin/dist/jquery.validate.min.js | 4 + .../static/new/packages/ValidationPlugin/grunt.js | 100 + .../ValidationPlugin/jquery-validation-1.10.0.zip | Bin 0 -> 805601 bytes .../packages/ValidationPlugin/lib/jquery-1.3.2.js | 4376 +++++++++ .../packages/ValidationPlugin/lib/jquery-1.4.2.js | 6240 +++++++++++++ .../packages/ValidationPlugin/lib/jquery-1.4.4.js | 7179 +++++++++++++++ .../packages/ValidationPlugin/lib/jquery-1.5.2.js | 8374 +++++++++++++++++ .../packages/ValidationPlugin/lib/jquery-1.6.1.js | 8936 +++++++++++++++++++ .../packages/ValidationPlugin/lib/jquery-1.7.2.js | 9404 ++++++++++++++++++++ .../packages/ValidationPlugin/lib/jquery.form.js | 919 ++ .../new/packages/ValidationPlugin/lib/jquery.js | 4376 +++++++++ .../ValidationPlugin/lib/jquery.metadata.js | 122 + .../ValidationPlugin/lib/jquery.mockjax.js | 382 + .../ValidationPlugin/localization/messages_ar.js | 24 + .../ValidationPlugin/localization/messages_bg.js | 23 + .../ValidationPlugin/localization/messages_ca.js | 23 + .../ValidationPlugin/localization/messages_cs.js | 23 + .../ValidationPlugin/localization/messages_da.js | 20 + .../ValidationPlugin/localization/messages_de.js | 20 + .../ValidationPlugin/localization/messages_el.js | 24 + .../ValidationPlugin/localization/messages_es.js | 23 + .../ValidationPlugin/localization/messages_et.js | 21 + .../ValidationPlugin/localization/messages_eu.js | 23 + .../ValidationPlugin/localization/messages_fa.js | 23 + .../ValidationPlugin/localization/messages_fi.js | 21 + .../ValidationPlugin/localization/messages_fr.js | 44 + .../ValidationPlugin/localization/messages_he.js | 23 + .../ValidationPlugin/localization/messages_hr.js | 23 + .../ValidationPlugin/localization/messages_hu.js | 20 + .../ValidationPlugin/localization/messages_it.js | 23 + .../ValidationPlugin/localization/messages_ja.js | 23 + .../ValidationPlugin/localization/messages_ka.js | 23 + .../ValidationPlugin/localization/messages_kk.js | 23 + .../ValidationPlugin/localization/messages_lt.js | 23 + .../ValidationPlugin/localization/messages_lv.js | 23 + .../ValidationPlugin/localization/messages_nl.js | 23 + .../ValidationPlugin/localization/messages_no.js | 23 + .../ValidationPlugin/localization/messages_pl.js | 23 + .../localization/messages_pt_BR.js | 24 + .../localization/messages_pt_PT.js | 24 + .../ValidationPlugin/localization/messages_ro.js | 23 + .../ValidationPlugin/localization/messages_ru.js | 23 + .../ValidationPlugin/localization/messages_si.js | 23 + .../ValidationPlugin/localization/messages_sk.js | 20 + .../ValidationPlugin/localization/messages_sl.js | 23 + .../ValidationPlugin/localization/messages_sr.js | 23 + .../ValidationPlugin/localization/messages_sv.js | 21 + .../ValidationPlugin/localization/messages_th.js | 23 + .../ValidationPlugin/localization/messages_tr.js | 23 + .../ValidationPlugin/localization/messages_uk.js | 23 + .../ValidationPlugin/localization/messages_vi.js | 23 + .../ValidationPlugin/localization/messages_zh.js | 23 + .../localization/messages_zh_TW.js | 24 + .../ValidationPlugin/localization/methods_de.js | 12 + .../ValidationPlugin/localization/methods_nl.js | 9 + .../ValidationPlugin/localization/methods_pt.js | 9 + .../new/packages/ValidationPlugin/package.json | 35 + .../new/packages/ValidationPlugin/test/events.html | 71 + .../ValidationPlugin/test/firebug/errorIcon.png | Bin 0 -> 457 bytes .../ValidationPlugin/test/firebug/firebug.css | 209 + .../ValidationPlugin/test/firebug/firebug.html | 23 + .../ValidationPlugin/test/firebug/firebug.js | 672 ++ .../ValidationPlugin/test/firebug/firebugx.js | 10 + .../ValidationPlugin/test/firebug/infoIcon.png | Bin 0 -> 524 bytes .../ValidationPlugin/test/firebug/warningIcon.png | Bin 0 -> 516 bytes .../new/packages/ValidationPlugin/test/index.html | 300 + .../new/packages/ValidationPlugin/test/jquery.js | 25 + .../new/packages/ValidationPlugin/test/large.html | 188 + .../new/packages/ValidationPlugin/test/messages.js | 62 + .../new/packages/ValidationPlugin/test/methods.js | 757 ++ .../packages/ValidationPlugin/test/qunit/qunit.css | 235 + .../packages/ValidationPlugin/test/qunit/qunit.js | 1669 ++++ .../new/packages/ValidationPlugin/test/rules.js | 273 + .../ValidationPlugin/test/selects/index.html | 436 + .../new/packages/ValidationPlugin/test/tabs.html | 78 + .../new/packages/ValidationPlugin/test/test.js | 1266 +++ 173 files changed, 67452 insertions(+), 2 deletions(-) create mode 100644 wqflask/wqflask/parser.py create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/README.md create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/changelog.txt create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/ajaxSubmit-intergration-demo.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/captcha.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/fonts/Anorexia.ttf create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/image_req.php create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/images/button.png create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/images/image.php create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/index.php create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/newsession.php create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/process.php create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/rand.php create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/style.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/chili.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/cmxform.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/cmxformTemplate.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/core.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/reset.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/screen.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/custom-messages-metadata-demo.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/custom-methods-demo.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/dynamic-totals.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/errorcontainer-demo.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/file_input.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/form.php create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/form.phps create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/images/bg.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/images/checked.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/images/cmxform-divider.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/images/cmxform-fieldset.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/images/loading.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/images/unchecked.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/index.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/jquerymobile.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/js/chili-1.7.pack.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/login/images/bg.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/login/images/header1.jpg create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/login/images/page.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/login/images/required_star.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/login/index.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/login/screen.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/emails.php create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/emails.phps create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/ie6.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/backRequiredGray.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/back_green-fade.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/back_nav_blue.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/blank.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/button-submit.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/favicon.ico create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/help.png create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/left-nav-callout-long.png create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/login-sprite.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/logo_marketo.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/sf.png create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/step1-24.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/step2-24.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/step3-24.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/tab-sprite.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/tab_green.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/time.png create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/toggle.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/images/warning.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/index.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/jquery.maskedinput.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/mktSignup.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/step2.htm create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/marketo/stylesheet.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/milk/bg.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/milk/emails.php create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/milk/emails.phps create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/milk/index.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/milk/left_white.png create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/milk/milk.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/milk/milk.png create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/milk/right_white.png create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/milk/users.php create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/milk/users.phps create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/multipart/index.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/multipart/js/jquery.maskedinput-1.0.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/multipart/js/ui.accordion.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/multipart/js/ui.core.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/multipart/style.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/radio-checkbox-select-demo.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/tabs/index.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/themerollered.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/tinymce/index.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/tinymce/themes/simple/editor_template.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/tinymce/themes/simple/img/icons.gif create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/tinymce/themes/simple/langs/en.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/tinymce/themes/simple/skins/default/ui.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/demo/tinymce/tiny_mce.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/dist/additional-methods.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/dist/additional-methods.min.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/dist/jquery.validate.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/dist/jquery.validate.min.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/grunt.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/jquery-validation-1.10.0.zip create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/lib/jquery-1.3.2.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/lib/jquery-1.4.2.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/lib/jquery-1.4.4.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/lib/jquery-1.5.2.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/lib/jquery-1.6.1.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/lib/jquery-1.7.2.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/lib/jquery.form.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/lib/jquery.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/lib/jquery.metadata.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/lib/jquery.mockjax.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_ar.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_bg.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_ca.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_cs.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_da.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_de.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_el.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_es.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_et.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_eu.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_fa.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_fi.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_fr.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_he.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_hr.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_hu.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_it.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_ja.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_ka.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_kk.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_lt.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_lv.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_nl.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_no.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_pl.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_pt_BR.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_pt_PT.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_ro.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_ru.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_si.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_sk.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_sl.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_sr.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_sv.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_th.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_tr.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_uk.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_vi.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_zh.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/messages_zh_TW.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/methods_de.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/methods_nl.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/localization/methods_pt.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/package.json create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/events.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/firebug/errorIcon.png create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/firebug/firebug.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/firebug/firebug.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/firebug/firebug.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/firebug/firebugx.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/firebug/infoIcon.png create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/firebug/warningIcon.png create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/index.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/jquery.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/large.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/messages.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/methods.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/qunit/qunit.css create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/qunit/qunit.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/rules.js create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/selects/index.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/tabs.html create mode 100644 wqflask/wqflask/static/new/packages/ValidationPlugin/test/test.js diff --git a/wqflask/wqflask/parser.py b/wqflask/wqflask/parser.py new file mode 100644 index 00000000..b58b6c0b --- /dev/null +++ b/wqflask/wqflask/parser.py @@ -0,0 +1,16 @@ +from __future__ import print_function, division + +import re + + +def parse(pstring): + pstring = re.split(r"""(?:(\w+\s*=\s*\([^)]*\))|(\w+\s*[=:]\w+))""", pstring) + pstring = [item.strip() for item in pstring if item and item.strip()] + print(pstring) + for item in pstring: + + +parse("foo=(3 2 1)") +parse("LRS=(9 99 Chr4 122 155) cisLRS=(9 999 10)") +parse("sal1 LRS=(9 99 Chr4 122 155) sal2 cisLRS=(9 999 10)") +parse("sal1 LRS=(9 99 Chr4 122 155) wiki=bar sal2 go:foobar cisLRS=(9 999 10)") \ No newline at end of file diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py index a9972349..3c54be3c 100644 --- a/wqflask/wqflask/search_results.py +++ b/wqflask/wqflask/search_results.py @@ -825,8 +825,7 @@ class SearchResultPage(templatePage): if lower_limit > upper_limit: lower_limit, upper_limit = upper_limit, lower_limit - - + clauseItem = " %s.Chr = '%s' and %s.Mb > %2.7f and %s.Mb < %2.7f " % ( self.dbType, chr_number, self.dbType, lower_limit, self.dbType, upper_limit) diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/README.md b/wqflask/wqflask/static/new/packages/ValidationPlugin/README.md new file mode 100644 index 00000000..28a0bec9 --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/README.md @@ -0,0 +1,39 @@ +[jQuery Validation Plugin](http://bassistance.de/jquery-plugins/jquery-plugin-validation/) - Form validation made easy +================================ + +The jQuery Validation Plugin provides drop-in validation for your existing forms, while making all kinds of customizations to fit your application really easy. + +## [Help the project](http://pledgie.com/campaigns/18159) + +This project is looking for help! [You can donate to the ongoing pledgie campaign](http://pledgie.com/campaigns/18159) +and help spread the word. If you've used the plugin, or plan to use, consider a donation - any amount will help. + +You can find the plan for how to spend the money on the [pledgie page](http://pledgie.com/campaigns/18159). + +## Getting Started + +Include jQuery and the plugin on a page. Then select a form to validate and call the `validate` method. + +```html +
+ + + +``` + +For more information on how to setup a rules and customizations, [check the documentation](http://docs.jquery.com/Plugins/Validation). + +## Contributing +In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt). + +If you've wrote custom methods that you'd like to contribute to additional-methods.js, create a branch, add the method there and send a pull request for that branch. + +If you've wrote a patch for some bug listed on http://plugins.jquery.com/project/issues/validate, please provide a link to that issue in your commit message. + +## License +Copyright (c) 2012 Jörn Zaefferer +Licensed under the MIT license. diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/changelog.txt b/wqflask/wqflask/static/new/packages/ValidationPlugin/changelog.txt new file mode 100644 index 00000000..89171539 --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/changelog.txt @@ -0,0 +1,337 @@ +1.10.0 / 2012-09-07 +=================== + + * Corrected French strings for nowhitespace, phoneUS, phoneUK and mobileUK based upon community feedback. + * rename files for language_REGION according to the standard ISO_3166-1 (http://en.wikipedia.org/wiki/ISO_3166-1), for Taiwan tha language is Chinese (zh) and the region is Taiwan (TW) + * Optimise RegEx patterns, especially for UK phone numbers. + * Add Language Name for each file, rename the language code according to the standard ISO 639 for Estonian, Georgian, Ukrainian and Chinese (http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) + * Added croatian (HR) localization + * Existing French translations were edited and French translations for the additional methods were added. + * Merged in changes for specifying custom error messages in data attributes + * Updated UK Mobile phone number regex for new numbers. Fixes #154 + * Add element to success call with test. Fixes #60 + * Fixed regex for time additional method. Fixes #131 + * resetForm now clears old previousValue on form elements. Fixes #312 + * Added checkbox test to require_from_group and changed require_from_group to use elementValue. Fixes #359 + * Fixed dataFilter response issues in jQuery 1.5.2+. Fixes #405 + * Added jQuery Mobile demo. Fixes #249 + * Deoptimize findByName for correctness. Fixes #82 - $.validator.prototype.findByName breaks in IE7 + * Added US zip code support and test. Fixes #90 + * Changed lastElement to lastActive in keyup, skip validation on tab or empty element. Fixes #244 + * Removed number stripping from stripHtml. Fixes #2 + * Fixed invalid count on invalid to valid remote validation. Fixes #286 + * Add link to file_input to demo index + * Moved old accept method to extension additional-method, added new accept method to handle standard browser mimetype filtering. Fixes #287 and supersedes #369 + * Disables blur event when onfocusout is set to false. Test added. + * Fixed value issue for radio buttons and checkboxes. Fixes #363 + * Added test for rangeWords and fixed regex and bounds in method. Fixes #308 + * Fixed TinyMCE Demo and added link on demo page. Fixes #382 + * Changed localization message for min/max. Fixes #273 + * Added pseudo selector for text input types to fix issue with default empty type attribute. Added tests and some test markup. Fixes #217 + * Fixed delegate bug for dynamic-totals demo. Fixes #51 + * Fix incorrect message for alphanumeric validator + * Removed incorrect false check on required attribute + * required attribute fix for non-html5 browsers. Fixes #301 + * Added methods "require_from_group" and "skip_or_fill_minimum" + * Use correct iso code for swedish + * Updated demo HTML files to use HTML5 doctype + * Fixed regex issue for decimals without leading zeroes. Added new methods test. Fixes #41 + * Introduce a elementValue method that normalizes only string values (don't touch array value of multi-select). Fixes #116 + * Support for dynamically added submit buttons, and updated test case. Uses validateDelegate. Code from PR #9 + * Fix bad double quote in test fixtures + * Fix maxWords method to include the upper bound, not exclude it. Fixes #284 + * Fixed grammar error in german range validator message. Fixes #315 + * Fixed handling of multiple class names for errorClass option. Test by Max Lynch. Fixes #280 + * Fix jQuery.format usage, should be $.validator.format. Fixes #329 + * Methods for 'all' UK phone numbers + UK postcodes + * Pattern method: Convert string param to RegExp. Fixes issue #223 + * grammar error in german localization file + * Added Estonian localization for messages + * Improve tooltip handling on themerollered demo + * Add type="text" to input fields without type attribute to please qSA + * Update themerollered demo to use tooltip to show errors as overlay. + * Update themerollered demo to use latest jQuery UI (along with newer jQuery version). Move code around to speed up page load. + * Fixed min error message broken in Japanese. + * Update form plugin to latest version. Enhance the ajaxSubmit demo. + * Drop dateDE and numberDE methods from classRuleSettings, leftover from moving those to localized methods + * Passing submit event to submitHandler callback + * Fixed #219 - Fix valid() on elements with dependency-callback or dependency-expression. + * Improve build to remove dist dir to ensure only the current release gets zipped up + +1.9.0 +--- +* Added Basque (EU) localization +* Added Slovenian (SL) localization +* Fixed issue #127 - Finnish translations has one : instead of ; +* Fixed Russian localization, minor syntax issue +* Added in support for HTML5 input types, fixes #97 +* Improved HTML5 support by setting novalidate attribute on the form, and reading the type attribute. +* Fixed showLabel() removing all classes from error element. Remove only settings.validClass. Fixes #151. +* Added 'pattern' to additional-methods to validate against arbitraty regular expressions. +* Improved email method to not allow the dot at the end (valid by RFC, but unwanted here). Fixes #143 +* Fixed swedish and norwedian translations, min/max messages got switched. Fixes #181 +* Fixed #184 - resetForm: should unset lastElement +* Fixed #71 - improve existing time method and add time12h method for 12h am/pm time format +* Fixed #177 - Fix validation of a single radio or checkbox input +* Fixed #189 - :hidden elements are now ignored by default +* Fixed #194 - Required as attribute fails if jQuery>=1.6 - Use .prop instead of .attr +* Fixed #47, #39, #32 - Allowed credit card numbers to contain spaces as well as dashes (spaces are commonly input by users). + +1.8.1 +--- +* Added Thai (TH) localization, fixes #85 +* Added Vietnamese (VI) localization, thanks Ngoc +* Fixed issue #78. Error/Valid styling applies to all radio buttons of same group for required validation. +* Don't use form.elements as that isn't supported in jQuery 1.6 anymore. Its buggy as hell anyway (IE6-8: form.elements === form). + +1.8.0 +--- +* Improved NL localization (http://plugins.jquery.com/node/14120) +* Added Georgian (GE) localization, thanks Avtandil Kikabidze +* Added Serbian (SR) localization, thanks Aleksandar Milovac +* Added ipv4 and ipv6 to additional methods, thanks Natal Ngétal +* Added Japanese (JA) localization, thanks Bryan Meyerovich +* Added Catalan (CA) localization, thanks Xavier de Pedro +* Fixed missing var statements within for-in loops +* Fix for remote validation, where a formatted message got messed up (https://github.com/jzaefferer/jquery-validation/issues/11) +* Bugfixes for compability with jQuery 1.5.1, while maintaining backwards-compability + +1.7 +--- +* Added Lithuanian (LT) localization +* Added Greek (EL) localization (http://plugins.jquery.com/node/12319) +* Added Latvian (LV) localization (http://plugins.jquery.com/node/12349) +* Added Hebrew (HE) localization (http://plugins.jquery.com/node/12039) +* Fixed Spanish (ES) localization (http://plugins.jquery.com/node/12696) +* Added jQuery UI themerolled demo +* Removed cmxform.js +* Fixed four missing semicolons (http://plugins.jquery.com/node/12639) +* Renamed phone-method in additional-methods.js to phoneUS +* Added phoneUK and mobileUK methods to additional-methods.js (http://plugins.jquery.com/node/12359) +* Deep extend options to avoid modifying multiple forms when using the rules-method on a single element (http://plugins.jquery.com/node/12411) +* Bugfixes for compability with jQuery 1.4.2, while maintaining backwards-compability + +1.6 +--- +* Added Arabic (AR), Portuguese (PTPT), Persian (FA), Finnish (FI) and Bulgarian (BR) localization +* Updated Swedish (SE) localization (some missing html iso characters) +* Fixed $.validator.addMethod to properly handle empty string vs. undefined for the message argument +* Fixed two accidental global variables +* Enhanced min/max/rangeWords (in additional-methods.js) to strip html before counting; good when counting words in a richtext editor +* Added localized methods for DE, NL and PT, removing the dateDE and numberDE methods (use messages_de.js and methods_de.js with date and number methods instead) +* Fixed remote form submit synchronization, kudos to Matas Petrikas +* Improved interactive select validation, now validating also on click (via option or select, inconsistent across browsers); doesn't work in Safari, which doesn't trigger a click event at all on select elements; fixes http://plugins.jquery.com/node/11520 +* Updated to latest form plugin (2.36), fixing http://plugins.jquery.com/node/11487 +* Bind to blur event for equalTo target to revalidate when that target changes, fixes http://plugins.jquery.com/node/11450 +* Simplified select validation, delegating to jQuery's val() method to get the select value; should fix http://plugins.jquery.com/node/11239 +* Fixed default message for digits (http://plugins.jquery.com/node/9853) +* Fixed issue with cached remote message (http://plugins.jquery.com/node/11029 and http://plugins.jquery.com/node/9351) +* Fixed a missing semicolon in additional-methods.js (http://plugins.jquery.com/node/9233) +* Added automatic detection of substitution parameters in messages, removing the need to provide format functions (http://plugins.jquery.com/node/11195) +* Fixed an issue with :filled/:blank somewhat caused by Sizzle (http://plugins.jquery.com/node/11144) +* Added an integer method to additional-methods.js (http://plugins.jquery.com/node/9612) +* Fixed errorsFor method where the for-attribute contains characters that need escaping to be valid inside a selector (http://plugins.jquery.com/node/9611) + +1.5.5 +--- +* Fix for http://plugins.jquery.com/node/8659 +* Fixed trailing comma in messages_cs.js + +1.5.4 +--- +* Fixed remote method bug (http://plugins.jquery.com/node/8658) + +1.5.3 +--- +* Fixed a bug related to the wrapper-option, where all ancestor-elements that matched the wrapper-option where selected (http://plugins.jquery.com/node/7624) +* Updated multipart demo to use latest jQuery UI accordion +* Added dateNL and time methods to additionalMethods.js +* Added Traditional Chinese (Taiwan, tw) and Kazakhstan (KK) localization +* Moved jQuery.format (fomerly String.format) to jQuery.validator.format, jQuery.format is deprecated and will be removed in 1.6 (see http://code.google.com/p/jquery-utils/issues/detail?id=15 for details) +* Cleaned up messages_pl.js and messages_ptbr.js (still defined messages for max/min/rangeValue, which were removed in 1.4) +* Fixed flawed boolean logic in valid-plugin-method for multiple elements; now all elements need to be valid for a boolean-true result (http://plugins.jquery.com/node/8481) +* Enhancement $.validator.addMethod: An undefined third message-argument won't overwrite an existing message (http://plugins.jquery.com/node/8443) +* Enhancement to submitHandler option: When used, click events on submit buttons are captured and the submitting button is inserted into the form before calling submitHandler, and removed afterwards; keeps submit buttons intact (http://plugins.jquery.com/node/7183#comment-3585) +* Added option validClass, default "valid", which adds that class to all valid elements, after validation (http://dev.jquery.com/ticket/2205) +* Added creditcardtypes method to additionalMethods.js, including tests (via http://dev.jquery.com/ticket/3635) +* Improved remote method to allow serverside message as a string, or true for valid, or false for invalid using the clientside defined message (http://dev.jquery.com/ticket/3807) +* Improved accept method to also accept a Drupal-style comma-seperated list of values (http://plugins.jquery.com/node/8580) + +1.5.2 +--- +* Fixed messages in additional-methods.js for maxWords, minWords, and rangeWords to include call to $.format +* Fixed value passed to methods to exclude carriage return (\r), same as jQuery's val() does +* Added slovak (sk) localization +* Added demo for intergration with jQuery UI tabs +* Added selects-grouping example to tabs demo (see second tab, birthdate field) + +1.5.1 +--- +* Updated marketo demo to use invalidHandler option instead of binding invalid-form event +* Added TinyMCE integration example +* Added ukrainian (ua) localization +* Fixed length validation to work with trimmed value (regression from 1.5 where general trimming before validation was removed) +* Various small fixes for compability with both 1.2.6 and 1.3 + +1.5 +--- +* Improved basic demo, validating confirm-password field after password changed +* Fixed basic validation to pass the untrimmed input value as the first parameter to validation methods, changed required accordingly; breaks existing custom method that rely on the trimming +* Added norwegian (no), italian (it), hungarian (hu) and romanian (ro) localization +* Fixed #3195: Two flaws in swedish localization +* Fixed #3503: Extended rules("add") to accept messages propery: use to specify add custom messages to an element via rules("add", { messages: { required: "Required! " } }); +* Fixed #3356: Regression from #2908 when using meta-option +* Fixed #3370: Added ignoreTitle option, set to skip reading messages from the title attribute, helps to avoid issues with Google Toolbar; default is false for compability +* Fixed #3516: Trigger invalid-form event even when remote validation is involved +* Added invalidHandler option as a shortcut to bind("invalid-form", function() {}) +* Fixed Safari issue for loading indicator in ajaxSubmit-integration-demo (append to body first, then hide) +* Added test for creditcard validation and improved default message +* Enhanced remote validation, accepting options to passthrough to $.ajax as paramter (either url string or options, including url property plus everything else that $.ajax supports) + +1.4 +--- +* Fixed #2931, validate elements in document order and ignore type=image inputs +* Fixed usage of $ and jQuery variables, now fully comptible with all variations of noConflict usage +* Implemented #2908, enabling custom messages via metadata ala class="{required:true,messages:{required:'required field'}}", added demo/custom-messages-metadata-demo.html +* Removed deprecated methods minValue (min), maxValue (max), rangeValue (rangevalue), minLength (minlength), maxLength (maxlength), rangeLength (rangelength) +* Fixed #2215 regression: Call unhighlight only for current elements, not everything +* Implemented #2989, enabling image button to cancel validation +* Fixed issue where IE incorrectly validates against maxlength=0 +* Added czech (cs) localization +* Reset validator.submitted on validator.resetForm(), enabling a full reset when necessary +* Fixed #3035, skipping all falsy attributes when reading rules (0, undefined, empty string), removed part of the maxlength workaround (for 0) +* Added dutch (nl) localization (#3201) + +1.3 +--- +* Fixed invalid-form event, now only triggered when form is invalid +* Added spanish (es), russian (ru), portuguese brazilian (ptbr), turkish (tr), and polish (pl) localization +* Added removeAttrs plugin to facilate adding and removing multiple attributes +* Added groups option to display a single message for multiple elements, via groups: { arbitraryGroupName: "fieldName1 fieldName2[, fieldNameN" } +* Enhanced rules() for adding and removing (static) rules: rules("add", "method1[, methodN]"/{method1:param[, method_n:param]}) and rules("remove"[, "method1[, method_n]") +* Enhanced rules-option, accepts space-seperated string-list of methods, eg. {birthdate: "required date"} +* Fixed checkbox group validation with inline rules: As long as the rules are specified on the first element, the group is now properly validated on click +* Fixed #2473, ignoring all rules with an explicit parameter of boolean-false, eg. required:false is the same as not specifying required at all (it was handled as required:true so far) +* Fixed #2424, with a modified patch from #2473: Methods returning a dependency-mismatch don't stop other rules from being evaluated anymore; still, success isn't applied for optional fields +* Fixed url and email validation to not use trimmed values +* Fixed creditcard validation to accept only digits and dashes ("asdf" is not a valid creditcard number) +* Allow both button and input elements for cancel buttons (via class="cancel") +* Fixed #2215: Fixed message display to call unhighlight as part of showing and hiding messages, no more visual side-effects while checking an element and extracted validator.checkForm to validate a form without UI sideeffects +* Rewrote custom selectors (:blank, :filled, :unchecked) with functions for compability with AIR + +1.2.1 +----- + +* Bundled delegeate plugin with validate plugin - its always required anyway +* Improved remote validation to include parts from the ajaxQueue plugin for proper synchronization (no additional plugin necessary) +* Fixed stopRequest to prevent pendingRequest < 0 +* Added jQuery.validator.autoCreateRanges property, defaults to false, enable to convert min/max to range and minlength/maxlength to rangelength; this basically fixes the issue introduced by automatically creating ranges in 1.2 +* Fixed optional-methods to not highlight anything at all if the field is blank, that is, don't trigger success +* Allow false/null for highlight/unhighlight options instead of forcing a do-nothing-callback even when nothing needs to be highlighted +* Fixed validate() call with no elements selected, returning undefined instead of throwing an error +* Improved demo, replacing metadata with classes/attributes for specifying rules +* Fixed error when no custom message is used for remote validation +* Modified email and url validation to require domain label and top label +* Fixed url and email validation to require TLD (actually to require domain label); 1.2 version (TLD is optional) is moved to additionals as url2 and email2 +* Fixed dynamic-totals demo in IE6/7 and improved templating, using textarea to store multiline template and string interpolation +* Added login form example with "Email password" link that makes the password field optional +* Enhanced dynamic-totals demo with an example of a single message for two fields + +1.2 +--- + +* Added AJAX-captcha validation example (based on http://psyrens.com/captcha/) +* Added remember-the-milk-demo (thanks RTM team for the permission!) +* Added marketo-demo (thanks Glen Lipka!) +* Added support for ajax-validation, see method "remote"; serverside returns JSON, true for valid elements, false or a String for invalid, String is used as message +* Added highlight and unhighlight options, by default toggles errorClass on element, allows custom highlighting +* Added valid() plugin method for easy programmatic checking of forms and fields without the need to use the validator API +* Added rules() plguin method to read and write rules for an element (currently read only) +* Replaced regex for email method, thanks to the contribution by Scott Gonzalez, see http://projects.scottsplayground.com/email_address_validation/ +* Restructured event architecture to rely solely on delegation, both improving performance, and ease-of-use for the developer (requires jquery.delegate.js) +* Moved documentation from inline to http://docs.jquery.com/Plugins/Validation - including interactive examples for all methods +* Removed validator.refresh(), validation is now completey dynamic +* Renamed minValue to min, maxValue to max and rangeValue to range, deprecating the previous names (to be removed in 1.3) +* Renamed minLength to minlength, maxLength to maxlength and rangeLength to rangelength, deprecating the previous names (to be removed in 1.3) +* Added feature to merge min + max into and range and minlength + maxlength into rangelength +* Added support for dynamic rule parameters, allowing to specify a function as a parameter eg. for minlength, called when validating the element +* Allow to specify null or an empty string as a message to display nothing (see marketo demo) +* Rules overhaul: Now supports combination of rules-option, metadata, classes (new) and attributes (new), see rules() for details + +1.1.2 +--- + +* Replaced regex for URL method, thanks to the contribution by Scott Gonzalez, see http://projects.scottsplayground.com/iri/ +* Improved email method to better handle unicode characters +* Fixed error container to hide when all elements are valid, not only on form submit +* Fixed String.format to jQuery.format (moving into jQuery namespace) +* Fixed accept method to accept both upper and lowercase extensions +* Fixed validate() plugin method to create only one validator instance for a given form and always return that one instance (avoids binding events multiple times) +* Changed debug-mode console log from "error" to "warn" level + +1.1.1 +----- + +* Fixed invalid XHTML, preventing error label creation in IE since jQuery 1.1.4 +* Fixed and improved String.format: Global search & replace, better handling of array arguments +* Fixed cancel-button handling to use validator-object for storing state instead of form element +* Fixed name selectors to handle "complex" names, eg. containing brackets ("list[]") +* Added button and disabled elements to exclude from validation +* Moved element event handlers to refresh to be able to add handlers to new elements +* Fixed email validation to allow long top level domains (eg. ".travel") +* Moved showErrors() from valid() to form() +* Added validator.size(): returns the number of current errors +* Call submitHandler with validator as scope for easier access of it's methods, eg. to find error labels using errorsFor(Element) +* Compatible with jQuery 1.1.x and 1.2.x + +1.1 +--- + +* Added validation on blur, keyup and click (for checkboxes and radiobutton). Replaces event-option. +* Fixed resetForm +* Fixed custom-methods-demo + +1.0 +--- + +* Improved number and numberDE methods to check for correct decimal numbers with delimiters +* Only elements that have rules are checked (otherwise success-option is applied to all elements) +* Added creditcard number method (thanks to Brian Klug) +* Added ignore-option, eg. ignore: "[@type=hidden]", using that expression to exclude elements to validate. Default: none, though submit and reset buttons are always ignored +* Heavily enhanced Functions-as-messages by providing a flexible String.format helper +* Accept Functions as messages, providing runtime-custom-messages +* Fixed exclusion of elements without rules from successList +* Fixed custom-method-demo, replaced the alert with message displaying the number of errors +* Fixed form-submit-prevention when using submitHandler +* Completely removed dependency on element IDs, though they are still used (when present) to link error labels to inputs. Achieved by using + an array with {name, message, element} instead of an object with id:message pairs for the internal errorList. +* Added support for specifying simple rules as simple strings, eg. "required" is equivalent to {required: true} +* Added feature: Add errorClass to invalid field�s parent element, making it easy to style the label/field container or the label for the field. +* Added feature: focusCleanup - If enabled, removes the errorClass from the invalid elements and hides all errors messages whenever the element is focused. +* Added success option to show the a field was validated successfully +* Fixed Opera select-issue (avoiding a attribute-collision) +* Fixed problems with focussing hidden elements in IE +* Added feature to skip validation for submit buttons with class "cancel" +* Fixed potential issues with Google Toolbar by prefering plugin option messages over title attribute +* submitHandler is only called when an actual submit event was handled, validator.form() returns false only for invalid forms +* Invalid elements are now focused only on submit or via validator.focusInvalid(), avoiding all trouble with focus-on-blur +* IE6 error container layout issue is solved +* Customize error element via errorElement option +* Added validator.refresh() to find new inputs in the form +* Added accept validation method, checks file extensions +* Improved dependecy feature by adding two custom expressions: ":blank" to select elements with an empty value and �:filled� to select elements with a value, both excluding whitespace +* Added a resetForm() method to the validator: Resets each form element (using the form plugin, if available), removes classes on invalid elements and hides all error messages +* Fixed docs for validator.showErrors() +* Fixed error label creation to always use html() instead of text(), allowing arbitrary HTML passed in as messages +* Fixed error label creation to use specified error class +* Added dependency feature: The requires method accepts both String (jQuery expressions) and Functions as the argument +* Heavily improved customizing of error message display: Use normal messages and show/hide an additional container; Completely replace message display with own mechanism (while being able to delegate to the default handler; Customize placing of generated labels (instead of default below-element) +* Fixed two major bugs in IE (error containers) and Opera (metadata) +* Modified validation methods to accept empty fields as valid (exception: of course �required� and also �equalTo� methods) +* Renamed "min" to "minLength", "max" to "maxLength", "length" to "rangeLength" +* Added "minValue", "maxValue" and "rangeValue" +* Streamlined API for support of different events. The default, submit, can be disabled. If any event is specified, that is applied to each element (instead of the entire form). Combining keyup-validation with submit-validation is now extremely easy to setup +* Added support for one-message-per-rule when defining messages via plugin settings +* Added support to wrap metadata in some parent element. Useful when metadata is used for other plugins, too. +* Refactored tests and demos: Less files, better demos +* Improved documentation: More examples for methods, more reference texts explaining some basics diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/ajaxSubmit-intergration-demo.html b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/ajaxSubmit-intergration-demo.html new file mode 100644 index 00000000..14bdb5a6 --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/ajaxSubmit-intergration-demo.html @@ -0,0 +1,80 @@ + + + + +If you can't decipher the text on the image, click it to dynamically generate a new one.
+ + + + \ No newline at end of file diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/newsession.php b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/newsession.php new file mode 100644 index 00000000..36ff45e2 --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/newsession.php @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/process.php b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/process.php new file mode 100644 index 00000000..24fe3a8b --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/process.php @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/rand.php b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/rand.php new file mode 100644 index 00000000..88b595e7 --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/rand.php @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/style.css b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/style.css new file mode 100644 index 00000000..c0bbe5f9 --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/captcha/style.css @@ -0,0 +1,140 @@ +body { + margin: 3% 5%; + padding: 0; + background-color: #fff; + color: #333; + font: 0.9em/1.3 Helvetica, Arial, Verdana, Sans-serif; +} + +a:link, a:visited { + background-color: #fff; + color: #333; + text-decoration: underline; +} + +a:hover, a:focus, a:active { + background-color: #ffb; + color: #454545; + text-decoration: underline; +} + +h1 { + margin: 2% 0%; + padding: 1%; + border-bottom: 1px solid #ddd; + background-color: #f8f8f8; + color: #666; + font: normal 1.5em Helvetica, Arial, Verdana, Sans-serif; +} + +h2 { + margin: 2% 0%; + padding: 1%; + border-bottom: 1px solid #ddd; + background-color: #f8f8f8; + color: #666; + font: normal 1.3em Helvetica, Arial, Verdana, Sans-serif; +} + +h3 { + margin: 2% 0%; + padding: 1%; + border-bottom: 1px solid #ddd; + background-color: #f8f8f8; + color: #666; + font: normal 1.2em Helvetica, Arial, Verdana, Sans-serif; +} + +table { + margin: 0; + padding: 0; + width: 100%; +} + +table th { + border: 1px solid #ddd; + font-weight: bold; + text-align: left; + padding: 1%; +} + +table td { + border: 1px solid #ddd; + padding: 1%; +} + +dl, dt, dd { + margin: 0; + padding: 0; +} + +form { + margin: 0; + padding: 0; +} + +fieldset { + border: 1px solid #ddd; + margin: 0% 0% 2% 0%; + padding: 2%; +} + +fieldset legend { + margin: 0; + padding: 0 4px; + background-color: inherit; + color: #333; +} + +code { + font: 1em "Courier New", Courier, Monospace; +} + +pre code { + font: 1.1em "Courier New", Courier, Monospace; + border-bottom: 1px solid #eee; +} + +img { + border: 1px solid #eee; +} + +p#statusgreen { + font-size: 1.2em; + background-color: #fff; + color: #0a0; +} + +p#statusred { + font-size: 1.2em; + background-color: #fff; + color: #a00; +} + +fieldset label { + display: block; +} + +fieldset label.error { + color: red; +} + +fieldset label.valid { + color: green; +} + +fieldset div#captchaimage { + float: left; + margin-right: 15px; +} + +fieldset input#captcha { + width: 25%; + border: 1px solid #ddd; + padding: 2px; +} + +fieldset input#submit { + display: block; + margin: 2% 0% 0% 0%; +} \ No newline at end of file diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/chili.css b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/chili.css new file mode 100644 index 00000000..6990449f --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/chili.css @@ -0,0 +1,15 @@ +.jscom, .mix htcom { color: #4040c2; } +.com { color: green; } +.regexp { color: maroon; } +.string { color: teal; } +.keywords { color: blue; } +.global { color: #008; } +.numbers { color: #880; } +.comm { color: green; } +.tag { color: blue; } +.entity { color: blue; } +.string { color: teal; } +.aname { color: maroon; } +.avalue { color: maroon; } +.jquery { color: #00a; } +.plugin { color: red; } \ No newline at end of file diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/cmxform.css b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/cmxform.css new file mode 100644 index 00000000..120f5a47 --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/cmxform.css @@ -0,0 +1,46 @@ +/********************************** + +Name: cmxform Styles + +***********************************/ +form.cmxform { + width: 370px; + font-size: 1.0em; + color: #333; +} + +form.cmxform legend { + padding-left: 0; +} + +form.cmxform legend, form.cmxform label { + color: #333; +} + +form.cmxform fieldset { + border: none; + border-top: 1px solid #C9DCA6; + background: url(../images/cmxform-fieldset.gif) left bottom repeat-x; + background-color: #F8FDEF; +} + +form.cmxform fieldset fieldset { + background: none; +} + +form.cmxform fieldset p, form.cmxform fieldset fieldset { + padding: 5px 10px 7px; + background: url(../images/cmxform-divider.gif) left bottom repeat-x; +} + +form.cmxform label.error, label.error { + /* remove the next line when you have trouble in IE6 with labels in list */ + color: red; + font-style: italic +} +div.error { display: none; } +input { border: 1px solid black; } +input.checkbox { border: none } +input:focus { border: 1px dotted black; } +input.error { border: 1px dotted red; } +form.cmxform .gray * { color: gray; } \ No newline at end of file diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/cmxformTemplate.css b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/cmxformTemplate.css new file mode 100644 index 00000000..ac52f71b --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/cmxformTemplate.css @@ -0,0 +1,55 @@ +/********************************** + +Use: cmxform template + +***********************************/ +form.cmxform fieldset { + margin-bottom: 10px; +} + +form.cmxform legend { + padding: 0 2px; + font-weight: bold; + _margin: 0 -7px; /* IE Win */ +} + +form.cmxform label { + display: inline-block; + line-height: 1.8; + vertical-align: top; + cursor: hand; +} + +form.cmxform fieldset p { + list-style: none; + padding: 5px; + margin: 0; +} + +form.cmxform fieldset fieldset { + border: none; + margin: 3px 0 0; +} + +form.cmxform fieldset fieldset legend { + padding: 0 0 5px; + font-weight: normal; +} + +form.cmxform fieldset fieldset label { + display: block; + width: auto; +} + +form.cmxform label { width: 100px; } /* Width of labels */ +form.cmxform fieldset fieldset label { margin-left: 103px; } /* Width plus 3 (html space) */ +form.cmxform label.error { + margin-left: 103px; + width: 220px; +} + +form.cmxform input.submit { + margin-left: 103px; +} + +/*\*//*/ form.cmxform legend { display: inline-block; } /* IE Mac legend fix */ \ No newline at end of file diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/core.css b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/core.css new file mode 100644 index 00000000..84494e87 --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/core.css @@ -0,0 +1,21 @@ +body, div { font-family: 'lucida grande', helvetica, verdana, arial, sans-serif } +body { margin: 0; padding: 0; font-size: small; color: #333 } +h1, h2 { font-family: 'trebuchet ms', verdana, arial; padding: 10px; margin: 0 } +h1 { font-size: large } +#main { padding: 1em; } +#banner { padding: 15px; background-color: #06b; color: white; font-size: large; border-bottom: 1px solid #ccc; + background: url(../images/bg.gif) repeat-x; text-align: center } +#banner a { color: white; } + +p { margin: 10px 0; } + +li { margin-left: 10px; } + +h3 { margin: 1em 0 0; } + +h1 { font-size: 2em; } +h2 { font-size: 1.8em; } +h3 { font-size: 1.6em; } +h4 { font-size: 1.4em; } +h5 { font-size: 1.2em; } + diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/reset.css b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/reset.css new file mode 100644 index 00000000..5c376b37 --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/reset.css @@ -0,0 +1,61 @@ +/********************************** + +Use: Reset Styles for all browsers + +***********************************/ + +body, p, blockquote { + margin: 0; + padding: 0; +} + +a img, iframe { border: none; } + +/* Headers +------------------------------*/ + +h1, h2, h3, h4, h5, h6 { + margin: 0; + padding: 0; + font-size: 100%; +} + +/* Lists +------------------------------*/ + +ul, ol, dl, li, dt, dd { + margin: 0; + padding: 0; +} + +/* Links +------------------------------*/ + +a, a:link {} +a:visited {} +a:hover {} +a:active {} + +/* Forms +------------------------------*/ + +form, fieldset { + margin: 0; + padding: 0; +} + +fieldset { border: 1px solid #000; } + +legend { + padding: 0; + color: #000; +} + +input, textarea, select { + margin: 0; + padding: 1px; + font-size: 100%; + font-family: inherit; +} + +select { padding: 0; } \ No newline at end of file diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/screen.css b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/screen.css new file mode 100644 index 00000000..840f572b --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/css/screen.css @@ -0,0 +1,11 @@ +/********************************** + +Use: Main Screen Import + +***********************************/ + +@import "reset.css"; +@import "core.css"; + +@import "cmxformTemplate.css"; +@import "cmxform.css"; \ No newline at end of file diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/custom-messages-metadata-demo.html b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/custom-messages-metadata-demo.html new file mode 100644 index 00000000..13952654 --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/custom-messages-metadata-demo.html @@ -0,0 +1,92 @@ + + + + +Take a look at the source to see how messages can be customized with metadata.
+ + + + + + + + +Back to main page + + + + + + diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/custom-methods-demo.html b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/custom-methods-demo.html new file mode 100644 index 00000000..12397888 --- /dev/null +++ b/wqflask/wqflask/static/new/packages/ValidationPlugin/demo/custom-methods-demo.html @@ -0,0 +1,116 @@ + + + + +Default submitHandler is set to display an alert into of submitting the form
+ + + + + ++
+