Changelog

2.3.0

  • Support overriding fields in subclasses of a Form
  • Support for formencode validators in CompoundValidator

2.2.9

  • Fix loading of templates on some systems where system encoding is not UTF8 (templates are always loaded as utf8)

2.2.7

  • Fix support for Python3.8 removing cgi.escape
  • Fix deprecated support for absolute paths in resource_filename

2.2.6

  • New Documentation

2.2.5

  • Added english transation, so that the gettext translator finds it and prefers english when multiple languages are involved and english is the favourite one.
  • Fixed an issue with i18n translator on Python3

2.2.4

  • Templating now uses render_unicode to render mako templates and avoid unicode dance ecc33fc
  • Avoid modifying validation messages dict while iterating on it 66c7e3d
  • Fix Genshi relative imports when running test suite on top directory

2.2.3

  • Kajiki Template Engine Support
  • Disallow DisplayOnlyWidget as child of RepeatingWidget as it doesn’t work anyways 4c15c5a
  • Flush memozation cache when auto_reload_templates in the middleware is enabled
  • Fix safe_validate with FormEncode validators 3fa88ac

2.2.2

  • Fix CompoundWidget and MatchValidator
  • Fix archive_tw2_resources 8956e83
  • Fix DateValidator and DateTimeValidator to be in sync with tw2.forms 06da5b9

2.2.1

  • Merge branch ‘hotfix/2.1.6’ a699822e5
  • compound_key was ignoring key for RepeatingWidget ed0946146
  • Fix for DisplayOnlyWidget in compound_id regression 11570e42e
  • All and Any validators didn’t work with unicode error messages 3c177ad8d
  • Merge branch ‘master’ of @amol-/tw2.core into develop 5254065c0

2.2.0.8

  • Fix duplicate class name 1c133c907
  • Be able to put an HTML separator between the children of a RepeatingWidget. We also need to support it for the CompoundWidget since it uses the same template db717642d
  • Merge pull request #96 from LeResKP/develop 41229bf01
  • Re-enable archive_tw2_resources on Python 2 56215397a

2.2.0.7

    • Clean up cache * Hack to fix the tests with empty value attributes for genshi cd5febe2b
  • Merge pull request #95 from LeResKP/develop 9f54d72be
  • Merge branch ‘develop’ of github.com:toscawidgets/tw2.core into develop 9142fe165

2.2.0.6

2.2.0.5

  • Add a setUp method back to another base test thats missing it. 55b6061ed

2.2.0.4

  • Restore an old setUp method for tw2.core.testbase.WidgetTest da2d9bab2

2.2.0.3

  • Added a new validator UUIDValidator (+test) for UUID/GUIDs ebea7f30b
  • Merge pull request #92 from RobertSudwarts/amol 481926de6
  • Call me picky, but I think license belongs up there de9d87587
  • Merge branch ‘amol’ into develop 46d68b792
  • pep8 5896d4db0
  • Fix tests for UUIDValidator bfc4531ec
  • Handle case where response.charset is None. e1fe13460
  • Merge branch ‘develop’ of github.com:toscawidgets/tw2.core into develop 4fec80d22

2.2.0.2

  • Update one test now that the error message has changed. c31f52732
  • Catch if a template is None. a159b6cf1
  • Remove direct dependence on unittest so we can get test-generators working again. Relates to #88. f561ef33d
  • Turn the css/js escaping tests into generators per engine too. c43bd4d7f
  • Kajiki expects unicode these days. 16f6508c2
  • Mark this test really as skipping. b59d1ff05
  • Skip tests on weird kajiki behavior…. 11285aa68
  • Drop python-3.2 support since our deps dont support it. 0f777ea68
  • Kill kajiki. ea14b79f1
  • Merge pull request #94 from toscawidgets/feature/yielding-again 30e4c4b3d
  • Metadata fixups, #90 38e306f88
  • Imported doc fragments from tw2.forms 894b28540

2.2.0.1

  • Provide more info in this traceback. 77efa240f
  • Variable, not Param. 03991510e
  • Update TG2 tutorial to current state of affairs cb481999a
  • Make some things non-required that were newly required. 14507319d
  • Merge branch ‘develop’ of github.com:toscawidgets/tw2.core into develop f5a00e83d

2.2.0

  • Support more webob versions. Fixes #77 e071e9d33
  • Constrain webtest version for py2.5. 1214057c1
  • Port to python2/python3 codebase. c1d2b7721
  • Travis-CI config update. 21a35d470
  • Some py3 fixes for tw2.forms. c82fb090f
  • @moschlar on the ball. 8b5cdcb81
  • Some setup for a port of tw2.devtools to gearbox. 08fd64a11
  • Merge branch ‘feature/2.2’ into develop 4aef579c7
  • Mention tw2.core.DirLink in the docs. Fixes #69. dce1db697
  • Reference gearbox tw2.browser in the docs. 2562933ee
  • Include translations in distribution. 2791169fa
  • Merge pull request #82 from Cito/develop f6d1f0502
  • Fix #84 in archive_tw2_resources 02eec525f
  • Merge pull request #85 from toscawidgets/feature/archive_tw2_resources 8791c3236
  • Add a failing test for #25. 5d7b43a9f
  • Automatically assign widgets an ID. ca81db016
  • Enforce twc.Required (for #25). 94e61ec52
  • Deal with faulout from the twc.Required enforcement. b5063a3c7
  • Merge pull request #87 from toscawidgets/feature/twc.Required 5add35cb9
  • Method generators are not supported in unittest.TestCase subclasses. 30cb85826
  • Support if_empty and let BoolValidator validate None to False. a9d48944a
  • Merge pull request #88 from Cito/develop 2416cefb8
  • Merge branch ‘hotfix/2.1.6’ a699822e5
  • Merge branch ‘hotfix/2.1.6’ into develop dc99409b9
  • Remove the spec file. Fedora has it now. 004c3eda6

2.1.6

2.1.5

  • Make sure future-queued resources make it into the middleware. adb4aec79

2.1.4

  • Simplify the validator API and make it compatible with FormEncode. 5e5f91afa
  • Merge pull request #75 from Cito/develop eb74470c6

2.1.3

  • Validation docs. 4132ff5f6
  • Typo fix. Thanks Daniel Lepage. 0fbed935c
  • Fixes to tests busted by the introduction of CSSSource. b795f3f2b
  • More descriptive ParameterError for invalid ids. 6c06384ff
  • Windows support for resource serving. 0b939179a
  • Added a half-done test of the chained js feature. fe6924f89
  • We won’t actually deprecate tw1-style calling. f63a37c51
  • Merge branch ‘develop’ into feature/chained-js-calls c5e3f6a1f
  • Added class_or_instance properties fb9211eb0
  • Revert “Added class_or_instance properties” 25df3bd3a
  • Chaining js calls are back in action. eb7ef5056
  • Merge branch ‘feature/chained-js-calls’ into develop 612d52a88
  • Version for 2.0.0. 03f6d1280
  • Forgot the damn classifier. a780af954
  • Merge branch ‘hotfix/classifier’ df2556fec
  • Merge branch ‘hotfix/classifier’ into develop 22b667946
  • Add coverage to the standard test process. 99400078e
  • When widgets have key they should be validated by key and not be id edc575014
  • Re-added ancient/missing js_function __str__ behavior discovered in the bowels of moksha. 1d45fe424
  • Demoted queued registration messages from “info” to “debug”. be23347d1
  • Clutch simplejson hacking. fb7c06b66
  • Encoding widgets works again. 07fb3c94b
  • More PEP8. b387fa470
  • Found the killer test. d81926c5a
  • Update to that test. 152650597
  • A stab at handling function composition. Tests pass. 7ae78e03b
  • This is clearly unsustainable. c96fb2898
  • Solve the function composition problem. ff432f26a
  • Merge branch ‘feature/function-composition’ into develop 5f46d5069
  • Some comments in the encoder initialization. a479c7aa5
  • The output of this test changes depending on what other libs are installed. 1b4306160
  • Abstracted ResourceBundle out of Resource for tw2.jqplugins.ui. 56a6ba35a
  • When widget has key and so gets data by key validation was still returning data by id. Now validation returns data by key when available. Also simplify CompoundWidget validation fa197ba30
  • Cover only the tw2.core package 75001ec74
  • Fix regression in tw2.sqla. f6089fd7f
  • Revert CompoundValidation tweak. Works with tw2.sqla now. Fixes #9. 032994731
  • Added a test case for amol’s validation situation. 06ac1b3fb
  • Supress top-level validator messages if they also apply messages to compound widget children. c144b01f3
  • Correctly supress top-level validator messages. 8b15822e1
  • Write test to better test CompoundWidget error reporting 74dd87075
  • Handle unspecified childerror case uncovered by latest test. e94c80341
  • Differentiated test names. 5a7ef40cc
  • Compatibility with dreadpiratebob and percious’s tree. af7a2e6b8
  • Avoid receiving None instead of the object itself when object evaluates to False e8c513c3a
  • 2.0.1 release. c056c88f6
  • Initial RPM spec. 12cec0ed8
  • Rename. 5ebc78d87
  • Removed changelog. It’s from the way back tw1 days. eb5fdcc65
  • Skipping tests that rely on tw2.forms and yuicompressor. c7ae7984a
  • We don’t actually require weberror. 7b269e77e
  • Include test data for koji builds. 3f61860d3
  • First iteration of the new rpm. It actually built in koji. 6b924cdda
  • exception value wasn’t required and breaks compatibility with Python2.5 de857ce6e
  • Merge pull request #16 from amol-/develop 0e9faf439
  • More Py2.5 compat. 057ac45bb
  • 2.0.2 release with py2.5 bugfixes for TG. bd8304957
  • Specfile update for 2.0.2. d9aeb76b3
  • Changed executable bit for files that should/shouldn’t have it. 4d77e3043
  • Exclude .pyc files from template directories. 4d281c684
  • Version bump for rpm fixes. a76db4c94
  • Remove pyc files from the sdist package. Weird. da3ddaea1
  • Switched links in the doc from old blog to new blog. 8f7332fd1
  • Be more careful with the multiprocessing,logging import hack. a8857267e
  • Compatibility with older versions of simplejson. 64d16f234
  • Test suite fixes on py2.6. e37b7e1c6
  • 2.0.4 with improved py2.6 support. 7b6784e1d
  • A little more succint in the middleware. 5cc582cd9
  • Allow streaming html responses to pass through the middleware untouched. 3f4a5a4b9
  • Simple formatting in the spec. d7020a9fa
  • Version bump. 48768720b
  • Stripped out explicit references to kid and cheetah. 595ba7c6c
  • Removed unused reference to reset_engine_name_cache. 0e4c40e64
  • Removed unnecessary “reset_engine_name_cache” 2b3ed27a7
  • Removed a few leftover references to kid. 1755fd14a
  • More appropriate variable name. 1c27c620a
  • First rewrite of templating system. 283367bb8
  • Template caching. 4d16358e0
  • First stab at jinja2 support. 17d17234a
  • Update to the docs. e9658290b
  • Massive dos2unix pass. For good health. e74bbc42b
  • PEP8. 62d256c4d
  • Reference email thread regarding “displays_on” 25ffcd339
  • Added support for kajiki. f809d1a5d
  • Default templates for kajiki and jinja. 9a170d3cb
  • More robust testing of new templates. 55f1fbe0a
  • Pass filename to mako templates for easier debugging. 5e63adcbe
  • More correct dotted template loading. 07b67c84d
  • Added support for chameleon. fa8c160d4
  • Default chameleon templates. 69de63cf6
  • Updated docs with kajiki and chameleon. ef291ce4a
  • Added three tests for http://bit.ly/KNYAxq 0e775ab1e
  • Resurrecting the smarter logic of the “other” tw encoder. Hurray for git history. 1379196d3
  • Added test for #12. Passes. b6bbf92a4
  • Use __name__ in tests. fbe2b6979
  • Added failing test for Issue #18. e962a03fb
  • Merge pull request #21 from toscawidgets/feature/multiline-js c9e0ada6f
  • Merge branch ‘develop’ into feature/template-sys b32a024c3
  • Merge branch ‘develop’ into feature/issue-18 5b1c1dadf
  • Guess modname in post_define. Fixes #18. d3d2aeb35
  • Merge branch ‘feature/issue-18’ into develop 4f0d496fc
  • Version bump - 2.0.6. ea7637a20
  • Don’t check for ‘not value’ in base to_python. Messes up on cgi.FieldStorage. 204e20fbd
  • Added a note to the docs about altering JSLink links. Fixes #15. 28e458fe4
  • dos2unix pass on the docs/ folder. ce4f813e7
  • Typo fix. 34fee8fa9
  • Trying out travis-ci. 8e9414ae0
  • Trying out travis-ci. abc5b4161
  • Updates for testing on py2.5 and py2.6. 56ce437ef
  • Merge branch ‘develop’ 0f4b81113
  • Added build table to the README. 4da336497
  • Merge branch ‘develop’ into feature/template-sys 832435945
  • Python2.5 support. 66e93b66d
  • JS and CSSSource require a .src attr. ca02d9713
  • Use mirrors for travis. b504714da
  • Revert “Use mirrors for travis.” 9fc882050
  • Fixed mako and genshi problems in new templating system found by testing against tw2.devtools. 41b8e5264
  • Version bump – 2.1.0a ft. templating system rewrite. c89009332
  • Ship new templates with the source dist. 2fb6cf8da
  • Attribute filename for jinja and kajiki. d130c3c9f
  • Provide an option for WidgetTest to exclude engines. c822b2a66
  • 2.1.0a4 - Fix bug in automatic resource registration. efcd51724
  • Support template inheritance at Rene van Paassen’s request. fc58e929a
  • Version bump for template inheritance. 6b6658870
  • Fix required Keyword for Date*Validators 14196d9ce
  • Bridge the tw2/formencode API divide. 547357c7f
  • Make rendering_extension_lookup propagate up to templating layer 8d89dabd8
  • Added test for #30. Oddly, it passes 7d1d83852
  • Trying even harder to test #30. b66b59ff5
  • Version bump to 2.1.0b1. 3483107a6
  • Puny py2.5 has no context managers. cb1e821c8
  • PEP8. Cosmetic. 50d88cc93
  • Future-proofing. @amol- is a rockstar. bb006dfeb
  • Conform with formencode. Fixes #28. f3bf2a821
  • Improve handling of template path names under Windows. e2bbeb29c
  • Borrowed backport of os.path.relpath for py2.5. Related to #30. f29337629
  • Whoops. Forgot to use the new relpath. #30. f308bef92
  • Use util.relpath instead of os.path.relpath. 3c302eaac
  • .req() returns the validated widget is one exists. be8f39404
  • Use **kw even when pulling in the validated widget. f78492be9
  • Trying to duplicate an issue with Deferred. cefbbfd73
  • Tests for #41. 7c61047b9
  • Handle arguments to display() called as instance method. 86894492d
  • Cosmetic. b94180f25
  • Found the failing test for @amol-‘s case. 284c66a38
  • Allow Deferred as kwarg to .display(). d4c6dcfc6
  • Second beta 2.1.0b2 to verify some bugfixes. b6ff67ab7
  • Failing test for Deferred. d26389d13
  • @amol-‘s fix for the Deferred subclassing problem. c08c0508b
  • 2.1.0. 725fd6aba
  • Fixup copyright date bc509ca66
  • avoid issues with unicode error messages b5a314de7
  • Link to rtfd from README. 1269dff73
  • Added jinja filter to take care of special case html bolean attributes such as radio checked} da25dbfaf
  • Added htmlbools filter to jinja templates fb00eac66
  • Fixed corner case which produced harmless but incorrect output if the special case attribute value is False 38a4505b8
  • Merge pull request #48 from clsdaniel/develop 270784d5a
  • Removed commented-out lines. 55af65d6c
  • 2.1.1 for jinja updates and misc bugfixes. 0ff5ffcd2
  • Since 2.0 autoescaping in widgets got lost due to new templates management 59f478fb5
  • Mark attrs as Markup to avoid double escaping 5e138ace2
  • Mark as already escape JSFuncCall too and update test to check the result for all the template engines 7c0c60ae2
  • Merge pull request #49 from amol-/develop f6a3dda84
  • Add proper escaping for JS and CSS sources af6d233df
  • Merge pull request #50 from amol-/develop e99f82879
  • Provide a Widget compound_key make available a compound_key attribute which can be used by tw2.forms as the default value for FormField name argument ee571a215
  • Version bump, 2.1.2. 1b64e3f83
  • Allow inline templates with no markup. de19fa2b3
  • PEP8. c2da40a1b
  • Test that reveals a bug in tw2.jqplugins. 6a88d0413
  • Do not translate empty strings, this does not work. e4f29829d
  • Merge pull request #53 from Cito/develop 168f2727f
  • Add translations and passing lang via middleware a10a14e26
  • Merge pull request #59 from Cito/develop cbf603238
  • Inject CSS/JSSource only once. ae13c369a
  • Merge pull request #61 from Cito/develop bb5c2a225
  • Test blank validator for both None and empty string. 1167286c3
  • Add some more translations. 32374168d
  • Merge pull request #64 from Cito/develop 50fc09a24
  • Fix #63. df2920d83
  • Added a note about the add_call method to the design doc. e901b1243
  • Reference js_* docstrings from design doc. Fixes #58. 55001c742
  • General docs cleanup. 144d5cfbb
  • Fix broken links to tw2.core-docs-pyramid 14e5223e2
  • Fix broken links to tw2.core-docs-turbogears 55a333b1c
  • Merge pull request #66 from lukasgraf/lg-doc-url-fixes 4d123d0b1
  • provide compatibility with formencode validators c382eed46
  • Merge pull request #71 from amol-/develop 65b9550ca
  • Link to github bug tracker from docs. Fixes #67. f849b5d03
  • pass on state value in validation. 7c6791d80
  • Updated pyramid docs. Fixes #23. 9547108fb
  • Don’t let add_call pile-up new js resources. f1d698c55