From gotcha at codespeak.net Thu Nov 19 10:35:14 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 10:35:14 +0100 (CET) Subject: [KSS-checkins] r69411 - kukit/kss.demo/trunk/kss/demo Message-ID: <20091119093514.1D7E3168071@codespeak.net> Author: gotcha Date: Thu Nov 19 10:35:13 2009 New Revision: 69411 Modified: kukit/kss.demo/trunk/kss/demo/configure.zcml Log: include meta from configure Modified: kukit/kss.demo/trunk/kss/demo/configure.zcml ============================================================================== --- kukit/kss.demo/trunk/kss/demo/configure.zcml (original) +++ kukit/kss.demo/trunk/kss/demo/configure.zcml Thu Nov 19 10:35:13 2009 @@ -6,7 +6,8 @@ i18n_domain="kss" > - + + From gotcha at codespeak.net Thu Nov 19 10:39:31 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 10:39:31 +0100 (CET) Subject: [KSS-checkins] r69412 - kukit/kukit.js/tag/1.6.0a1 Message-ID: <20091119093931.D4087168071@codespeak.net> Author: gotcha Date: Thu Nov 19 10:39:31 2009 New Revision: 69412 Added: kukit/kukit.js/tag/1.6.0a1/ - copied from r69411, kukit/kukit.js/trunk/ Log: prepare for release From gotcha at codespeak.net Thu Nov 19 10:43:01 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 10:43:01 +0100 (CET) Subject: [KSS-checkins] r69413 - kukit/kss.concatresource/tag/1.6.0a1 Message-ID: <20091119094301.1FED016804D@codespeak.net> Author: gotcha Date: Thu Nov 19 10:43:00 2009 New Revision: 69413 Added: kukit/kss.concatresource/tag/1.6.0a1/ - copied from r69412, kukit/kss.concatresource/trunk/ Log: prepare for release From gotcha at codespeak.net Thu Nov 19 10:44:41 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 10:44:41 +0100 (CET) Subject: [KSS-checkins] r69414 - in kukit/kss.core/trunk/kss/core: . pluginregistry Message-ID: <20091119094441.1C2B416804D@codespeak.net> Author: gotcha Date: Thu Nov 19 10:44:40 2009 New Revision: 69414 Modified: kukit/kss.core/trunk/kss/core/ (props changed) kukit/kss.core/trunk/kss/core/pluginregistry/ (props changed) Log: prepare for release From gotcha at codespeak.net Thu Nov 19 10:47:00 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 10:47:00 +0100 (CET) Subject: [KSS-checkins] r69416 - kukit/kss.core/trunk Message-ID: <20091119094700.A8B1D168071@codespeak.net> Author: gotcha Date: Thu Nov 19 10:46:59 2009 New Revision: 69416 Added: kukit/kss.core/trunk/.zest.releaser.cfg Log: for zest.releaser Added: kukit/kss.core/trunk/.zest.releaser.cfg ============================================================================== --- (empty file) +++ kukit/kss.core/trunk/.zest.releaser.cfg Thu Nov 19 10:46:59 2009 @@ -0,0 +1,2 @@ +[subversion] +tags=tag From gotcha at codespeak.net Thu Nov 19 11:07:21 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 11:07:21 +0100 (CET) Subject: [KSS-checkins] r69418 - kukit/kss.core/trunk/docs Message-ID: <20091119100721.3D249168071@codespeak.net> Author: gotcha Date: Thu Nov 19 11:07:20 2009 New Revision: 69418 Modified: kukit/kss.core/trunk/docs/HISTORY.txt Log: history cleanup Modified: kukit/kss.core/trunk/docs/HISTORY.txt ============================================================================== --- kukit/kss.core/trunk/docs/HISTORY.txt (original) +++ kukit/kss.core/trunk/docs/HISTORY.txt Thu Nov 19 11:07:20 2009 @@ -1,28 +1,47 @@ Changelog for kss.core +====================== (name of developer listed in brackets) -kss.core - 1.5dev Unreleased +1.5dev (Unreleased) +------------------- - - ... + - adjust ISite import to work in Zope 2.12 + [davisagli] + + - call cleanup when the test layer is torn down to avoid polluting + the test environment + [davisagli] + + - Avoid dependency on zope.app.zapi package. + [hannosch] + + - Specify package dependencies. + [hannosch] + +1.4.7 (2009-05-11) +------------------ - Fix kukit payload in favor of IE6 XP SP3. xmlns="http://www.kukit.org/commands/1.1" removed from kukit tag as it breaks IE6 XP SP3. [gotcha] - + +1.4.6 (2009-04-10) +------------------ + - fix RequestManager's handling of the sendingTimeout parameter, to enable setting the timeout globally from custom code, if needed. [ree] + +1.4.5 (2009-02-02) +------------------ - Added kss.blur action. [simon] - - Avoid dependency on zope.app.zapi package. - [hannosch] - - - Specify package dependencies. - [hannosch] +1.4.4 (2009-01-05) +------------------ - Fix the ca_cancel (action-cancel) test that was broken on IE7 because it contained the same id more times. @@ -36,9 +55,12 @@ with previous workaround removed. [ree] - - Use the real request in the json logic so skin layers, request - parameters, etc. are available. + - Use the real request in the json logic so skin layers, request parmeters, + etc. are available. [wichert] + +1.4.3 (2008-08-18) +------------------ - Replaced license header of third-party sarissa.js to workaround the license detection of ohloh. @@ -49,18 +71,29 @@ - Fix cssQuery-compat.js to use newest base2 api. [ree] - - Fix a typo that caused an exception instead of - logging an error message, this happened when - an action was regitered twice with the same name. - [ree] +1.4.2 (2008-07-06) +------------------ -kss.core - 1.4 Released 2008-04-21 + - Include meta.zcml from configure.zcml, in order to + allow easier loading of dependent zcml during unittests + [gotcha, jfroche] -MISSING, PLEASE MERGE! - Add improved demos - (insertions in tbody is not included : that demo is - still broken in IE6) - [gotcha] +1.4.1 (2008-06-02) +------------------ + + - Add @@kss_devel_mode/needs_old_cssquery, to enable a workaround + for Safari 3.1 to work. + [ree] + + - Fix a typo that caused an exception instead of + logging an error message, this happened when + an action was registered twice with the same name. + [ree] + +1.4 (2008-04-21) +---------------- + - Updated base2-dom-fp.js with newest version. [ree] @@ -68,6 +101,12 @@ "application/x-javascript" content type only [ree] + - DONE ONLY ON BRANCH 1.4 !!! + Add improved demos + (insertions in tbody is not included : that demo is + still broken in IE6) + [cryu, jone, gotcha] + - fix setKssAttribute action and command (closes bug 8048 from plone.org) [gotcha] @@ -75,11 +114,18 @@ - fix action-cancel [gotcha] +1.4-rc1 (2008-03-25) +-------------------- + + - disabled input values should not be submitted with the form + [gotcha] + - Updated base2-don-fp.js with newest version. This fixes breakage on FireFox 3. [ree] -kss.core - 1.4dev Unreleased +1.4-alpha1 (2008-03-09) +----------------------- - refactor the value provider registry to use a single registry in place of 3. @@ -149,12 +195,14 @@ parameters as strings. [ree] -kss.core - 1.2 Released 2007-08-17 +1.2 (2007-08-17) +---------------- - Refactored js code. [gotcha] -kss.core - 1.2-rc2 Released 2007-07-27 +1.2-rc2 (2007-07-27) +-------------------- - Prepare for release. [ree] @@ -165,13 +213,15 @@ - fix form marshalling [gotcha] -kss.core - 1.2-rc1.1 +1.2-rc1.1 +--------- - Prepare for release. Identical with 1.2-rc1, just created for consistent versions. [ree] -kss.core - 1.2-rc1 +1.2-rc1 +------- - Deprecated addClassName, removeClassName actions and commands in favour of addClass and removeClass. @@ -223,7 +273,8 @@ events in a binder instance, matching the need of the events. [ree] -kss.core - 1.2-beta2 +1.2-beta2 +--------- - Make the binding of the nodes together in one batch [ree] @@ -232,16 +283,18 @@ and deprecation [ree] -kss.core - 1.2-beta1 +1.2-beta1 +--------- - Prepare for release [ree] -kss.core - 1.2-alpha2 +1.2-alpha2 +---------- - Merge in Philikon's refactorization - Move docs to doc/ - [ree] + Move docs to doc/ + [ree] - Initial package structure. [zopeskel] From gotcha at codespeak.net Thu Nov 19 11:08:02 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 11:08:02 +0100 (CET) Subject: [KSS-checkins] r69419 - in kukit/kss.core/trunk: . docs Message-ID: <20091119100802.54C88168071@codespeak.net> Author: gotcha Date: Thu Nov 19 11:08:01 2009 New Revision: 69419 Added: kukit/kss.core/trunk/CHANGES.txt - copied unchanged from r69418, kukit/kss.core/trunk/docs/HISTORY.txt Removed: kukit/kss.core/trunk/docs/HISTORY.txt Log: move to standard location Deleted: /kukit/kss.core/trunk/docs/HISTORY.txt ============================================================================== --- /kukit/kss.core/trunk/docs/HISTORY.txt Thu Nov 19 11:08:01 2009 +++ (empty file) @@ -1,301 +0,0 @@ -Changelog for kss.core -====================== - - (name of developer listed in brackets) - -1.5dev (Unreleased) -------------------- - - - adjust ISite import to work in Zope 2.12 - [davisagli] - - - call cleanup when the test layer is torn down to avoid polluting - the test environment - [davisagli] - - - Avoid dependency on zope.app.zapi package. - [hannosch] - - - Specify package dependencies. - [hannosch] - -1.4.7 (2009-05-11) ------------------- - - - Fix kukit payload in favor of IE6 XP SP3. - xmlns="http://www.kukit.org/commands/1.1" removed - from kukit tag as it breaks IE6 XP SP3. - [gotcha] - -1.4.6 (2009-04-10) ------------------- - - - fix RequestManager's handling of the sendingTimeout parameter, - to enable setting the timeout globally from custom code, if needed. - [ree] - -1.4.5 (2009-02-02) ------------------- - - - Added kss.blur action. - [simon] - -1.4.4 (2009-01-05) ------------------- - - - Fix the ca_cancel (action-cancel) test that was broken - on IE7 because it contained the same id more times. - [ree] - - - Fix or improve calculateAbsoluteURL to handle absolute - and relative urls correctly, as well as get rid of the - double slash (//) issue. - It also satisfies the tests kss_url_param and - kss_url_param_multiprop, that now work as intended, - with previous workaround removed. - [ree] - - - Use the real request in the json logic so skin layers, request parmeters, - etc. are available. - [wichert] - -1.4.3 (2008-08-18) ------------------- - - - Replaced license header of third-party sarissa.js - to workaround the license detection of ohloh. - sarissa.js is redistributed under GNU GPL v2 - as previously. - [ree] - - - Fix cssQuery-compat.js to use newest base2 api. - [ree] - -1.4.2 (2008-07-06) ------------------- - - - Include meta.zcml from configure.zcml, in order to - allow easier loading of dependent zcml during unittests - [gotcha, jfroche] - -1.4.1 (2008-06-02) ------------------- - - - Add @@kss_devel_mode/needs_old_cssquery, to enable a workaround - for Safari 3.1 to work. - [ree] - - - Fix a typo that caused an exception instead of - logging an error message, this happened when - an action was registered twice with the same name. - [ree] - - -1.4 (2008-04-21) ----------------- - - - Updated base2-dom-fp.js with newest version. - [ree] - - - Change concatresource to accept resources with - "application/x-javascript" content type only - [ree] - - - DONE ONLY ON BRANCH 1.4 !!! - Add improved demos - (insertions in tbody is not included : that demo is - still broken in IE6) - [cryu, jone, gotcha] - - - fix setKssAttribute action and command - (closes bug 8048 from plone.org) - [gotcha] - - - fix action-cancel - [gotcha] - -1.4-rc1 (2008-03-25) --------------------- - - - disabled input values should not be submitted with the form - [gotcha] - - - Updated base2-don-fp.js with newest version. - This fixes breakage on FireFox 3. - [ree] - -1.4-alpha1 (2008-03-09) ------------------------ - - - refactor the value provider registry to use - a single registry in place of 3. - This will enable to define value - providers that recieve non-string parameters - like a node selection. - [ree] - - - Remove previously deprecated form() and - currentForm() value providers from normal - action parameters (remark: they should - be used with kssSelector.) - They now give a parsing error. - [ree] - - - Implement multiproperties in - action-client and action-server - [ree] - - - add url() and alias() providers - [ree] - - - Change develui.css to have its style inline with - kssproject.org. - [gotcha] - - - Add some tests for binder classes. - [ree] - - - Improve some of the demos to make them Selenium testable - under both dev and prod mode, fix their tests. - [gotcha] - - - Use functions in token table instead of code strings - that were evaluated. 'eval' is very slow. - in kukit.js [gotcha] - - - Refactor code towards module and class closures. - in kukit.js [gotcha] - - - Fix multiple selection form fields - marshalling on Safari - (fixes #22 in kssproject) - and on IE. - [ree] - - - Fix error fallback handling - [ree] - - - Implement loglevels based on cookies - Add handling of log levels to the kss mode view - [ree] - - - Moved the core demos to this package from kss.demo. - They are now located under the core plugin. - [ree] - - - Implement event binding based on the ids fetched - dynamically from the dom, by value providers. - [ree] - - - Changed kukit payload to encode HTML content of CDATA. - This was necessary because us a supposed bug in FF, that - prevented us to use base2 (xpath selection did not work - on inserted elements, due to namespace issues.) - Get rid of forceToDom, make sure all plugins accept html - parameters as strings. - [ree] - -1.2 (2007-08-17) ----------------- - - - Refactored js code. - [gotcha] - -1.2-rc2 (2007-07-27) --------------------- - - - Prepare for release. - [ree] - - - when attrname is kssattr:xxx, IE chokes on certain nodes - [gotcha] - - - fix form marshalling - [gotcha] - -1.2-rc1.1 ---------- - - - Prepare for release. - Identical with 1.2-rc1, just created for consistent versions. - [ree] - -1.2-rc1 -------- - - - Deprecated addClassName, removeClassName actions and - commands in favour of addClass and removeClass. - Deprecated "name" and "classname" parameter in addClass, - removeClass, toggleClass actions and commands in favour of - "value". - [ree] - - - implement new packing directives and two disctint - versions of the javascript (development and production), - this is achieved from javascript with the ;;; marker - Also add the @@kss_devel_mode/ui view for changing - the development mode from the browser. - [ree] - - - Add the passnode selector that can be used to access - the value of a default parm passed programmatically - from the event (via makeActionOper) - [ree] - - - Add action moveNodeAsLastChild - [ree] - - - Death to Azax (... long live KSS)! - Removing last traces of the old name from the sources - [gotcha] - - - Changed querying for css selectors to base2 instead of - cssQuery. Base2 is supposed to be a lot faster than - the old cssQuery. Usage is alternating, if base2 is - present that one is used, otherwise it uses the old - cssQuery code which stays the default. - [jvloothuis, ree] - - - Add moveNodeBefore action (presumably missing) - [ree] - - - Refactor load event, separate iload and load events. - The new event binder handles both events together. A - new parameter, evt-iload-autodetect is introduced, if - this is false we don't use detection but the iframe - must cooperate on telling us wnen we are done. There - is deprecation warning issued for the load events, if - bound on an iframe, in which case an iload event must - be used. - [ree] - - - refactor event binding to allow different iterators to bind - events in a binder instance, matching the need of the events. - [ree] - -1.2-beta2 ---------- - - - Make the binding of the nodes together in one batch - [ree] - - - added kssSubmitForm action parameter - and deprecation - [ree] - -1.2-beta1 ---------- - - - Prepare for release - [ree] - -1.2-alpha2 ----------- - - - Merge in Philikon's refactorization - Move docs to doc/ - [ree] - - - Initial package structure. - [zopeskel] - From gotcha at codespeak.net Thu Nov 19 11:09:30 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 11:09:30 +0100 (CET) Subject: [KSS-checkins] r69420 - kukit/kss.core/trunk Message-ID: <20091119100930.E0CE4168071@codespeak.net> Author: gotcha Date: Thu Nov 19 11:09:30 2009 New Revision: 69420 Removed: kukit/kss.core/trunk/setup.cfg Log: remove unused Deleted: /kukit/kss.core/trunk/setup.cfg ============================================================================== --- /kukit/kss.core/trunk/setup.cfg Thu Nov 19 11:09:30 2009 +++ (empty file) @@ -1,3 +0,0 @@ -[egg_info] -tag_build = dev -tag_svn_revision = true From gotcha at codespeak.net Thu Nov 19 11:12:34 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 11:12:34 +0100 (CET) Subject: [KSS-checkins] r69421 - in kukit/kss.core/trunk: . docs Message-ID: <20091119101234.E22E7168072@codespeak.net> Author: gotcha Date: Thu Nov 19 11:12:34 2009 New Revision: 69421 Modified: kukit/kss.core/trunk/docs/INTRO.txt kukit/kss.core/trunk/setup.py Log: rest cosmetics Modified: kukit/kss.core/trunk/docs/INTRO.txt ============================================================================== --- kukit/kss.core/trunk/docs/INTRO.txt (original) +++ kukit/kss.core/trunk/docs/INTRO.txt Thu Nov 19 11:12:34 2009 @@ -1,7 +1,5 @@ - -*********************************** Kinetic Style Sheets (KSS) kss.core -*********************************** +=================================== KSS is an Ajax framework that allows UI development without writing any Javascript. It uses style sheets with CSS-compliant syntax to declare and bind @@ -10,7 +8,7 @@ page. What is KSS? -************ +------------ KSS is an AJAX framework. KSS has both a client-side Javascript library and server-side support. @@ -37,7 +35,7 @@ !) Homepage -*********** +-------- More information and documentation can be found on the `KSS project homepage `_. Modified: kukit/kss.core/trunk/setup.py ============================================================================== --- kukit/kss.core/trunk/setup.py (original) +++ kukit/kss.core/trunk/setup.py Thu Nov 19 11:12:34 2009 @@ -10,12 +10,14 @@ read('docs', 'INTRO.txt') + '\n' + 'Recently changed\n' - '**********************\n' + '================\n' + '\n' + read('docs', 'NEWS.txt') + '\n' + + read('CHANGES.txt') + + '\n' + 'Download\n' - '**********************\n' + '========\n' ) setup(name='kss.core', From gotcha at codespeak.net Thu Nov 19 11:13:07 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 11:13:07 +0100 (CET) Subject: [KSS-checkins] r69422 - kukit/kss.core/trunk Message-ID: <20091119101307.553EB168072@codespeak.net> Author: gotcha Date: Thu Nov 19 11:13:06 2009 New Revision: 69422 Modified: kukit/kss.core/trunk/setup.py Log: Preparing release 1.6.0a1 Modified: kukit/kss.core/trunk/setup.py ============================================================================== --- kukit/kss.core/trunk/setup.py (original) +++ kukit/kss.core/trunk/setup.py Thu Nov 19 11:13:06 2009 @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import os -version = '1.5' +version = '1.6.0a1' def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() From gotcha at codespeak.net Thu Nov 19 11:13:18 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 11:13:18 +0100 (CET) Subject: [KSS-checkins] r69423 - kukit/kss.core/tag/1.6.0a1 Message-ID: <20091119101318.3D774168072@codespeak.net> Author: gotcha Date: Thu Nov 19 11:13:17 2009 New Revision: 69423 Added: kukit/kss.core/tag/1.6.0a1/ - copied from r69422, kukit/kss.core/trunk/ Log: Tagging 1.6.0a1 From gotcha at codespeak.net Thu Nov 19 11:16:03 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 11:16:03 +0100 (CET) Subject: [KSS-checkins] r69424 - kukit/kss.core/trunk Message-ID: <20091119101603.8C8D2168016@codespeak.net> Author: gotcha Date: Thu Nov 19 11:16:02 2009 New Revision: 69424 Modified: kukit/kss.core/trunk/setup.py Log: Back to development: 1.6.0.a2 Modified: kukit/kss.core/trunk/setup.py ============================================================================== --- kukit/kss.core/trunk/setup.py (original) +++ kukit/kss.core/trunk/setup.py Thu Nov 19 11:16:02 2009 @@ -1,7 +1,8 @@ from setuptools import setup, find_packages import os -version = '1.6.0a1' +version = '1.6.0.a2dev' + def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() @@ -16,15 +17,13 @@ + '\n' + read('CHANGES.txt') + '\n' + - 'Download\n' - '========\n' - ) + 'Download\n' + + '========\n') setup(name='kss.core', version=version, description="KSS (Kinetic Style Sheets) core framework", long_description = long_description, - # Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Framework :: Zope2", "Framework :: Zope3", From gotcha at codespeak.net Thu Nov 19 11:17:08 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 11:17:08 +0100 (CET) Subject: [KSS-checkins] r69425 - in kukit/kss.core/trunk/kss/core: . pluginregistry Message-ID: <20091119101708.5AE38168016@codespeak.net> Author: gotcha Date: Thu Nov 19 11:17:07 2009 New Revision: 69425 Modified: kukit/kss.core/trunk/kss/core/ (props changed) kukit/kss.core/trunk/kss/core/pluginregistry/ (props changed) Log: back to dev From gotcha at codespeak.net Thu Nov 19 11:21:28 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 11:21:28 +0100 (CET) Subject: [KSS-checkins] r69428 - kukit/kss.core/trunk Message-ID: <20091119102128.E5D63168024@codespeak.net> Author: gotcha Date: Thu Nov 19 11:21:28 2009 New Revision: 69428 Modified: kukit/kss.core/trunk/CHANGES.txt Log: fix dates Modified: kukit/kss.core/trunk/CHANGES.txt ============================================================================== --- kukit/kss.core/trunk/CHANGES.txt (original) +++ kukit/kss.core/trunk/CHANGES.txt Thu Nov 19 11:21:28 2009 @@ -1,10 +1,13 @@ Changelog for kss.core ====================== - (name of developer listed in brackets) +1.6.0.a2 (unreleased) +--------------------- -1.5dev (Unreleased) -------------------- + - no changes yet + +1.6.0.a1 (2009-11-19) +--------------------- - adjust ISite import to work in Zope 2.12 [davisagli] From gotcha at codespeak.net Thu Nov 19 11:44:22 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Thu, 19 Nov 2009 11:44:22 +0100 (CET) Subject: [KSS-checkins] r69430 - in kukit/kukit.js/trunk: . doc Message-ID: <20091119104422.EDD661680AF@codespeak.net> Author: gotcha Date: Thu Nov 19 11:44:22 2009 New Revision: 69430 Added: kukit/kukit.js/trunk/CHANGES.txt - copied, changed from r69425, kukit/kukit.js/trunk/doc/HISTORY.txt Removed: kukit/kukit.js/trunk/doc/HISTORY.txt Log: * move to CHANGES to be nice with zest.releaser * rest cosmetics Copied: kukit/kukit.js/trunk/CHANGES.txt (from r69425, kukit/kukit.js/trunk/doc/HISTORY.txt) ============================================================================== --- kukit/kukit.js/trunk/doc/HISTORY.txt (original) +++ kukit/kukit.js/trunk/CHANGES.txt Thu Nov 19 11:44:22 2009 @@ -1,8 +1,8 @@ Changelog for kukit.js +====================== - (name of developer listed in brackets) - -kukit.js - 1.5dev Unreleased +1.5dev (Unreleased) +------------------- - ... @@ -41,7 +41,8 @@ an action was regitered twice with the same name. [ree] -kukit.js - 1.4 Released 2008-04-21 +1.4 (2008-04-21) +---------------- - Updated base2-dom-fp.js with newest version. [ree] @@ -60,8 +61,6 @@ This fixes breakage on FireFox 3. [ree] -kukit.js - 1.4dev Unreleased - - refactor the value provider registry to use a single registry in place of 3. This will enable to define value @@ -132,7 +131,8 @@ parameters as strings. [ree, jvloothuis] -kukit.js - 1.2 Released 2007-08-17 +1.2 (2007-08-17) +---------------- - Move ;;; markers to first columns. [gotcha] Deleted: /kukit/kukit.js/trunk/doc/HISTORY.txt ============================================================================== --- /kukit/kukit.js/trunk/doc/HISTORY.txt Thu Nov 19 11:44:22 2009 +++ (empty file) @@ -1,153 +0,0 @@ -Changelog for kukit.js - - (name of developer listed in brackets) - -kukit.js - 1.5dev Unreleased - - - ... - -MISSING, PLEASE MERGE! - Add improved demos - (insertions in tbody is not included : that demo is - still broken in IE6) - [gotcha] - - - fix RequestManager's handling of the sendingTimeout parameter, - to enable setting the timeout globally from custom code, if needed. - [ree] - - - Added blur action (which, as it doesn't need a parameter, requires the - deactivation of the args.length check in selectorreg.js.) - [simon] - - - Fix or improve calculateAbsoluteURL to handle absolute - and relative urls correctly, as well as get rid of the - double slash (//) issue. - It also satisfies the tests kss_url_param and - kss_url_param_multiprop, that now work as intended, - with previous workaround removed. - [ree] - - - Replaced license header of third-party sarissa.js - to workaround the license detection of ohloh. - sarissa.js is redistributed under GNU GPL v2 - as previously. - [ree] - - - Fix cssQuery-compat.js to use newest base2 api. - [ree] - - - Fix a typo that caused an exception instead of - logging an error message, this happened when - an action was regitered twice with the same name. - [ree] - -kukit.js - 1.4 Released 2008-04-21 - - - Updated base2-dom-fp.js with newest version. - [ree] - - - fix setKssAttribute action and command - (closes bug 8048 from plone.org) - [gotcha] - - - fix action-cancel - [gotcha] - - - disabled input values should not be submitted with the form - [gotcha] - - - Updated base2-dom-fp.js with newest version. - This fixes breakage on FireFox 3. - [ree] - -kukit.js - 1.4dev Unreleased - - - refactor the value provider registry to use - a single registry in place of 3. - This will enable to define value - providers that recieve non-string parameters - like a node selection. - [ree] - - - Remove previously deprecated form() and - currentForm() value providers from normal - action parameters (remark: they should - be used with kssSelector.) - They now give a parsing error. - [ree] - - - Implement multiproperties in - action-client and action-server - [ree] - - - add url() and alias() providers - [ree] - - - Use functions in token table instead of code strings - that were evaluated. 'eval' is very slow. - [gotcha] - - - Refactor code towards module and class closures. - [gotcha] - - - Fix multiple selection form fields marshalling on Safari - (fixes #22 in kssproject) and on IE. - - - Fix multiple selection form fields - marshalling on Safari - (fixes #22 in kssproject) - and on IE. - [ree] - - - Fix error fallback handling - [ree] - - - Implement loglevels based on cookies - Add cookie handling code to kss.dom - Change logging on FireBug to avoid line info in debug - level messages - [ree] - - - Implement event binding based on the ids fetched - dynamically from the dom, by value providers. - [ree] - - - Store some data on HTML nodes for FireKiss - [gotcha] - - - Enhance javascript exception, they now properly show - the place where the exception generated, and also the - annotated error reasons of kss. - [jvloothuis, ree] - - - Allow multiple selectors separated with commas for a single - set of property in a rule - [gotcha, laz, jfroche] - - - Changed kukit payload to encode HTML content of CDATA. - This was necessary because us a supposed bug in FF, that - prevented us to use base2 (xpath selection did not work - on inserted elements, due to namespace issues.) - Get rid of forceToDom, make sure all plugins accept html - parameters as strings. - [ree, jvloothuis] - -kukit.js - 1.2 Released 2007-08-17 - - - Move ;;; markers to first columns. - [gotcha] - - - Fix credits. - [gotcha] - - - Fix identifiers to have coherent styling (CamelCase). - [gotcha] - - - Some refactoring to allow Firekiss plugin. - [gotcha] - - - Fit code on 80 columns. - [gotcha] - - - Cleaned up error messages. - [gotcha] From gotcha at codespeak.net Fri Nov 27 12:59:03 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 12:59:03 +0100 (CET) Subject: [KSS-checkins] r69681 - in kukit/kukit.js/branch/1.4: doc kukit Message-ID: <20091127115903.985161680F9@codespeak.net> Author: gotcha Date: Fri Nov 27 12:59:02 2009 New Revision: 69681 Modified: kukit/kukit.js/branch/1.4/doc/HISTORY.txt kukit/kukit.js/branch/1.4/kukit/plugin.js kukit/kukit.js/branch/1.4/kukit/requestmanager.js Log: add SetActionServerTimeout client action Modified: kukit/kukit.js/branch/1.4/doc/HISTORY.txt ============================================================================== --- kukit/kukit.js/branch/1.4/doc/HISTORY.txt (original) +++ kukit/kukit.js/branch/1.4/doc/HISTORY.txt Fri Nov 27 12:59:02 2009 @@ -4,7 +4,8 @@ kukit.js - 1.4dev Unreleased - - ... + - add SetActionServerTimeout client action + [gotcha, jfroche] kukit.js - 1.4.7 Released 2009-05-11 Modified: kukit/kukit.js/branch/1.4/kukit/plugin.js ============================================================================== --- kukit/kukit.js/branch/1.4/kukit/plugin.js (original) +++ kukit/kukit.js/branch/1.4/kukit/plugin.js Fri Nov 27 12:59:02 2009 @@ -1040,6 +1040,14 @@ kukit.commandsGlobalRegistry.registerFromAction('toggleClass', kukit.cr.makeSelectorCommand); +kukit.actionsGlobalRegistry.register('setActionServerTimeout', function (oper) { +;;; oper.componentName = '[setActionServerTimeout] action'; + oper.evaluateParameters(['value'], {}, '', true); + oper.evalInt('value'); + var value = oper.parms.value; + kukit.engine.requestManager.sendingTimeout = value; +}); + /* * XXX Compatibility settings for old command names. * These will be removed as soon as all current use cases are changed. Modified: kukit/kukit.js/branch/1.4/kukit/requestmanager.js ============================================================================== --- kukit/kukit.js/branch/1.4/kukit/requestmanager.js (original) +++ kukit/kukit.js/branch/1.4/kukit/requestmanager.js Fri Nov 27 12:59:02 2009 @@ -365,6 +365,8 @@ // Default value of timeout timeout = this.sendingTimeout; } +;;; var msg = 'Request timeout [' + timeout + '] milliseconds.'; +;;; kukit.logDebug(msg); var item = new _RequestItem(sendHook, url, timeoutHook, timeout, now); // Start timing the item immediately From gotcha at codespeak.net Fri Nov 27 13:04:18 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:04:18 +0100 (CET) Subject: [KSS-checkins] r69682 - in kukit/kss.core/branch/1.4/kss/core/plugins/core/demo: . selenium_tests Message-ID: <20091127120418.5EB421680FD@codespeak.net> Author: gotcha Date: Fri Nov 27 13:04:17 2009 New Revision: 69682 Modified: kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/demoview.py kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/error_handling.kss kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/error_handling.pt kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/selenium_tests/error_handling.html Log: rest cleanup Modified: kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/demoview.py ============================================================================== --- kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/demoview.py (original) +++ kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/demoview.py Fri Nov 27 13:04:17 2009 @@ -17,6 +17,7 @@ from kss.core import KSSView, force_unicode, KSSExplicitError, kssaction import datetime +import time class KSSDemoView(KSSView): @@ -54,7 +55,7 @@ mapping['animals']=['dog', 'cat', 'cow'] mapping['machines']=['computer', 'car', 'airplane'] # XXX Note that originally we just used replaceInnerHTML to just put - # the options inside the select, however this is principally broken + # the options inside the select, however this is principally broken # on IE due to an IE bug. Microsoft has confirmed the bug but is not # giving information on whether it has or it will ever be fixed. # For further info, see http://support.microsoft.com/default.aspx?scid=kb;en-us;276228 @@ -74,29 +75,29 @@ """ returns the current time """ self.getCommandSet('core').replaceInnerHTML('div#update-area', "

%s

" % str(datetime.datetime.now())) return self.render() - + def getInputField(self, value): 'Inserts the value as entered into an input field' # We need to make unicode. But on Z2 we receive utf-8, on Z3 unicode value = force_unicode(value, 'utf') - self.getCommandSet('core').replaceInnerHTML('div#text', + self.getCommandSet('core').replaceInnerHTML('div#text', '
' \ '' ) return self.render() - + def saveText(self, value): 'Inserts the value to display it on the page' # We need to make unicode. But on Z2 we receive utf-8, on Z3 unicode value = force_unicode(value, 'utf') self.getCommandSet('core').replaceInnerHTML('div#text', value+'') return self.render() - + def expandSubTree(self, value, xvalue): 'Expands given subtree' self.getCommandSet('core').replaceInnerHTML('#text', 'works, expand %s (xhtml attr: %s)' % (value, xvalue)) return self.render() - + def collapseSubTree(self, value, xvalue): 'Collapses given subtree' self.getCommandSet('core').replaceInnerHTML('#text', 'works, collapse %s (xhtml attr: %s)' % (value, xvalue)) @@ -113,7 +114,7 @@ sel = self.getSelector('xpath', "//P[@id='xpath']/following-sibling::*[position()=1]") self.getCommandSet('core').deleteNode(sel) return self.render() - + def clickedButton(self, id): 'Show status of the button clicked' self.getCommandSet('core').replaceInnerHTML('#update-status', "

Button %s clicked. %s

" % (id, datetime.datetime.now())) @@ -158,17 +159,15 @@ raise KSSExplicitError, 'Explicit error raised.' elif act == 'empty': # Just do nothing, we want to return a response with no commands. - # This is valid behaviour, should raise no error, however + # This is valid behaviour, should raise no error, however # gives a warning in the kukit log. pass - ## XXX This is commented out by default, but you can try this on your own - ## server, together with the timeout buttons in the page template timeout buttons in the page template. - ## - #elif act == 'timeout': - # # Wait longer then timeout, this is currently 4 s - # time.sleep(6.0); - # # the next reply will never arrive. - # self.replaceInnerHTML('#update-status', u'Timeout response, button %s clicked. %s' % (id, datetime.datetime.now())) + elif act == 'timeout': + # Wait longer then timeout, this is set by the stylesheet with + # setActionServerTimeout client action + time.sleep(2.0); + # the next reply will never arrive. + self.getCommandSet('core').replaceInnerHTML('#update-status', u'Not arrived') else: # act = noerror: standard response. self.getCommandSet('core').replaceInnerHTML('#update-status', u'Normal response, button %s clicked. %s' % (id, datetime.datetime.now())) @@ -265,4 +264,3 @@ self.getCommandSet('core').setAttribute( '#character-attr-output', 'title', 'before ]]> after') return self.render() - Modified: kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/error_handling.kss ============================================================================== --- kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/error_handling.kss (original) +++ kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/error_handling.kss Fri Nov 27 13:04:17 2009 @@ -1,6 +1,6 @@ -.clickable:click { +.nothandled:click { evt-click-preventdefault: true; action-server: errTest; errTest-id: nodeAttr(id); @@ -13,11 +13,30 @@ .handled:click { + evt-click-preventdefault: true; + action-server: errTest; + errTest-id: nodeAttr(id); + errTest-act: kssAttr(act); errTest-error: insertHTMLAsLastChild; insertHTMLAsLastChild-kssSelector: #logger; insertHTMLAsLastChild-html: "Error handler activated."; } +.timeout:click { + evt-click-preventdefault: true; + action-client: replaceInnerHTML; + replaceInnerHTML-kssSelector: #update-status; + replaceInnerHTML-html: "Test timeout"; + action-client: setActionServerTimeout; + setActionServerTimeout-value: 100; + action-server: errTest; + errTest-id: nodeAttr(id); + errTest-act: kssAttr(act); + errTest-error: insertHTMLAsLastChild; + insertHTMLAsLastChild-kssSelector: #logger; + insertHTMLAsLastChild-html: "Timeout: error handler activated."; +} + /* Spinner control */ Modified: kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/error_handling.pt ============================================================================== --- kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/error_handling.pt (original) +++ kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/error_handling.pt Fri Nov 27 13:04:17 2009 @@ -34,13 +34,17 @@ on the server.

The buttons in the first row have no error handlers.

- - - -

The buttons in the second row have individual error handlers.

@@ -56,9 +60,17 @@ value="Explicit error" />

- You can also try suspending your server process and start generating timed out requests. - Timed out responses are also handled like ones arriving with error. - The timeout period is by default 8 s now.

+ Timed out are also handled like errors. + The timeout period is by default to 8000 ms now.

+

The timeout is set to 100 ms on the button hereunder. Click calls an + action-server that explicitely waits for 2000ms. In other words, the + timeout is triggered.

+

+

+ +

In addition, the request queue manager queues up the outgoing responses and maximizes their number (currently in 4): click like crazy on the buttons and you will see that Modified: kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/selenium_tests/error_handling.html ============================================================================== --- kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/selenium_tests/error_handling.html (original) +++ kukit/kss.core/branch/1.4/kss/core/plugins/core/demo/selenium_tests/error_handling.html Fri Nov 27 13:04:17 2009 @@ -153,7 +153,41 @@ logger Error handler activated. - + + click + css=#log-reset + + + + click + with_timeout + + + + waitForText + logger + Timeout: error handler activated. + + + assertText + logger + Timeout: error handler activated. + + + pause + 3000 + + + + waitForText + update-status + Test timeout + + + assertText + update-status + Test timeout + From gotcha at codespeak.net Fri Nov 27 13:04:36 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:04:36 +0100 (CET) Subject: [KSS-checkins] r69683 - kukit/kukit.js/branch/1.4/doc Message-ID: <20091127120436.68A3E1680FD@codespeak.net> Author: gotcha Date: Fri Nov 27 13:04:35 2009 New Revision: 69683 Modified: kukit/kukit.js/branch/1.4/doc/HISTORY.txt Log: rest cleanup Modified: kukit/kukit.js/branch/1.4/doc/HISTORY.txt ============================================================================== --- kukit/kukit.js/branch/1.4/doc/HISTORY.txt (original) +++ kukit/kukit.js/branch/1.4/doc/HISTORY.txt Fri Nov 27 13:04:35 2009 @@ -1,35 +1,42 @@ Changelog for kukit.js - - (name of developer listed in brackets) +====================== -kukit.js - 1.4dev Unreleased +1.4.8 (unreleased) +------------------ - add SetActionServerTimeout client action [gotcha, jfroche] -kukit.js - 1.4.7 Released 2009-05-11 +1.4.7 (2009-05-11) +------------------ - - prepare release - [ree] + - Fix kukit payload in favor of IE6 XP SP3. + xmlns="http://www.kukit.org/commands/1.1" removed + from kukit tag as it breaks IE6 XP SP3. + [gotcha] -kukit.js - 1.4.6 Released 2009-04-10 +1.4.6 (2009-04-10) +------------------ - fix RequestManager's handling of the sendingTimeout parameter, to enable setting the timeout globally from custom code, if needed. [ree] -kukit.js - 1.4.5 Released 2009-02-02 +1.4.5 (2009-02-02) +------------------ - Added blur action (which, as it doesn't need a parameter, requires the deactivation of the args.length check in selectorreg.js.) [simon] -kukit.js - 1.4.4 Released 2009-01-05 +1.4.4 (2009-01-05) +------------------ - missing backports and fixes [ree] -kukit.js - 1.4.3 Released 2008-08-18 +1.4.3 (2008-08-18) +------------------ - Fix or improve calculateAbsoluteURL to handle absolute and relative urls correctly, as well as get rid of the @@ -48,19 +55,22 @@ - Fix cssQuery-compat.js to use newest base2 api. [ree] -kukit.js - 1.4.2 Released 2008-07-06 +1.4.2 (2008-07-06) +------------------ - prepare release [ree] -kukit.js - 1.4.1 Released 2008-06-02 +1.4.1 (2008-06-02) +------------------ - Fix a typo that caused an exception instead of logging an error message, this happened when an action was regitered twice with the same name. [ree] -kukit.js - 1.4 Released 2008-04-21 +1.4 (2008-04-21) +---------------- - Updated base2-dom-fp.js with newest version. [ree] @@ -77,7 +87,8 @@ - fix action-cancel [gotcha] -kukit.js - 1.4-rc1 Released 2008-03-25 +1.4-rc1 (2008-03-25) +-------------------- - disabled input values should not be submitted with the form [gotcha] @@ -86,7 +97,8 @@ This fixes breakage on FireFox 3. [ree] -kuki.js - 1.4-alpha1 Released 2008-03-09 +1.4-alpha1 (2008-03-09) +----------------------- - refactor the value provider registry to use a single registry in place of 3. @@ -158,7 +170,8 @@ parameters as strings. [ree, jvloothuis] -kukit.js - 1.2 Released 2007-08-17 +1.2 (2007-08-17) +---------------- - Move ;;; markers to first columns. [gotcha] From gotcha at codespeak.net Fri Nov 27 13:06:29 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:06:29 +0100 (CET) Subject: [KSS-checkins] r69684 - in kukit/kukit.js/branch/1.4: . doc Message-ID: <20091127120629.6B1241680FD@codespeak.net> Author: gotcha Date: Fri Nov 27 13:06:28 2009 New Revision: 69684 Added: kukit/kukit.js/branch/1.4/CHANGES.txt - copied unchanged from r69683, kukit/kukit.js/branch/1.4/doc/HISTORY.txt Removed: kukit/kukit.js/branch/1.4/doc/HISTORY.txt Log: move to CHANGES to be nice with zest.releaser Deleted: /kukit/kukit.js/branch/1.4/doc/HISTORY.txt ============================================================================== --- /kukit/kukit.js/branch/1.4/doc/HISTORY.txt Fri Nov 27 13:06:28 2009 +++ (empty file) @@ -1,192 +0,0 @@ -Changelog for kukit.js -====================== - -1.4.8 (unreleased) ------------------- - - - add SetActionServerTimeout client action - [gotcha, jfroche] - -1.4.7 (2009-05-11) ------------------- - - - Fix kukit payload in favor of IE6 XP SP3. - xmlns="http://www.kukit.org/commands/1.1" removed - from kukit tag as it breaks IE6 XP SP3. - [gotcha] - -1.4.6 (2009-04-10) ------------------- - - - fix RequestManager's handling of the sendingTimeout parameter, - to enable setting the timeout globally from custom code, if needed. - [ree] - -1.4.5 (2009-02-02) ------------------- - - - Added blur action (which, as it doesn't need a parameter, requires the - deactivation of the args.length check in selectorreg.js.) - [simon] - -1.4.4 (2009-01-05) ------------------- - - - missing backports and fixes - [ree] - -1.4.3 (2008-08-18) ------------------- - - - Fix or improve calculateAbsoluteURL to handle absolute - and relative urls correctly, as well as get rid of the - double slash (//) issue. - It also satisfies the tests kss_url_param and - kss_url_param_multiprop, that now work as intended, - with previous workaround removed. - [ree] - - - Replaced license header of third-party sarissa.js - to workaround the license detection of ohloh. - sarissa.js is redistributed under GNU GPL v2 - as previously. - [ree] - - - Fix cssQuery-compat.js to use newest base2 api. - [ree] - -1.4.2 (2008-07-06) ------------------- - - - prepare release - [ree] - -1.4.1 (2008-06-02) ------------------- - - - Fix a typo that caused an exception instead of - logging an error message, this happened when - an action was regitered twice with the same name. - [ree] - -1.4 (2008-04-21) ----------------- - - - Updated base2-dom-fp.js with newest version. - [ree] - - - Add improved demos - (insertions in tbody is not included : that demo is - still broken in IE6) - [cryu, jone, gotcha] - - - fix setKssAttribute action and command - (closes bug 8048 from plone.org) - [gotcha] - - - fix action-cancel - [gotcha] - -1.4-rc1 (2008-03-25) --------------------- - - - disabled input values should not be submitted with the form - [gotcha] - - - Updated base2-dom-fp.js with newest version. - This fixes breakage on FireFox 3. - [ree] - -1.4-alpha1 (2008-03-09) ------------------------ - - - refactor the value provider registry to use - a single registry in place of 3. - This will enable to define value - providers that recieve non-string parameters - like a node selection. - [ree] - - - Remove previously deprecated form() and - currentForm() value providers from normal - action parameters (remark: they should - be used with kssSelector.) - They now give a parsing error. - [ree] - - - Implement multiproperties in - action-client and action-server - [ree] - - - add url() and alias() providers - [ree] - - - Use functions in token table instead of code strings - that were evaluated. 'eval' is very slow. - [gotcha] - - - Refactor code towards module and class closures. - [gotcha] - - - Fix multiple selection form fields marshalling on Safari - (fixes #22 in kssproject) and on IE. - - - Fix multiple selection form fields - marshalling on Safari - (fixes #22 in kssproject) - and on IE. - [ree] - - - Fix error fallback handling - [ree] - - - Implement loglevels based on cookies - Add cookie handling code to kss.dom - Change logging on FireBug to avoid line info in debug - level messages - [ree] - - - Implement event binding based on the ids fetched - dynamically from the dom, by value providers. - [ree] - - - Store some data on HTML nodes for FireKiss - [gotcha] - - - Enhance javascript exception, they now properly show - the place where the exception generated, and also the - annotated error reasons of kss. - [jvloothuis, ree] - - - Allow multiple selectors separated with commas for a single - set of property in a rule - [gotcha, laz, jfroche] - - - Changed kukit payload to encode HTML content of CDATA. - This was necessary because us a supposed bug in FF, that - prevented us to use base2 (xpath selection did not work - on inserted elements, due to namespace issues.) - Get rid of forceToDom, make sure all plugins accept html - parameters as strings. - [ree, jvloothuis] - -1.2 (2007-08-17) ----------------- - - - Move ;;; markers to first columns. - [gotcha] - - - Fix credits. - [gotcha] - - - Fix identifiers to have coherent styling (CamelCase). - [gotcha] - - - Some refactoring to allow Firekiss plugin. - [gotcha] - - - Fit code on 80 columns. - [gotcha] - - - Cleaned up error messages. - [gotcha] From gotcha at codespeak.net Fri Nov 27 13:13:09 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:13:09 +0100 (CET) Subject: [KSS-checkins] r69685 - kukit/kss.core/branch/1.4/docs Message-ID: <20091127121309.1F04C1680F9@codespeak.net> Author: gotcha Date: Fri Nov 27 13:13:08 2009 New Revision: 69685 Modified: kukit/kss.core/branch/1.4/docs/HISTORY.txt Log: rest cosmetics Modified: kukit/kss.core/branch/1.4/docs/HISTORY.txt ============================================================================== --- kukit/kss.core/branch/1.4/docs/HISTORY.txt (original) +++ kukit/kss.core/branch/1.4/docs/HISTORY.txt Fri Nov 27 13:13:08 2009 @@ -1,30 +1,36 @@ Changelog for kss.core +====================== - (name of developer listed in brackets) -kss.core - 1.4dev Unreleased +1.4.8 (unreleased) +------------------ - - ... + - Add timeout tests in error handling demo + [gotcha, jrfroche] -kss.core - 1.4.7 Released 2009-05-11 +1.4.7 (2009-05-11) +------------------ - Fix kukit payload in favor of IE6 XP SP3. xmlns="http://www.kukit.org/commands/1.1" removed from kukit tag as it breaks IE6 XP SP3. [gotcha] -kss.core - 1.4.6 Released 2009-04-10 +1.4.6 (2009-04-10) +------------------ - fix RequestManager's handling of the sendingTimeout parameter, to enable setting the timeout globally from custom code, if needed. [ree] -kss.core - 1.4.5 Released 2009-02-02 +1.4.5 (2009-02-02) +------------------ - Added kss.blur action. [simon] -kss.core - 1.4.4 Released 2009-01-05 +1.4.4 (2009-01-05) +------------------ - Fix the ca_cancel (action-cancel) test that was broken on IE7 because it contained the same id more times. @@ -42,7 +48,8 @@ etc. are available. [wichert] -kss.core - 1.4.3 Released 2008-08-18 +1.4.3 (2008-08-18) +------------------ - Replaced license header of third-party sarissa.js to workaround the license detection of ohloh. @@ -53,13 +60,15 @@ - Fix cssQuery-compat.js to use newest base2 api. [ree] -kss.core - 1.4.2 Released 2008-07-06 +1.4.2 (2008-07-06) +------------------ - Include meta.zcml from configure.zcml, in order to allow easier loading of dependent zcml during unittests [gotcha, jfroche] -kss.core - 1.4.1 Released 2008-06-02 +1.4.1 (2008-06-02) +------------------ - Add @@kss_devel_mode/needs_old_cssquery, to enable a workaround for Safari 3.1 to work. @@ -70,7 +79,8 @@ an action was regitered twice with the same name. [ree] -kss.core - 1.4 Released 2008-04-21 +1.4 (2008-04-21) +---------------- - Updated base2-dom-fp.js with newest version. [ree] @@ -91,7 +101,8 @@ - fix action-cancel [gotcha] -kss.core - 1.4-rc1 Released 2008-03-25 +1.4-rc1 (2008-03-25) +-------------------- - disabled input values should not be submitted with the form [gotcha] @@ -100,7 +111,8 @@ This fixes breakage on FireFox 3. [ree] -kss.core - 1.4-alpha1 Released 2008-03-09 +1.4-alpha1 (2008-03-09) +----------------------- - refactor the value provider registry to use a single registry in place of 3. @@ -170,12 +182,14 @@ parameters as strings. [ree] -kss.core - 1.2 Released 2007-08-17 +1.2 (2007-08-17) +---------------- - Refactored js code. [gotcha] -kss.core - 1.2-rc2 Released 2007-07-27 +1.2-rc2 (2007-07-27) +-------------------- - Prepare for release. [ree] @@ -186,13 +200,15 @@ - fix form marshalling [gotcha] -kss.core - 1.2-rc1.1 +1.2-rc1.1 +--------- - Prepare for release. Identical with 1.2-rc1, just created for consistent versions. [ree] -kss.core - 1.2-rc1 +1.2-rc1 +------- - Deprecated addClassName, removeClassName actions and commands in favour of addClass and removeClass. @@ -244,7 +260,8 @@ events in a binder instance, matching the need of the events. [ree] -kss.core - 1.2-beta2 +1.2-beta2 +--------- - Make the binding of the nodes together in one batch [ree] @@ -253,12 +270,14 @@ and deprecation [ree] -kss.core - 1.2-beta1 +1.2-beta1 +--------- - Prepare for release [ree] -kss.core - 1.2-alpha2 +1.2-alpha2 +---------- - Merge in Philikon's refactorization Move docs to doc/ From gotcha at codespeak.net Fri Nov 27 13:13:43 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:13:43 +0100 (CET) Subject: [KSS-checkins] r69686 - in kukit/kss.core/branch/1.4: . docs Message-ID: <20091127121343.D6F811680F9@codespeak.net> Author: gotcha Date: Fri Nov 27 13:13:43 2009 New Revision: 69686 Added: kukit/kss.core/branch/1.4/CHANGES.txt - copied unchanged from r69685, kukit/kss.core/branch/1.4/docs/HISTORY.txt Removed: kukit/kss.core/branch/1.4/docs/HISTORY.txt Log: move to CHANGES to be nice with zest.releaser Deleted: /kukit/kss.core/branch/1.4/docs/HISTORY.txt ============================================================================== --- /kukit/kss.core/branch/1.4/docs/HISTORY.txt Fri Nov 27 13:13:43 2009 +++ (empty file) @@ -1,288 +0,0 @@ -Changelog for kss.core -====================== - - -1.4.8 (unreleased) ------------------- - - - Add timeout tests in error handling demo - [gotcha, jrfroche] - -1.4.7 (2009-05-11) ------------------- - - - Fix kukit payload in favor of IE6 XP SP3. - xmlns="http://www.kukit.org/commands/1.1" removed - from kukit tag as it breaks IE6 XP SP3. - [gotcha] - -1.4.6 (2009-04-10) ------------------- - - - fix RequestManager's handling of the sendingTimeout parameter, - to enable setting the timeout globally from custom code, if needed. - [ree] - -1.4.5 (2009-02-02) ------------------- - - - Added kss.blur action. - [simon] - -1.4.4 (2009-01-05) ------------------- - - - Fix the ca_cancel (action-cancel) test that was broken - on IE7 because it contained the same id more times. - [ree] - - - Fix or improve calculateAbsoluteURL to handle absolute - and relative urls correctly, as well as get rid of the - double slash (//) issue. - It also satisfies the tests kss_url_param and - kss_url_param_multiprop, that now work as intended, - with previous workaround removed. - [ree] - - - Use the real request in the json logic so skin layers, request parmeters, - etc. are available. - [wichert] - -1.4.3 (2008-08-18) ------------------- - - - Replaced license header of third-party sarissa.js - to workaround the license detection of ohloh. - sarissa.js is redistributed under GNU GPL v2 - as previously. - [ree] - - - Fix cssQuery-compat.js to use newest base2 api. - [ree] - -1.4.2 (2008-07-06) ------------------- - - - Include meta.zcml from configure.zcml, in order to - allow easier loading of dependent zcml during unittests - [gotcha, jfroche] - -1.4.1 (2008-06-02) ------------------- - - - Add @@kss_devel_mode/needs_old_cssquery, to enable a workaround - for Safari 3.1 to work. - [ree] - - - Fix a typo that caused an exception instead of - logging an error message, this happened when - an action was regitered twice with the same name. - [ree] - -1.4 (2008-04-21) ----------------- - - - Updated base2-dom-fp.js with newest version. - [ree] - - - Change concatresource to accept resources with - "application/x-javascript" content type only - [ree] - - - Add improved demos - (insertions in tbody is not included : that demo is - still broken in IE6) - [cryu, jone, gotcha] - - - fix setKssAttribute action and command - (closes bug 8048 from plone.org) - [gotcha] - - - fix action-cancel - [gotcha] - -1.4-rc1 (2008-03-25) --------------------- - - - disabled input values should not be submitted with the form - [gotcha] - - - Updated base2-don-fp.js with newest version. - This fixes breakage on FireFox 3. - [ree] - -1.4-alpha1 (2008-03-09) ------------------------ - - - refactor the value provider registry to use - a single registry in place of 3. - This will enable to define value - providers that recieve non-string parameters - like a node selection. - [ree] - - - Remove previously deprecated form() and - currentForm() value providers from normal - action parameters (remark: they should - be used with kssSelector.) - They now give a parsing error. - [ree] - - - Implement multiproperties in - action-client and action-server - [ree] - - - add url() and alias() providers - [ree] - - - Change develui.css to have its style inline with - kssproject.org. - [gotcha] - - - Add some tests for binder classes. - [ree] - - - Improve some of the demos to make them Selenium testable - under both dev and prod mode, fix their tests. - [gotcha] - - - Use functions in token table instead of code strings - that were evaluated. 'eval' is very slow. - in kukit.js [gotcha] - - - Refactor code towards module and class closures. - in kukit.js [gotcha] - - - Fix multiple selection form fields - marshalling on Safari - (fixes #22 in kssproject) - and on IE. - [ree] - - - Fix error fallback handling - [ree] - - - Implement loglevels based on cookies - Add handling of log levels to the kss mode view - [ree] - - - Moved the core demos to this package from kss.demo. - They are now located under the core plugin. - [ree] - - - Implement event binding based on the ids fetched - dynamically from the dom, by value providers. - [ree] - - - Changed kukit payload to encode HTML content of CDATA. - This was necessary because us a supposed bug in FF, that - prevented us to use base2 (xpath selection did not work - on inserted elements, due to namespace issues.) - Get rid of forceToDom, make sure all plugins accept html - parameters as strings. - [ree] - -1.2 (2007-08-17) ----------------- - - - Refactored js code. - [gotcha] - -1.2-rc2 (2007-07-27) --------------------- - - - Prepare for release. - [ree] - - - when attrname is kssattr:xxx, IE chokes on certain nodes - [gotcha] - - - fix form marshalling - [gotcha] - -1.2-rc1.1 ---------- - - - Prepare for release. - Identical with 1.2-rc1, just created for consistent versions. - [ree] - -1.2-rc1 -------- - - - Deprecated addClassName, removeClassName actions and - commands in favour of addClass and removeClass. - Deprecated "name" and "classname" parameter in addClass, - removeClass, toggleClass actions and commands in favour of - "value". - [ree] - - - implement new packing directives and two disctint - versions of the javascript (development and production), - this is achieved from javascript with the ;;; marker - Also add the @@kss_devel_mode/ui view for changing - the development mode from the browser. - [ree] - - - Add the passnode selector that can be used to access - the value of a default parm passed programmatically - from the event (via makeActionOper) - [ree] - - - Add action moveNodeAsLastChild - [ree] - - - Death to Azax (... long live KSS)! - Removing last traces of the old name from the sources - [gotcha] - - - Changed querying for css selectors to base2 instead of - cssQuery. Base2 is supposed to be a lot faster than - the old cssQuery. Usage is alternating, if base2 is - present that one is used, otherwise it uses the old - cssQuery code which stays the default. - [jvloothuis, ree] - - - Add moveNodeBefore action (presumably missing) - [ree] - - - Refactor load event, separate iload and load events. - The new event binder handles both events together. A - new parameter, evt-iload-autodetect is introduced, if - this is false we don't use detection but the iframe - must cooperate on telling us wnen we are done. There - is deprecation warning issued for the load events, if - bound on an iframe, in which case an iload event must - be used. - [ree] - - - refactor event binding to allow different iterators to bind - events in a binder instance, matching the need of the events. - [ree] - -1.2-beta2 ---------- - - - Make the binding of the nodes together in one batch - [ree] - - - added kssSubmitForm action parameter - and deprecation - [ree] - -1.2-beta1 ---------- - - - Prepare for release - [ree] - -1.2-alpha2 ----------- - - - Merge in Philikon's refactorization - Move docs to doc/ - [ree] - - - Initial package structure. - [zopeskel] - From gotcha at codespeak.net Fri Nov 27 13:37:50 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:37:50 +0100 (CET) Subject: [KSS-checkins] r69688 - in kukit/kss.core/branch/1.4: . docs Message-ID: <20091127123750.465361680F9@codespeak.net> Author: gotcha Date: Fri Nov 27 13:37:49 2009 New Revision: 69688 Modified: kukit/kss.core/branch/1.4/docs/NEWS.txt kukit/kss.core/branch/1.4/setup.py Log: * better long description in setup.py * document new action Modified: kukit/kss.core/branch/1.4/docs/NEWS.txt ============================================================================== --- kukit/kss.core/branch/1.4/docs/NEWS.txt (original) +++ kukit/kss.core/branch/1.4/docs/NEWS.txt Fri Nov 27 13:37:49 2009 @@ -1,101 +1,29 @@ -Known problems --------------- - -Safari 3.1 fails to run with KSS. The problem is with base2, -that fails selecting any selector that contains capital letters. - -Example for header of browser version that experiences the problem:: - - User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; en-us) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13 - - -Old cssQuery.js works for this browser, so a workaround is to ensure -that Safari 3.1 gets the cssQuery.js resource and not the base2. - -For example, in ResourceRegistries, the following changes are needed: - -Resource: cssQuery.js - -- Enable -- Change condition to: here/@@kss_devel_mode/needs_old_cssquery - -Resource: ++resource++base2-dom-fp.js - -- Change condition to: not: here/@@kss_devel_mode/needs_old_cssquery -This enables the correct behaviour, since KSS always uses the -library it founds (in the priority of base2 and the old cssquery). - - -Deprecated in kss 1.4 ---------------------- - -form() and currentForm() in normal value providers -"""""""""""""""""""""""""""""""""""""""""""""""""" - -currentForm() -''''''''''''' +New in kss 1.4.8 +---------------- +- new client action ``setActionServerTimeout`` + + It allows to setup timeout separately for each server action. + You call it in the stylesheet just before the server action. + It has a ``value`` parameter where you specify the timeout in + milliseconds:: + + div.timeout:click { + action-client: setActionServerTimeout; + setActionServerTimeout-value: 10000; + action-server: bla; + } + + You can also use it to change the global default timeout value at body + load time:: + + body:load { + action-client: setActionServerTimeout; + setActionServerTimeout-value: 5000; + } -You must change rules that use currentForm() in a normal value provider:: - - action-server: myServerAction; - myServerAction-data: currentForm(); - -to:: - - action-server: myServerAction currentForm(); - -Or, if you want to keep compatibility with kss 1.2:: - - action-server: myServerAction; - myServerAction-kssSubmitForm: currentForm(); - - -form() -'''''' - -Similarly, for form(), you must change the following:: - - action-server: myServerAction; - myServerAction-data: form(); - -to:: - - action-server: myServerAction form(); - -Or, if you want to keep compatibility with kss 1.2:: - - action-server: myServerAction; - myServerAction-kssSubmitForm: form(); - - -Necessary server side changes -''''''''''''''''''''''''''''' - -On the server side, the method that received the form as a dictionary in one -parameter, must define the values directly in the method signature, or access -them from the form directly. - -So the following old code:: - - def method(self, data): - field1 = data['field1'] - field2 = data.get('field2', None) - -must be changed in one of the two ways shown in the following examples:: - - def method(self, field1, field2=None): - ... - -An alternate way is to get them from the request:: - - def method(self): - request = self.request - field1 = request.form['field1'] - field2 = request.form.get('field2', None) - New in kss 1.4 -------------- @@ -204,4 +132,100 @@ - fix action-cancel +Deprecated in kss 1.4 +--------------------- + +form() and currentForm() in normal value providers +"""""""""""""""""""""""""""""""""""""""""""""""""" + +currentForm() +''''''''''''' + + +You must change rules that use currentForm() in a normal value provider:: + + action-server: myServerAction; + myServerAction-data: currentForm(); + +to:: + + action-server: myServerAction currentForm(); + +Or, if you want to keep compatibility with kss 1.2:: + + action-server: myServerAction; + myServerAction-kssSubmitForm: currentForm(); + + +form() +'''''' + +Similarly, for form(), you must change the following:: + + action-server: myServerAction; + myServerAction-data: form(); + +to:: + + action-server: myServerAction form(); + +Or, if you want to keep compatibility with kss 1.2:: + + action-server: myServerAction; + myServerAction-kssSubmitForm: form(); + + +Necessary server side changes +''''''''''''''''''''''''''''' + +On the server side, the method that received the form as a dictionary in one +parameter, must define the values directly in the method signature, or access +them from the form directly. + +So the following old code:: + + def method(self, data): + field1 = data['field1'] + field2 = data.get('field2', None) + +must be changed in one of the two ways shown in the following examples:: + + def method(self, field1, field2=None): + ... + +An alternate way is to get them from the request:: + + def method(self): + request = self.request + field1 = request.form['field1'] + field2 = request.form.get('field2', None) + +Known problems +-------------- + +Safari 3.1 fails to run with KSS. The problem is with base2, +that fails selecting any selector that contains capital letters. + +Example for header of browser version that experiences the problem:: + + User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; en-us) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13 + + +Old cssQuery.js works for this browser, so a workaround is to ensure +that Safari 3.1 gets the cssQuery.js resource and not the base2. + +For example, in ResourceRegistries, the following changes are needed: + +Resource: cssQuery.js + +- Enable +- Change condition to: here/@@kss_devel_mode/needs_old_cssquery + +Resource: ++resource++base2-dom-fp.js + +- Change condition to: not: here/@@kss_devel_mode/needs_old_cssquery + +This enables the correct behaviour, since KSS always uses the +library it founds (in the priority of base2 and the old cssquery). + Modified: kukit/kss.core/branch/1.4/setup.py ============================================================================== --- kukit/kss.core/branch/1.4/setup.py (original) +++ kukit/kss.core/branch/1.4/setup.py Fri Nov 27 13:37:49 2009 @@ -1,28 +1,32 @@ from setuptools import setup, find_packages import os -version = '1.4' +version = '1.4.8dev' + def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() + long_description = ( read('docs', 'INTRO.txt') + '\n' + 'Recently changed\n' - '**********************\n' + '================\n' + '\n' + read('docs', 'NEWS.txt') + '\n' + + read('CHANGES.txt') + + '\n' + + read('kss/core/kukit/CHANGES.txt') + + '\n' + 'Download\n' - '**********************\n' - ) + '========\n') setup(name='kss.core', version=version, description="KSS (Kinetic Style Sheets) core framework", long_description = long_description, - # Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Framework :: Zope2", "Framework :: Zope3", From gotcha at codespeak.net Fri Nov 27 13:38:21 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:38:21 +0100 (CET) Subject: [KSS-checkins] r69690 - kukit/kukit.js/branch/1.4 Message-ID: <20091127123821.C0BCC1680FE@codespeak.net> Author: gotcha Date: Fri Nov 27 13:38:21 2009 New Revision: 69690 Modified: kukit/kukit.js/branch/1.4/CHANGES.txt Log: fix was in kss.core only Modified: kukit/kukit.js/branch/1.4/CHANGES.txt ============================================================================== --- kukit/kukit.js/branch/1.4/CHANGES.txt (original) +++ kukit/kukit.js/branch/1.4/CHANGES.txt Fri Nov 27 13:38:21 2009 @@ -10,10 +10,8 @@ 1.4.7 (2009-05-11) ------------------ - - Fix kukit payload in favor of IE6 XP SP3. - xmlns="http://www.kukit.org/commands/1.1" removed - from kukit tag as it breaks IE6 XP SP3. - [gotcha] + - Prepare release + [ree] 1.4.6 (2009-04-10) ------------------ @@ -65,9 +63,9 @@ ------------------ - Fix a typo that caused an exception instead of - logging an error message, this happened when - an action was regitered twice with the same name. - [ree] + logging an error message, this happened when + an action was regitered twice with the same name. + [ree] 1.4 (2008-04-21) ---------------- From gotcha at codespeak.net Fri Nov 27 13:40:12 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:40:12 +0100 (CET) Subject: [KSS-checkins] r69691 - kukit/kukit.js/tag/1.4.8 Message-ID: <20091127124012.A178A1680F9@codespeak.net> Author: gotcha Date: Fri Nov 27 13:40:12 2009 New Revision: 69691 Added: kukit/kukit.js/tag/1.4.8/ - copied from r69690, kukit/kukit.js/branch/1.4/ Log: prepare release From gotcha at codespeak.net Fri Nov 27 13:43:01 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:43:01 +0100 (CET) Subject: [KSS-checkins] r69692 - kukit/kukit.js/tag/1.4.8 Message-ID: <20091127124301.580661680F9@codespeak.net> Author: gotcha Date: Fri Nov 27 13:43:00 2009 New Revision: 69692 Modified: kukit/kukit.js/tag/1.4.8/CHANGES.txt Log: release Modified: kukit/kukit.js/tag/1.4.8/CHANGES.txt ============================================================================== --- kukit/kukit.js/tag/1.4.8/CHANGES.txt (original) +++ kukit/kukit.js/tag/1.4.8/CHANGES.txt Fri Nov 27 13:43:00 2009 @@ -1,7 +1,7 @@ Changelog for kukit.js ====================== -1.4.8 (unreleased) +1.4.8 (2009-11-27) ------------------ - add SetActionServerTimeout client action From gotcha at codespeak.net Fri Nov 27 13:44:54 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:44:54 +0100 (CET) Subject: [KSS-checkins] r69693 - in kukit/kss.core/branch/1.4: . kss/core kss/core/pluginregistry Message-ID: <20091127124454.B6A351680F9@codespeak.net> Author: gotcha Date: Fri Nov 27 13:44:53 2009 New Revision: 69693 Modified: kukit/kss.core/branch/1.4/CHANGES.txt kukit/kss.core/branch/1.4/kss/core/ (props changed) kukit/kss.core/branch/1.4/kss/core/pluginregistry/ (props changed) kukit/kss.core/branch/1.4/setup.py Log: Preparing release 1.4.8 Modified: kukit/kss.core/branch/1.4/CHANGES.txt ============================================================================== --- kukit/kss.core/branch/1.4/CHANGES.txt (original) +++ kukit/kss.core/branch/1.4/CHANGES.txt Fri Nov 27 13:44:53 2009 @@ -2,7 +2,7 @@ ====================== -1.4.8 (unreleased) +1.4.8 (2009-11-27) ------------------ - Add timeout tests in error handling demo Modified: kukit/kss.core/branch/1.4/setup.py ============================================================================== --- kukit/kss.core/branch/1.4/setup.py (original) +++ kukit/kss.core/branch/1.4/setup.py Fri Nov 27 13:44:53 2009 @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import os -version = '1.4.8dev' +version = '1.4.8' def read(*rnames): From gotcha at codespeak.net Fri Nov 27 13:45:39 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:45:39 +0100 (CET) Subject: [KSS-checkins] r69694 - kukit/kss.core/tag/1.4.8 Message-ID: <20091127124539.98C441680F9@codespeak.net> Author: gotcha Date: Fri Nov 27 13:45:39 2009 New Revision: 69694 Added: kukit/kss.core/tag/1.4.8/ - copied from r69693, kukit/kss.core/branch/1.4/ Log: Tagging 1.4.8 From gotcha at codespeak.net Fri Nov 27 13:48:44 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:48:44 +0100 (CET) Subject: [KSS-checkins] r69695 - kukit/kss.core/branch/1.4 Message-ID: <20091127124844.A1F751680FE@codespeak.net> Author: gotcha Date: Fri Nov 27 13:48:44 2009 New Revision: 69695 Removed: kukit/kss.core/branch/1.4/setup.cfg Log: remove nasty file Deleted: /kukit/kss.core/branch/1.4/setup.cfg ============================================================================== --- /kukit/kss.core/branch/1.4/setup.cfg Fri Nov 27 13:48:44 2009 +++ (empty file) @@ -1,3 +0,0 @@ -[egg_info] -tag_build = dev -tag_svn_revision = true From gotcha at codespeak.net Fri Nov 27 13:50:25 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:50:25 +0100 (CET) Subject: [KSS-checkins] r69696 - kukit/kss.core/tag/1.4.8 Message-ID: <20091127125025.D36401680FE@codespeak.net> Author: gotcha Date: Fri Nov 27 13:50:25 2009 New Revision: 69696 Removed: kukit/kss.core/tag/1.4.8/setup.cfg Log: remove nasty file Deleted: /kukit/kss.core/tag/1.4.8/setup.cfg ============================================================================== --- /kukit/kss.core/tag/1.4.8/setup.cfg Fri Nov 27 13:50:25 2009 +++ (empty file) @@ -1,3 +0,0 @@ -[egg_info] -tag_build = dev -tag_svn_revision = true From gotcha at codespeak.net Fri Nov 27 13:52:21 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:52:21 +0100 (CET) Subject: [KSS-checkins] r69697 - kukit/kss.core/tag/1.4.8 Message-ID: <20091127125221.6E3E71680FE@codespeak.net> Author: gotcha Date: Fri Nov 27 13:52:21 2009 New Revision: 69697 Removed: kukit/kss.core/tag/1.4.8/ Log: remove wrong release From gotcha at codespeak.net Fri Nov 27 13:53:27 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:53:27 +0100 (CET) Subject: [KSS-checkins] r69698 - kukit/kss.core/tag/1.4.8 Message-ID: <20091127125327.EEA671680FE@codespeak.net> Author: gotcha Date: Fri Nov 27 13:53:27 2009 New Revision: 69698 Added: kukit/kss.core/tag/1.4.8/ - copied from r69697, kukit/kss.core/branch/1.4/ Log: Tagging 1.4.8 From gotcha at codespeak.net Fri Nov 27 13:54:26 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 13:54:26 +0100 (CET) Subject: [KSS-checkins] r69699 - kukit/kss.core/branch/1.4 Message-ID: <20091127125426.DF7A11680FE@codespeak.net> Author: gotcha Date: Fri Nov 27 13:54:26 2009 New Revision: 69699 Modified: kukit/kss.core/branch/1.4/CHANGES.txt kukit/kss.core/branch/1.4/setup.py Log: Back to development: 1.4.9 Modified: kukit/kss.core/branch/1.4/CHANGES.txt ============================================================================== --- kukit/kss.core/branch/1.4/CHANGES.txt (original) +++ kukit/kss.core/branch/1.4/CHANGES.txt Fri Nov 27 13:54:26 2009 @@ -2,6 +2,12 @@ ====================== +1.4.9 (unreleased) +------------------ + +- Nothing changed yet. + + 1.4.8 (2009-11-27) ------------------ Modified: kukit/kss.core/branch/1.4/setup.py ============================================================================== --- kukit/kss.core/branch/1.4/setup.py (original) +++ kukit/kss.core/branch/1.4/setup.py Fri Nov 27 13:54:26 2009 @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import os -version = '1.4.8' +version = '1.4.9dev' def read(*rnames): From gotcha at codespeak.net Fri Nov 27 15:18:00 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 15:18:00 +0100 (CET) Subject: [KSS-checkins] r69701 - in kukit/kss.core/branch/1.4/kss/core: . pluginregistry Message-ID: <20091127141800.978A0168102@codespeak.net> Author: gotcha Date: Fri Nov 27 15:17:59 2009 New Revision: 69701 Modified: kukit/kss.core/branch/1.4/kss/core/ (props changed) kukit/kss.core/branch/1.4/kss/core/pluginregistry/ (props changed) Log: back to dev From gotcha at codespeak.net Fri Nov 27 16:52:28 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 16:52:28 +0100 (CET) Subject: [KSS-checkins] r69705 - kukit/kss.buildout/trunk Message-ID: <20091127155228.A5E741680FD@codespeak.net> Author: gotcha Date: Fri Nov 27 16:52:28 2009 New Revision: 69705 Modified: kukit/kss.buildout/trunk/buildout.cfg Log: move to Zope 2.12 Modified: kukit/kss.buildout/trunk/buildout.cfg ============================================================================== --- kukit/kss.buildout/trunk/buildout.cfg (original) +++ kukit/kss.buildout/trunk/buildout.cfg Fri Nov 27 16:52:28 2009 @@ -1,6 +1,6 @@ [buildout] +extends = http://download.zope.org/Zope2/index/2.12.1/versions.cfg parts = - zope2 instance extraproducts ksspy @@ -11,9 +11,15 @@ eggs=elementtree -[zope2] -recipe = plone.recipe.zope2install -url = http://www.zope.org/Products/Zope/2.10.4/Zope-2.10.4-final.tgz +[versions] +plone.recipe.zope2instance = 4.0a1 +distribute = 0.6.8 +mr.developer = 1.4 +plone.recipe.alltests = 1.2 +plone.recipe.zope2instance = 4.0a1 +setuptools = 0.6c11 +zc.buildout = 1.4.2 +zc.recipe.egg = 1.2.2 [extraproducts] recipe = infrae.subversion @@ -22,10 +28,10 @@ [instance] recipe = plone.recipe.zope2instance -zope2-location = ${zope2:location} user = admin:admin debug-mode = on eggs = + Zope2 kss.core kss.demo elementtree @@ -43,5 +49,4 @@ ${instance:eggs} elementtree interpreter = ksspy -extra-paths = ${zope2:location}/lib/python scripts = ksspy From gotcha at codespeak.net Fri Nov 27 16:53:51 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 16:53:51 +0100 (CET) Subject: [KSS-checkins] r69706 - in kukit/kss.core/trunk: . docs kss/core/plugins/core/demo kss/core/plugins/core/demo/selenium_tests Message-ID: <20091127155351.DEEB61680FD@codespeak.net> Author: gotcha Date: Fri Nov 27 16:53:50 2009 New Revision: 69706 Modified: kukit/kss.core/trunk/CHANGES.txt kukit/kss.core/trunk/docs/NEWS.txt kukit/kss.core/trunk/kss/core/plugins/core/demo/demoview.py kukit/kss.core/trunk/kss/core/plugins/core/demo/error_handling.kss kukit/kss.core/trunk/kss/core/plugins/core/demo/error_handling.pt kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/error_handling.html kukit/kss.core/trunk/setup.py Log: merge changes of 1.4.8 Modified: kukit/kss.core/trunk/CHANGES.txt ============================================================================== --- kukit/kss.core/trunk/CHANGES.txt (original) +++ kukit/kss.core/trunk/CHANGES.txt Fri Nov 27 16:53:50 2009 @@ -4,7 +4,8 @@ 1.6.0.a2 (unreleased) --------------------- - - no changes yet + - Add timeout tests in error handling demo + [gotcha, jrfroche] 1.6.0.a1 (2009-11-19) --------------------- Modified: kukit/kss.core/trunk/docs/NEWS.txt ============================================================================== --- kukit/kss.core/trunk/docs/NEWS.txt (original) +++ kukit/kss.core/trunk/docs/NEWS.txt Fri Nov 27 16:53:50 2009 @@ -1,73 +1,27 @@ +New in kss 1.4.8 +---------------- -Deprecated in kss 1.4 ---------------------- - -form() and currentForm() in normal value providers -"""""""""""""""""""""""""""""""""""""""""""""""""" - -currentForm() -''''''''''''' - - -You must change rules that use currentForm() in a normal value provider:: - - action-server: myServerAction; - myServerAction-data: currentForm(); - -to:: - - action-server: myServerAction currentForm(); - -Or, if you want to keep compatibility with kss 1.2:: - - action-server: myServerAction; - myServerAction-kssSubmitForm: currentForm(); - - -form() -'''''' - -Similarly, for form(), you must change the following:: - - action-server: myServerAction; - myServerAction-data: form(); - -to:: - - action-server: myServerAction form(); - -Or, if you want to keep compatibility with kss 1.2:: - - action-server: myServerAction; - myServerAction-kssSubmitForm: form(); - - -Necessary server side changes -''''''''''''''''''''''''''''' - -On the server side, the method that received the form as a dictionary in one -parameter, must define the values directly in the method signature, or access -them from the form directly. - -So the following old code:: - - def method(self, data): - field1 = data['field1'] - field2 = data.get('field2', None) - -must be changed in one of the two ways shown in the following examples:: - - def method(self, field1, field2=None): - ... - -An alternate way is to get them from the request:: - - def method(self): - request = self.request - field1 = request.form['field1'] - field2 = request.form.get('field2', None) - - +- new client action ``setActionServerTimeout`` + + It allows to setup timeout separately for each server action. + You call it in the stylesheet just before the server action. + It has a ``value`` parameter where you specify the timeout in + milliseconds:: + + div.timeout:click { + action-client: setActionServerTimeout; + setActionServerTimeout-value: 10000; + action-server: bla; + } + + You can also use it to change the global default timeout value at body + load time:: + + body:load { + action-client: setActionServerTimeout; + setActionServerTimeout-value: 5000; + } + New in kss 1.4 -------------- @@ -176,3 +130,72 @@ - fix action-cancel +Deprecated in kss 1.4 +--------------------- + +form() and currentForm() in normal value providers +"""""""""""""""""""""""""""""""""""""""""""""""""" + +currentForm() +''''''''''''' + + +You must change rules that use currentForm() in a normal value provider:: + + action-server: myServerAction; + myServerAction-data: currentForm(); + +to:: + + action-server: myServerAction currentForm(); + +Or, if you want to keep compatibility with kss 1.2:: + + action-server: myServerAction; + myServerAction-kssSubmitForm: currentForm(); + + +form() +'''''' + +Similarly, for form(), you must change the following:: + + action-server: myServerAction; + myServerAction-data: form(); + +to:: + + action-server: myServerAction form(); + +Or, if you want to keep compatibility with kss 1.2:: + + action-server: myServerAction; + myServerAction-kssSubmitForm: form(); + + +Necessary server side changes +''''''''''''''''''''''''''''' + +On the server side, the method that received the form as a dictionary in one +parameter, must define the values directly in the method signature, or access +them from the form directly. + +So the following old code:: + + def method(self, data): + field1 = data['field1'] + field2 = data.get('field2', None) + +must be changed in one of the two ways shown in the following examples:: + + def method(self, field1, field2=None): + ... + +An alternate way is to get them from the request:: + + def method(self): + request = self.request + field1 = request.form['field1'] + field2 = request.form.get('field2', None) + + Modified: kukit/kss.core/trunk/kss/core/plugins/core/demo/demoview.py ============================================================================== --- kukit/kss.core/trunk/kss/core/plugins/core/demo/demoview.py (original) +++ kukit/kss.core/trunk/kss/core/plugins/core/demo/demoview.py Fri Nov 27 16:53:50 2009 @@ -17,6 +17,7 @@ from kss.core import KSSView, force_unicode, KSSExplicitError, kssaction import datetime +import time class KSSDemoView(KSSView): @@ -54,7 +55,7 @@ mapping['animals']=['dog', 'cat', 'cow'] mapping['machines']=['computer', 'car', 'airplane'] # XXX Note that originally we just used replaceInnerHTML to just put - # the options inside the select, however this is principally broken + # the options inside the select, however this is principally broken # on IE due to an IE bug. Microsoft has confirmed the bug but is not # giving information on whether it has or it will ever be fixed. # For further info, see http://support.microsoft.com/default.aspx?scid=kb;en-us;276228 @@ -74,29 +75,29 @@ """ returns the current time """ self.getCommandSet('core').replaceInnerHTML('div#update-area', "

%s

" % str(datetime.datetime.now())) return self.render() - + def getInputField(self, value): 'Inserts the value as entered into an input field' # We need to make unicode. But on Z2 we receive utf-8, on Z3 unicode value = force_unicode(value, 'utf') - self.getCommandSet('core').replaceInnerHTML('div#text', + self.getCommandSet('core').replaceInnerHTML('div#text', '
' \ '' ) return self.render() - + def saveText(self, value): 'Inserts the value to display it on the page' # We need to make unicode. But on Z2 we receive utf-8, on Z3 unicode value = force_unicode(value, 'utf') self.getCommandSet('core').replaceInnerHTML('div#text', value+'') return self.render() - + def expandSubTree(self, value, xvalue): 'Expands given subtree' self.getCommandSet('core').replaceInnerHTML('#text', 'works, expand %s (xhtml attr: %s)' % (value, xvalue)) return self.render() - + def collapseSubTree(self, value, xvalue): 'Collapses given subtree' self.getCommandSet('core').replaceInnerHTML('#text', 'works, collapse %s (xhtml attr: %s)' % (value, xvalue)) @@ -113,7 +114,7 @@ sel = self.getSelector('xpath', "//P[@id='xpath']/following-sibling::*[position()=1]") self.getCommandSet('core').deleteNode(sel) return self.render() - + def clickedButton(self, id): 'Show status of the button clicked' self.getCommandSet('core').replaceInnerHTML('#update-status', "

Button %s clicked. %s

" % (id, datetime.datetime.now())) @@ -158,17 +159,15 @@ raise KSSExplicitError, 'Explicit error raised.' elif act == 'empty': # Just do nothing, we want to return a response with no commands. - # This is valid behaviour, should raise no error, however + # This is valid behaviour, should raise no error, however # gives a warning in the kukit log. pass - ## XXX This is commented out by default, but you can try this on your own - ## server, together with the timeout buttons in the page template timeout buttons in the page template. - ## - #elif act == 'timeout': - # # Wait longer then timeout, this is currently 4 s - # time.sleep(6.0); - # # the next reply will never arrive. - # self.replaceInnerHTML('#update-status', u'Timeout response, button %s clicked. %s' % (id, datetime.datetime.now())) + elif act == 'timeout': + # Wait longer then timeout, this is set by the stylesheet with + # setActionServerTimeout client action + time.sleep(2.0); + # the next reply will never arrive. + self.getCommandSet('core').replaceInnerHTML('#update-status', u'Not arrived') else: # act = noerror: standard response. self.getCommandSet('core').replaceInnerHTML('#update-status', u'Normal response, button %s clicked. %s' % (id, datetime.datetime.now())) Modified: kukit/kss.core/trunk/kss/core/plugins/core/demo/error_handling.kss ============================================================================== --- kukit/kss.core/trunk/kss/core/plugins/core/demo/error_handling.kss (original) +++ kukit/kss.core/trunk/kss/core/plugins/core/demo/error_handling.kss Fri Nov 27 16:53:50 2009 @@ -1,6 +1,6 @@ -.clickable:click { +.nothandled:click { evt-click-preventdefault: true; action-server: errTest; errTest-id: nodeAttr(id); @@ -13,11 +13,30 @@ .handled:click { + evt-click-preventdefault: true; + action-server: errTest; + errTest-id: nodeAttr(id); + errTest-act: kssAttr(act); errTest-error: insertHTMLAsLastChild; insertHTMLAsLastChild-kssSelector: #logger; insertHTMLAsLastChild-html: "Error handler activated."; } +.timeout:click { + evt-click-preventdefault: true; + action-client: replaceInnerHTML; + replaceInnerHTML-kssSelector: #update-status; + replaceInnerHTML-html: "Test timeout"; + action-client: setActionServerTimeout; + setActionServerTimeout-value: 100; + action-server: errTest; + errTest-id: nodeAttr(id); + errTest-act: kssAttr(act); + errTest-error: insertHTMLAsLastChild; + insertHTMLAsLastChild-kssSelector: #logger; + insertHTMLAsLastChild-html: "Timeout: error handler activated."; +} + /* Spinner control */ Modified: kukit/kss.core/trunk/kss/core/plugins/core/demo/error_handling.pt ============================================================================== --- kukit/kss.core/trunk/kss/core/plugins/core/demo/error_handling.pt (original) +++ kukit/kss.core/trunk/kss/core/plugins/core/demo/error_handling.pt Fri Nov 27 16:53:50 2009 @@ -34,13 +34,17 @@ on the server.

The buttons in the first row have no error handlers.

- - - -

The buttons in the second row have individual error handlers.

@@ -56,9 +60,17 @@ value="Explicit error" />

- You can also try suspending your server process and start generating timed out requests. - Timed out responses are also handled like ones arriving with error. - The timeout period is by default 8 s now.

+ Timed out are also handled like errors. + The timeout period is by default to 8000 ms now.

+

The timeout is set to 100 ms on the button hereunder. Click calls an + action-server that explicitely waits for 2000ms. In other words, the + timeout is triggered.

+

+

+ +

In addition, the request queue manager queues up the outgoing responses and maximizes their number (currently in 4): click like crazy on the buttons and you will see that Modified: kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/error_handling.html ============================================================================== --- kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/error_handling.html (original) +++ kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/error_handling.html Fri Nov 27 16:53:50 2009 @@ -153,7 +153,41 @@ logger Error handler activated. - + + click + css=#log-reset + + + + click + with_timeout + + + + waitForText + logger + Timeout: error handler activated. + + + assertText + logger + Timeout: error handler activated. + + + pause + 3000 + + + + waitForText + update-status + Test timeout + + + assertText + update-status + Test timeout + Modified: kukit/kss.core/trunk/setup.py ============================================================================== --- kukit/kss.core/trunk/setup.py (original) +++ kukit/kss.core/trunk/setup.py Fri Nov 27 16:53:50 2009 @@ -17,6 +17,8 @@ + '\n' + read('CHANGES.txt') + '\n' + + read('kss/core/kukit/CHANGES.txt') + + '\n' + 'Download\n' + '========\n') From gotcha at codespeak.net Fri Nov 27 16:54:18 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Fri, 27 Nov 2009 16:54:18 +0100 (CET) Subject: [KSS-checkins] r69707 - in kukit/kukit.js/trunk: . kukit Message-ID: <20091127155418.076D61680FD@codespeak.net> Author: gotcha Date: Fri Nov 27 16:54:17 2009 New Revision: 69707 Modified: kukit/kukit.js/trunk/CHANGES.txt kukit/kukit.js/trunk/kukit/plugin.js kukit/kukit.js/trunk/kukit/requestmanager.js Log: merge changes of 1.4.8 Modified: kukit/kukit.js/trunk/CHANGES.txt ============================================================================== --- kukit/kukit.js/trunk/CHANGES.txt (original) +++ kukit/kukit.js/trunk/CHANGES.txt Fri Nov 27 16:54:17 2009 @@ -1,10 +1,11 @@ Changelog for kukit.js ====================== -1.5dev (Unreleased) -------------------- +1.6.0a2dev (unreleased) +----------------------- - - ... + - add SetActionServerTimeout client action + [gotcha, jfroche] MISSING, PLEASE MERGE! - Add improved demos (insertions in tbody is not included : that demo is Modified: kukit/kukit.js/trunk/kukit/plugin.js ============================================================================== --- kukit/kukit.js/trunk/kukit/plugin.js (original) +++ kukit/kukit.js/trunk/kukit/plugin.js Fri Nov 27 16:54:17 2009 @@ -1043,6 +1043,14 @@ kukit.commandsGlobalRegistry.registerFromAction('toggleClass', kukit.cr.makeSelectorCommand); +kukit.actionsGlobalRegistry.register('setActionServerTimeout', function (oper) { +;;; oper.componentName = '[setActionServerTimeout] action'; + oper.evaluateParameters(['value'], {}, '', true); + oper.evalInt('value'); + var value = oper.parms.value; + kukit.engine.requestManager.sendingTimeout = value; +}); + /* * XXX Compatibility settings for old command names. * These will be removed as soon as all current use cases are changed. Modified: kukit/kukit.js/trunk/kukit/requestmanager.js ============================================================================== --- kukit/kukit.js/trunk/kukit/requestmanager.js (original) +++ kukit/kukit.js/trunk/kukit/requestmanager.js Fri Nov 27 16:54:17 2009 @@ -365,6 +365,8 @@ // Default value of timeout timeout = this.sendingTimeout; } +;;; var msg = 'Request timeout [' + timeout + '] milliseconds.'; +;;; kukit.logDebug(msg); var item = new _RequestItem(sendHook, url, timeoutHook, timeout, now); // Start timing the item immediately From gotcha at codespeak.net Mon Nov 30 20:06:26 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Mon, 30 Nov 2009 20:06:26 +0100 (CET) Subject: [KSS-checkins] r69777 - kukit/firekiss/trunk Message-ID: <20091130190626.E3ED716803A@codespeak.net> Author: gotcha Date: Mon Nov 30 20:06:26 2009 New Revision: 69777 Modified: kukit/firekiss/trunk/install.rdf Log: update versions Modified: kukit/firekiss/trunk/install.rdf ============================================================================== --- kukit/firekiss/trunk/install.rdf (original) +++ kukit/firekiss/trunk/install.rdf Mon Nov 30 20:06:26 2009 @@ -23,7 +23,7 @@ {ec8030f7-c20a-464f-9b0e-13a3a9e97384} 3.0 - 3.0.* + 3.* From gotcha at codespeak.net Mon Nov 30 20:36:34 2009 From: gotcha at codespeak.net (gotcha at codespeak.net) Date: Mon, 30 Nov 2009 20:36:34 +0100 (CET) Subject: [KSS-checkins] r69779 - kukit/firekiss/trunk Message-ID: <20091130193634.BE6C716803A@codespeak.net> Author: gotcha Date: Mon Nov 30 20:36:34 2009 New Revision: 69779 Modified: kukit/firekiss/trunk/install.rdf Log: more details on versions Modified: kukit/firekiss/trunk/install.rdf ============================================================================== --- kukit/firekiss/trunk/install.rdf (original) +++ kukit/firekiss/trunk/install.rdf Mon Nov 30 20:36:34 2009 @@ -6,7 +6,7 @@ firekiss at kssproject.org FireKiSS - 1.10 + 1.10.1 KSS development extension with Firebug Godefroid Chapelle @@ -23,9 +23,16 @@ {ec8030f7-c20a-464f-9b0e-13a3a9e97384} 3.0 - 3.* + 3.5.* + + + firebug at software.joehewitt.com + 1.3.0 + 1.4.* + +