From laz at codespeak.net Mon Sep 3 10:57:10 2007 From: laz at codespeak.net (laz at codespeak.net) Date: Mon, 3 Sep 2007 10:57:10 +0200 (CEST) Subject: [KSS-checkins] r46256 - kukit/kss.base/trunk Message-ID: <20070903085710.63D1C815C@code0.codespeak.net> Author: laz Date: Mon Sep 3 10:57:07 2007 New Revision: 46256 Modified: kukit/kss.base/trunk/setup.py Log: Included kssconcatjs console script in entry points Modified: kukit/kss.base/trunk/setup.py ============================================================================== --- kukit/kss.base/trunk/setup.py (original) +++ kukit/kss.base/trunk/setup.py Mon Sep 3 10:57:07 2007 @@ -29,6 +29,9 @@ 'kss.plugin': [ 'kss-core=kss.base.plugin:KSSCore' ], + 'console_scripts': [ + 'kssconcatjs=kss.base.utils:KSSConcatJs' + ], }, test_suite='kss.base.tests.test_suite', ) From kukit-checkins at codespeak.net Tue Sep 4 21:23:24 2007 From: kukit-checkins at codespeak.net (Viagra.com Inc ®) Date: Tue, 4 Sep 2007 21:23:24 +0200 (CEST) Subject: [KSS-checkins] Official Site Message-ID: <9781780.86675.363825-9149@cimail62.msn.com> An HTML attachment was scrubbed... URL: http://codespeak.net/pipermail/kukit-checkins/attachments/20070904/6e1fe6b8/attachment.htm From reebalazs at codespeak.net Fri Sep 7 15:28:40 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Fri, 7 Sep 2007 15:28:40 +0200 (CEST) Subject: [KSS-checkins] r46400 - kukit/kukit.js/trunk/kukit Message-ID: <20070907132840.43907810F@code0.codespeak.net> Author: reebalazs Date: Fri Sep 7 15:28:39 2007 New Revision: 46400 Modified: kukit/kukit.js/trunk/kukit/dom.js kukit/kukit.js/trunk/kukit/plugin.js kukit/kukit.js/trunk/kukit/providerreg.js Log: Fix logging from the event binder of [load, iload], that caused document:load fail in development mode Modified: kukit/kukit.js/trunk/kukit/dom.js ============================================================================== --- kukit/kukit.js/trunk/kukit/dom.js (original) +++ kukit/kukit.js/trunk/kukit/dom.js Fri Sep 7 15:28:39 2007 @@ -279,6 +279,24 @@ kukit.dom.setAttribute(node, fullName); }; + +kukit.dom.getKssIdFilterFactory = function(prefix) { + var re_prefix = Regexp('^'+prefix); + return function(node, attrname) { + ;;; if (attrname != 'id') { + ;;; throw new Error('getKssIdFilterFactory can only work on id, no other attributes'); + ;;; } + var result = node.id; + if (result.match(re_prefix)) { + return result; + } else { + return null; + } + }; +}; + + + /* Recursive getting of node attributes getter is a function that gets the value from the node. */ Modified: kukit/kukit.js/trunk/kukit/plugin.js ============================================================================== --- kukit/kukit.js/trunk/kukit/plugin.js (original) +++ kukit/kukit.js/trunk/kukit/plugin.js Fri Sep 7 15:28:39 2007 @@ -423,8 +423,18 @@ // we need to execute immediately. var func_to_bind = loadoper.makeExecuteActionsHook(); var remark = ''; -;;; remark += '[load] event execution for node ['; -;;; remark += loadoper.node.tagName.toLowerCase() + ']'; +;;; remark += '[load] event execution for '; +;;; // loadoper can execute on document! +;;; // Is this the case? +;;; if (loadoper.node == null) { +;;; // document:load +;;; remark += '[document]'; +;;; } else { +;;; // :load +;;; remark += 'node ['; +;;; remark += loadoper.node.tagName.toLowerCase(); +;;; remark += ']'; +;;; } kukit.engine.bindScheduler.addPost(func_to_bind, remark); } if (iloadoper) { Modified: kukit/kukit.js/trunk/kukit/providerreg.js ============================================================================== --- kukit/kukit.js/trunk/kukit/providerreg.js (original) +++ kukit/kukit.js/trunk/kukit/providerreg.js Fri Sep 7 15:28:39 2007 @@ -316,3 +316,29 @@ }; kukit.pprovidersGlobalRegistry.register('pass', kukit.pr.PassPP); +kukit.pr.KssIdPP = function() {}; +kukit.pr.KssIdPP.prototype = { + check: function(args) { +;;; if (args.length != 0 && args.length != 1) { +;;; kukit.E = 'kssId method needs 0 or 1 argument (type)'; +;;; throw new Error(kukit.E); +;;; } +;;; if (! args[0].match(/~[a-z0-9]$/)) { +;;; kukit.E = 'type parameter in kssId method must be '; +;;; kukit.E += 'lowercase alphanumeric.'; +;;; throw new Error(kukit.E); +;;; } + }, + eval: function(args, node) { + var type = args[0]; + var prefix = 'kssid-'; + if (args.length == 1) { + prefix += args[0] + '-'; + } + return kukit.dom.getRecursiveAttribute(node, 'id', true, + kukit.dom.getKssIdFilterFactory(prefix)); + } +}; +kukit.pprovidersGlobalRegistry.register('kssId', kukit.pr.KssIdPP); + + From reebalazs at codespeak.net Fri Sep 7 15:30:14 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Fri, 7 Sep 2007 15:30:14 +0200 (CEST) Subject: [KSS-checkins] r46401 - kukit/kukit.js/trunk/kukit Message-ID: <20070907133014.3CB67810F@code0.codespeak.net> Author: reebalazs Date: Fri Sep 7 15:30:13 2007 New Revision: 46401 Modified: kukit/kukit.js/trunk/kukit/dom.js kukit/kukit.js/trunk/kukit/plugin.js kukit/kukit.js/trunk/kukit/providerreg.js Log: Oops, reverting last commit that contained unwanted items Modified: kukit/kukit.js/trunk/kukit/dom.js ============================================================================== --- kukit/kukit.js/trunk/kukit/dom.js (original) +++ kukit/kukit.js/trunk/kukit/dom.js Fri Sep 7 15:30:13 2007 @@ -279,24 +279,6 @@ kukit.dom.setAttribute(node, fullName); }; - -kukit.dom.getKssIdFilterFactory = function(prefix) { - var re_prefix = Regexp('^'+prefix); - return function(node, attrname) { - ;;; if (attrname != 'id') { - ;;; throw new Error('getKssIdFilterFactory can only work on id, no other attributes'); - ;;; } - var result = node.id; - if (result.match(re_prefix)) { - return result; - } else { - return null; - } - }; -}; - - - /* Recursive getting of node attributes getter is a function that gets the value from the node. */ Modified: kukit/kukit.js/trunk/kukit/plugin.js ============================================================================== --- kukit/kukit.js/trunk/kukit/plugin.js (original) +++ kukit/kukit.js/trunk/kukit/plugin.js Fri Sep 7 15:30:13 2007 @@ -423,18 +423,8 @@ // we need to execute immediately. var func_to_bind = loadoper.makeExecuteActionsHook(); var remark = ''; -;;; remark += '[load] event execution for '; -;;; // loadoper can execute on document! -;;; // Is this the case? -;;; if (loadoper.node == null) { -;;; // document:load -;;; remark += '[document]'; -;;; } else { -;;; // :load -;;; remark += 'node ['; -;;; remark += loadoper.node.tagName.toLowerCase(); -;;; remark += ']'; -;;; } +;;; remark += '[load] event execution for node ['; +;;; remark += loadoper.node.tagName.toLowerCase() + ']'; kukit.engine.bindScheduler.addPost(func_to_bind, remark); } if (iloadoper) { Modified: kukit/kukit.js/trunk/kukit/providerreg.js ============================================================================== --- kukit/kukit.js/trunk/kukit/providerreg.js (original) +++ kukit/kukit.js/trunk/kukit/providerreg.js Fri Sep 7 15:30:13 2007 @@ -316,29 +316,3 @@ }; kukit.pprovidersGlobalRegistry.register('pass', kukit.pr.PassPP); -kukit.pr.KssIdPP = function() {}; -kukit.pr.KssIdPP.prototype = { - check: function(args) { -;;; if (args.length != 0 && args.length != 1) { -;;; kukit.E = 'kssId method needs 0 or 1 argument (type)'; -;;; throw new Error(kukit.E); -;;; } -;;; if (! args[0].match(/~[a-z0-9]$/)) { -;;; kukit.E = 'type parameter in kssId method must be '; -;;; kukit.E += 'lowercase alphanumeric.'; -;;; throw new Error(kukit.E); -;;; } - }, - eval: function(args, node) { - var type = args[0]; - var prefix = 'kssid-'; - if (args.length == 1) { - prefix += args[0] + '-'; - } - return kukit.dom.getRecursiveAttribute(node, 'id', true, - kukit.dom.getKssIdFilterFactory(prefix)); - } -}; -kukit.pprovidersGlobalRegistry.register('kssId', kukit.pr.KssIdPP); - - From reebalazs at codespeak.net Fri Sep 7 15:30:57 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Fri, 7 Sep 2007 15:30:57 +0200 (CEST) Subject: [KSS-checkins] r46402 - kukit/kukit.js/trunk/kukit Message-ID: <20070907133057.3E53A8116@code0.codespeak.net> Author: reebalazs Date: Fri Sep 7 15:30:56 2007 New Revision: 46402 Modified: kukit/kukit.js/trunk/kukit/plugin.js Log: Fix logging from the event binder of [load, iload], that caused document:load fail in development mode (for real) Modified: kukit/kukit.js/trunk/kukit/plugin.js ============================================================================== --- kukit/kukit.js/trunk/kukit/plugin.js (original) +++ kukit/kukit.js/trunk/kukit/plugin.js Fri Sep 7 15:30:56 2007 @@ -423,8 +423,18 @@ // we need to execute immediately. var func_to_bind = loadoper.makeExecuteActionsHook(); var remark = ''; -;;; remark += '[load] event execution for node ['; -;;; remark += loadoper.node.tagName.toLowerCase() + ']'; +;;; remark += '[load] event execution for '; +;;; // loadoper can execute on document! +;;; // Is this the case? +;;; if (loadoper.node == null) { +;;; // document:load +;;; remark += '[document]'; +;;; } else { +;;; // :load +;;; remark += 'node ['; +;;; remark += loadoper.node.tagName.toLowerCase(); +;;; remark += ']'; +;;; } kukit.engine.bindScheduler.addPost(func_to_bind, remark); } if (iloadoper) { From reebalazs at codespeak.net Fri Sep 7 15:36:29 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Fri, 7 Sep 2007 15:36:29 +0200 (CEST) Subject: [KSS-checkins] r46403 - in kukit/kukit.js/branch/1.2: doc kukit Message-ID: <20070907133629.DD0B88115@code0.codespeak.net> Author: reebalazs Date: Fri Sep 7 15:36:28 2007 New Revision: 46403 Modified: kukit/kukit.js/branch/1.2/doc/HISTORY.txt kukit/kukit.js/branch/1.2/kukit/plugin.js Log: Merge from trunk -r46401:46402 : Fix logging from the event binder of [load, iload], that caused document:load fail in development mode Modified: kukit/kukit.js/branch/1.2/doc/HISTORY.txt ============================================================================== --- kukit/kukit.js/branch/1.2/doc/HISTORY.txt (original) +++ kukit/kukit.js/branch/1.2/doc/HISTORY.txt Fri Sep 7 15:36:28 2007 @@ -6,6 +6,9 @@ - ... + - Fixed an issue that caused document:load fail + [ree] + kukit.js - 1.2 Released 2007-08-17 - Move ;;; markers to first columns. Modified: kukit/kukit.js/branch/1.2/kukit/plugin.js ============================================================================== --- kukit/kukit.js/branch/1.2/kukit/plugin.js (original) +++ kukit/kukit.js/branch/1.2/kukit/plugin.js Fri Sep 7 15:36:28 2007 @@ -423,8 +423,18 @@ // we need to execute immediately. var func_to_bind = loadoper.makeExecuteActionsHook(); var remark = ''; -;;; remark += '[load] event execution for node ['; -;;; remark += loadoper.node.tagName.toLowerCase() + ']'; +;;; remark += '[load] event execution for '; +;;; // loadoper can execute on document! +;;; // Is this the case? +;;; if (loadoper.node == null) { +;;; // document:load +;;; remark += '[document]'; +;;; } else { +;;; // :load +;;; remark += 'node ['; +;;; remark += loadoper.node.tagName.toLowerCase(); +;;; remark += ']'; +;;; } kukit.engine.bindScheduler.addPost(func_to_bind, remark); } if (iloadoper) { From reebalazs at codespeak.net Fri Sep 7 16:44:24 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Fri, 7 Sep 2007 16:44:24 +0200 (CEST) Subject: [KSS-checkins] r46405 - kukit/kukit.js/trunk/kukit Message-ID: <20070907144424.44A888116@code0.codespeak.net> Author: reebalazs Date: Fri Sep 7 16:44:23 2007 New Revision: 46405 Modified: kukit/kukit.js/trunk/kukit/plugin.js Log: Another fix that disabled the binding of document:load Modified: kukit/kukit.js/trunk/kukit/plugin.js ============================================================================== --- kukit/kukit.js/trunk/kukit/plugin.js (original) +++ kukit/kukit.js/trunk/kukit/plugin.js Fri Sep 7 16:44:23 2007 @@ -354,7 +354,15 @@ } oper.evalBool('initial'); oper.evalBool('insert'); - var phase = oper.node._kukitmark; + var phase; + if (oper.node == null) { + // if the event is bound to a document node, + // we are in phase 1. + phase = 1; + } else { + // get the phase from the node + phase = oper.node._kukitmark; + } if (phase == 1 && ! oper.parms.initial) { ;;; var msg = 'EventRule #' + oper.eventRule.getIndex() + ' mergeId ['; ;;; msg += oper.eventRule.kssSelector.mergeId + '] event ignored,'; From reebalazs at codespeak.net Fri Sep 7 16:46:04 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Fri, 7 Sep 2007 16:46:04 +0200 (CEST) Subject: [KSS-checkins] r46406 - kukit/kukit.js/branch/1.2/kukit Message-ID: <20070907144604.9E11E8116@code0.codespeak.net> Author: reebalazs Date: Fri Sep 7 16:46:02 2007 New Revision: 46406 Modified: kukit/kukit.js/branch/1.2/kukit/plugin.js Log: Merge from trunk -r46401:46402 : Another fix that disabled the binding of document:load Modified: kukit/kukit.js/branch/1.2/kukit/plugin.js ============================================================================== --- kukit/kukit.js/branch/1.2/kukit/plugin.js (original) +++ kukit/kukit.js/branch/1.2/kukit/plugin.js Fri Sep 7 16:46:02 2007 @@ -354,7 +354,15 @@ } oper.evalBool('initial'); oper.evalBool('insert'); - var phase = oper.node._kukitmark; + var phase; + if (oper.node == null) { + // if the event is bound to a document node, + // we are in phase 1. + phase = 1; + } else { + // get the phase from the node + phase = oper.node._kukitmark; + } if (phase == 1 && ! oper.parms.initial) { ;;; var msg = 'EventRule #' + oper.eventRule.getIndex() + ' mergeId ['; ;;; msg += oper.eventRule.kssSelector.mergeId + '] event ignored,'; From reebalazs at codespeak.net Sun Sep 9 19:55:29 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Sun, 9 Sep 2007 19:55:29 +0200 (CEST) Subject: [KSS-checkins] r46426 - kukit/kukit.js/branch/1.2/kukit Message-ID: <20070909175529.55F9680D2@code0.codespeak.net> Author: reebalazs Date: Sun Sep 9 19:55:26 2007 New Revision: 46426 Modified: kukit/kukit.js/branch/1.2/kukit/plugin.js Log: Port back -r46030:46031 from trunk in an appropriate form (Fix bug in replaceInnerHTML, Caused content not bound) Modified: kukit/kukit.js/branch/1.2/kukit/plugin.js ============================================================================== --- kukit/kukit.js/branch/1.2/kukit/plugin.js (original) +++ kukit/kukit.js/branch/1.2/kukit/plugin.js Sun Sep 9 19:55:26 2007 @@ -611,13 +611,17 @@ var insertedNodes; if (typeof(oper.parms.html) == 'string') { node.innerHTML = oper.parms.html; - insertedNodes = node.childNodes; + insertedNodes = []; + for (var i=0; i 0) { var parentNode = node.parentNode; var insertedNodes = []; From reebalazs at codespeak.net Sun Sep 9 19:57:20 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Sun, 9 Sep 2007 19:57:20 +0200 (CEST) Subject: [KSS-checkins] r46427 - kukit/kukit.js/branch/1.2/kukit Message-ID: <20070909175720.1E84480AD@code0.codespeak.net> Author: reebalazs Date: Sun Sep 9 19:57:20 2007 New Revision: 46427 Modified: kukit/kukit.js/branch/1.2/kukit/plugin.js Log: Port back -r46102:46103 from trunk (fix IE bug in forms, missing var) Modified: kukit/kukit.js/branch/1.2/kukit/plugin.js ============================================================================== --- kukit/kukit.js/branch/1.2/kukit/plugin.js (original) +++ kukit/kukit.js/branch/1.2/kukit/plugin.js Sun Sep 9 19:57:20 2007 @@ -83,7 +83,7 @@ if (! eventName) eventName = oper.getEventName(); var func = function(e) { - target = kukit.pl.getTargetForBrowserEvent(e); + var target = kukit.pl.getTargetForBrowserEvent(e); if (oper.parms.allowbubbling || target == oper.node) { // Execute the action, provide browserevent on oper // ... however, do it protected. We want the preventdefault From reebalazs at codespeak.net Mon Sep 10 19:32:52 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Mon, 10 Sep 2007 19:32:52 +0200 (CEST) Subject: [KSS-checkins] r46444 - kukit/kukit.js/tag/1.2.1 Message-ID: <20070910173252.19C188110@code0.codespeak.net> Author: reebalazs Date: Mon Sep 10 19:32:51 2007 New Revision: 46444 Added: kukit/kukit.js/tag/1.2.1/ - copied from r46443, kukit/kukit.js/branch/1.2/ Log: Branch for release From reebalazs at codespeak.net Mon Sep 10 19:37:24 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Mon, 10 Sep 2007 19:37:24 +0200 (CEST) Subject: [KSS-checkins] r46445 - in kukit/kukit.js/tag/1.2.1: . doc Message-ID: <20070910173724.9472980F0@code0.codespeak.net> Author: reebalazs Date: Mon Sep 10 19:37:24 2007 New Revision: 46445 Modified: kukit/kukit.js/tag/1.2.1/doc/HISTORY.txt kukit/kukit.js/tag/1.2.1/version.txt Log: Set release Modified: kukit/kukit.js/tag/1.2.1/doc/HISTORY.txt ============================================================================== --- kukit/kukit.js/tag/1.2.1/doc/HISTORY.txt (original) +++ kukit/kukit.js/tag/1.2.1/doc/HISTORY.txt Mon Sep 10 19:37:24 2007 @@ -2,9 +2,7 @@ (name of developer listed in brackets) -kukit.js - 1.2dev Unreleased - - - ... +kukit.js - 1.2.1 Released 2007-09-10 - Fixed an issue that caused document:load fail [ree] Modified: kukit/kukit.js/tag/1.2.1/version.txt ============================================================================== --- kukit/kukit.js/tag/1.2.1/version.txt (original) +++ kukit/kukit.js/tag/1.2.1/version.txt Mon Sep 10 19:37:24 2007 @@ -1 +1 @@ -1.2dev unreleased +1.2.1 Released 2007-09-10 From reebalazs at codespeak.net Mon Sep 10 19:38:38 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Mon, 10 Sep 2007 19:38:38 +0200 (CEST) Subject: [KSS-checkins] r46446 - kukit/kukit.js/branch/1.2/doc Message-ID: <20070910173838.2B75580F0@code0.codespeak.net> Author: reebalazs Date: Mon Sep 10 19:38:37 2007 New Revision: 46446 Modified: kukit/kukit.js/branch/1.2/doc/HISTORY.txt Log: Adjust history Modified: kukit/kukit.js/branch/1.2/doc/HISTORY.txt ============================================================================== --- kukit/kukit.js/branch/1.2/doc/HISTORY.txt (original) +++ kukit/kukit.js/branch/1.2/doc/HISTORY.txt Mon Sep 10 19:38:37 2007 @@ -6,6 +6,8 @@ - ... +kukit.js - 1.2.1 Released 2007-09-10 + - Fixed an issue that caused document:load fail [ree] From reebalazs at codespeak.net Mon Sep 10 19:40:48 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Mon, 10 Sep 2007 19:40:48 +0200 (CEST) Subject: [KSS-checkins] r46448 - kukit/kss.concatresource/tag/1.2.1 Message-ID: <20070910174048.E27B280F0@code0.codespeak.net> Author: reebalazs Date: Mon Sep 10 19:40:48 2007 New Revision: 46448 Added: kukit/kss.concatresource/tag/1.2.1/ - copied from r46447, kukit/kss.concatresource/branch/1.2/ Log: Branch for release From reebalazs at codespeak.net Mon Sep 10 19:43:22 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Mon, 10 Sep 2007 19:43:22 +0200 (CEST) Subject: [KSS-checkins] r46449 - in kukit/kss.concatresource/tag/1.2.1: . docs kss/concatresource Message-ID: <20070910174322.AD3F880F0@code0.codespeak.net> Author: reebalazs Date: Mon Sep 10 19:43:22 2007 New Revision: 46449 Removed: kukit/kss.concatresource/tag/1.2.1/setup.cfg Modified: kukit/kss.concatresource/tag/1.2.1/docs/HISTORY.txt kukit/kss.concatresource/tag/1.2.1/kss/concatresource/version.txt kukit/kss.concatresource/tag/1.2.1/setup.py Log: Set release Modified: kukit/kss.concatresource/tag/1.2.1/docs/HISTORY.txt ============================================================================== --- kukit/kss.concatresource/tag/1.2.1/docs/HISTORY.txt (original) +++ kukit/kss.concatresource/tag/1.2.1/docs/HISTORY.txt Mon Sep 10 19:43:22 2007 @@ -2,9 +2,10 @@ (name of developer listed in brackets) -kss.concatresource - 1.2dev Unreleased +kss.concatresource - 1.2.1 Released 2007-09-10 - - ... + - Prepare for release + [ree] kss.concatresource - 1.2 Released 2007-08-17 Modified: kukit/kss.concatresource/tag/1.2.1/kss/concatresource/version.txt ============================================================================== --- kukit/kss.concatresource/tag/1.2.1/kss/concatresource/version.txt (original) +++ kukit/kss.concatresource/tag/1.2.1/kss/concatresource/version.txt Mon Sep 10 19:43:22 2007 @@ -1 +1 @@ -1.2dev Unreleased +1.2.1 Released 2007-09-10 Deleted: /kukit/kss.concatresource/tag/1.2.1/setup.cfg ============================================================================== --- /kukit/kss.concatresource/tag/1.2.1/setup.cfg Mon Sep 10 19:43:22 2007 +++ (empty file) @@ -1,3 +0,0 @@ -[egg_info] -tag_build = dev -tag_svn_revision = true Modified: kukit/kss.concatresource/tag/1.2.1/setup.py ============================================================================== --- kukit/kss.concatresource/tag/1.2.1/setup.py (original) +++ kukit/kss.concatresource/tag/1.2.1/setup.py Mon Sep 10 19:43:22 2007 @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -version = '1.2' +version = '1.2.1' setup(name='concatresource', version=version, From reebalazs at codespeak.net Mon Sep 10 19:44:15 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Mon, 10 Sep 2007 19:44:15 +0200 (CEST) Subject: [KSS-checkins] r46450 - kukit/kss.concatresource/branch/1.2/docs Message-ID: <20070910174415.020AF80F0@code0.codespeak.net> Author: reebalazs Date: Mon Sep 10 19:44:15 2007 New Revision: 46450 Modified: kukit/kss.concatresource/branch/1.2/docs/HISTORY.txt Log: Adjust history Modified: kukit/kss.concatresource/branch/1.2/docs/HISTORY.txt ============================================================================== --- kukit/kss.concatresource/branch/1.2/docs/HISTORY.txt (original) +++ kukit/kss.concatresource/branch/1.2/docs/HISTORY.txt Mon Sep 10 19:44:15 2007 @@ -6,6 +6,11 @@ - ... +kss.concatresource - 1.2.1 Released 2007-09-10 + + - Prepare for release + [ree] + kss.concatresource - 1.2 Released 2007-08-17 - Change ;;; rendering in devel mode From reebalazs at codespeak.net Mon Sep 10 19:45:13 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Mon, 10 Sep 2007 19:45:13 +0200 (CEST) Subject: [KSS-checkins] r46451 - kukit/kss.core/tag/1.2.1 Message-ID: <20070910174513.C951680F8@code0.codespeak.net> Author: reebalazs Date: Mon Sep 10 19:45:12 2007 New Revision: 46451 Added: kukit/kss.core/tag/1.2.1/ - copied from r46450, kukit/kss.core/branch/1.2/ Log: Branch for release From reebalazs at codespeak.net Mon Sep 10 19:52:14 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Mon, 10 Sep 2007 19:52:14 +0200 (CEST) Subject: [KSS-checkins] r46452 - in kukit/kss.core/tag/1.2.1: . docs kss/core kss/core/pluginregistry Message-ID: <20070910175214.B9A6D80F8@code0.codespeak.net> Author: reebalazs Date: Mon Sep 10 19:52:13 2007 New Revision: 46452 Removed: kukit/kss.core/tag/1.2.1/setup.cfg Modified: kukit/kss.core/tag/1.2.1/docs/HISTORY.txt kukit/kss.core/tag/1.2.1/kss/core/ (props changed) kukit/kss.core/tag/1.2.1/kss/core/EXTERNALS.TXT kukit/kss.core/tag/1.2.1/kss/core/pluginregistry/ (props changed) kukit/kss.core/tag/1.2.1/kss/core/pluginregistry/EXTERNALS.TXT kukit/kss.core/tag/1.2.1/kss/core/version.txt kukit/kss.core/tag/1.2.1/setup.py Log: Set release Modified: kukit/kss.core/tag/1.2.1/docs/HISTORY.txt ============================================================================== --- kukit/kss.core/tag/1.2.1/docs/HISTORY.txt (original) +++ kukit/kss.core/tag/1.2.1/docs/HISTORY.txt Mon Sep 10 19:52:13 2007 @@ -2,9 +2,13 @@ (name of developer listed in brackets) -kss.core - 1.2dev Unreleased +kss.core - 1.2.1 Released 2007-09-10 - - ... + - Prepare for release. + [ree] + + - minor bug fixes + [ree, jfroche] kss.core - 1.2 Released 2007-08-17 Modified: kukit/kss.core/tag/1.2.1/kss/core/EXTERNALS.TXT ============================================================================== --- kukit/kss.core/tag/1.2.1/kss/core/EXTERNALS.TXT (original) +++ kukit/kss.core/tag/1.2.1/kss/core/EXTERNALS.TXT Mon Sep 10 19:52:13 2007 @@ -5,4 +5,4 @@ # You can update your working dir by: # svn propset svn:externals -F EXTERNALS.TXT . # -kukit http://codespeak.net/svn/kukit/kukit.js/branch/1.2 +kukit http://codespeak.net/svn/kukit/kukit.js/tag/1.2.1 Modified: kukit/kss.core/tag/1.2.1/kss/core/pluginregistry/EXTERNALS.TXT ============================================================================== --- kukit/kss.core/tag/1.2.1/kss/core/pluginregistry/EXTERNALS.TXT (original) +++ kukit/kss.core/tag/1.2.1/kss/core/pluginregistry/EXTERNALS.TXT Mon Sep 10 19:52:13 2007 @@ -7,4 +7,4 @@ # # concatresource is now included like as batteries -_concatresource https://codespeak.net/svn/kukit/kss.concatresource/branch/1.2/kss/concatresource +_concatresource https://codespeak.net/svn/kukit/kss.concatresource/tag/1.2.1/kss/concatresource Modified: kukit/kss.core/tag/1.2.1/kss/core/version.txt ============================================================================== --- kukit/kss.core/tag/1.2.1/kss/core/version.txt (original) +++ kukit/kss.core/tag/1.2.1/kss/core/version.txt Mon Sep 10 19:52:13 2007 @@ -1 +1 @@ -1.2dev unreleased +1.2.1 Released 2007-09-10 Deleted: /kukit/kss.core/tag/1.2.1/setup.cfg ============================================================================== --- /kukit/kss.core/tag/1.2.1/setup.cfg Mon Sep 10 19:52:13 2007 +++ (empty file) @@ -1,3 +0,0 @@ -[egg_info] -tag_build = dev -tag_svn_revision = true Modified: kukit/kss.core/tag/1.2.1/setup.py ============================================================================== --- kukit/kss.core/tag/1.2.1/setup.py (original) +++ kukit/kss.core/tag/1.2.1/setup.py Mon Sep 10 19:52:13 2007 @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import sys, os -version = '1.2' +version = '1.2.1' setup(name='kss.core', version=version, From reebalazs at codespeak.net Mon Sep 10 19:53:02 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Mon, 10 Sep 2007 19:53:02 +0200 (CEST) Subject: [KSS-checkins] r46453 - kukit/kss.core/branch/1.2/docs Message-ID: <20070910175302.9000D80F8@code0.codespeak.net> Author: reebalazs Date: Mon Sep 10 19:53:02 2007 New Revision: 46453 Modified: kukit/kss.core/branch/1.2/docs/HISTORY.txt Log: Set history Modified: kukit/kss.core/branch/1.2/docs/HISTORY.txt ============================================================================== --- kukit/kss.core/branch/1.2/docs/HISTORY.txt (original) +++ kukit/kss.core/branch/1.2/docs/HISTORY.txt Mon Sep 10 19:53:02 2007 @@ -6,6 +6,14 @@ - ... +kss.core - 1.2.1 Released 2007-09-10 + + - Prepare for release. + [ree] + + - minor bug fixes + [ree, jfroche] + kss.core - 1.2 Released 2007-08-17 - Refactored js code. From reebalazs at codespeak.net Mon Sep 10 19:54:32 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Mon, 10 Sep 2007 19:54:32 +0200 (CEST) Subject: [KSS-checkins] r46454 - kukit/kss.demo/tag/1.2.1 Message-ID: <20070910175432.DD8CD8100@code0.codespeak.net> Author: reebalazs Date: Mon Sep 10 19:54:32 2007 New Revision: 46454 Added: kukit/kss.demo/tag/1.2.1/ - copied from r46453, kukit/kss.demo/branch/1.2/ Log: Branch for release From reebalazs at codespeak.net Mon Sep 10 19:58:33 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Mon, 10 Sep 2007 19:58:33 +0200 (CEST) Subject: [KSS-checkins] r46456 - in kukit/kss.demo/tag/1.2.1: . docs kss/demo Message-ID: <20070910175833.5F5BF8104@code0.codespeak.net> Author: reebalazs Date: Mon Sep 10 19:58:33 2007 New Revision: 46456 Removed: kukit/kss.demo/tag/1.2.1/setup.cfg Modified: kukit/kss.demo/tag/1.2.1/docs/HISTORY.txt kukit/kss.demo/tag/1.2.1/kss/demo/version.txt kukit/kss.demo/tag/1.2.1/setup.py Log: Set release Modified: kukit/kss.demo/tag/1.2.1/docs/HISTORY.txt ============================================================================== --- kukit/kss.demo/tag/1.2.1/docs/HISTORY.txt (original) +++ kukit/kss.demo/tag/1.2.1/docs/HISTORY.txt Mon Sep 10 19:58:33 2007 @@ -2,9 +2,10 @@ (name of developer listed in brackets) -kss.demo - 1.2dev Unreleased +kss.demo - 1.2.1 Released 2007-09-10 - - ... + - Prepare for release + [ree] kss.demo - 1.2 Released 2007-08-17 Modified: kukit/kss.demo/tag/1.2.1/kss/demo/version.txt ============================================================================== --- kukit/kss.demo/tag/1.2.1/kss/demo/version.txt (original) +++ kukit/kss.demo/tag/1.2.1/kss/demo/version.txt Mon Sep 10 19:58:33 2007 @@ -1 +1 @@ -1.2dev Unreleased +1.2.1 Released 2007-09-10 Deleted: /kukit/kss.demo/tag/1.2.1/setup.cfg ============================================================================== --- /kukit/kss.demo/tag/1.2.1/setup.cfg Mon Sep 10 19:58:33 2007 +++ (empty file) @@ -1,3 +0,0 @@ -[egg_info] -tag_build = dev -tag_svn_revision = true Modified: kukit/kss.demo/tag/1.2.1/setup.py ============================================================================== --- kukit/kss.demo/tag/1.2.1/setup.py (original) +++ kukit/kss.demo/tag/1.2.1/setup.py Mon Sep 10 19:58:33 2007 @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import sys, os -version = '1.2' +version = '1.2.1' setup(name='kss.demo', version=version, @@ -26,12 +26,11 @@ zip_safe=False, install_requires=[ # -*- Extra requirements: -*- - 'kss.core>=dev', + 'kss.core>=1.2.1', ], entry_points=""" # -*- Entry points: -*- """, dependency_links=[ - 'https://codespeak.net/svn/kukit/kss.core/branch/1.2#egg=kss.core-dev', ], ) From reebalazs at codespeak.net Mon Sep 10 19:59:07 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Mon, 10 Sep 2007 19:59:07 +0200 (CEST) Subject: [KSS-checkins] r46457 - kukit/kss.demo/branch/1.2/docs Message-ID: <20070910175907.EB79A8105@code0.codespeak.net> Author: reebalazs Date: Mon Sep 10 19:59:07 2007 New Revision: 46457 Modified: kukit/kss.demo/branch/1.2/docs/HISTORY.txt Log: Adjust history Modified: kukit/kss.demo/branch/1.2/docs/HISTORY.txt ============================================================================== --- kukit/kss.demo/branch/1.2/docs/HISTORY.txt (original) +++ kukit/kss.demo/branch/1.2/docs/HISTORY.txt Mon Sep 10 19:59:07 2007 @@ -6,6 +6,11 @@ - ... +kss.demo - 1.2.1 Released 2007-09-10 + + - Prepare for release + [ree] + kss.demo - 1.2 Released 2007-08-17 - Prepare for release From reebalazs at codespeak.net Thu Sep 13 00:30:23 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Thu, 13 Sep 2007 00:30:23 +0200 (CEST) Subject: [KSS-checkins] r46522 - kukit/kss.demo/branch/ree-demoload Message-ID: <20070912223023.D6F0680F0@code0.codespeak.net> Author: reebalazs Date: Thu Sep 13 00:30:22 2007 New Revision: 46522 Added: kukit/kss.demo/branch/ree-demoload/ - copied from r46521, kukit/kss.demo/trunk/ Log: Branch off for ree-demoload From reebalazs at codespeak.net Thu Sep 13 00:53:03 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Thu, 13 Sep 2007 00:53:03 +0200 (CEST) Subject: [KSS-checkins] r46525 - kukit/kss.demo/branch/ree-demoload Message-ID: <20070912225303.6EC5780C3@code0.codespeak.net> Author: reebalazs Date: Thu Sep 13 00:53:02 2007 New Revision: 46525 Removed: kukit/kss.demo/branch/ree-demoload/ Log: Rearrange branch From reebalazs at codespeak.net Thu Sep 13 00:55:42 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Thu, 13 Sep 2007 00:55:42 +0200 (CEST) Subject: [KSS-checkins] r46526 - in kukit/kss.demo: branch/ree-demoload trunk Message-ID: <20070912225542.925F980D5@code0.codespeak.net> Author: reebalazs Date: Thu Sep 13 00:55:41 2007 New Revision: 46526 Added: kukit/kss.demo/branch/ree-demoload/ - copied from r46525, kukit/kss.demo/trunk/ Removed: kukit/kss.demo/trunk/ Log: Copy wrong commit to a branch From reebalazs at codespeak.net Thu Sep 13 00:57:37 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Thu, 13 Sep 2007 00:57:37 +0200 (CEST) Subject: [KSS-checkins] r46527 - kukit/kss.demo/trunk Message-ID: <20070912225737.42EDA80D5@code0.codespeak.net> Author: reebalazs Date: Thu Sep 13 00:57:36 2007 New Revision: 46527 Added: kukit/kss.demo/trunk/ - copied from r46522, kukit/kss.demo/branch/ree-demoload/ Log: fix trunk (sorry ohloh) From reebalazs at codespeak.net Thu Sep 13 00:31:24 2007 From: reebalazs at codespeak.net (reebalazs at codespeak.net) Date: Thu, 13 Sep 2007 00:31:24 +0200 (CEST) Subject: [KSS-checkins] r46523 - in kukit/kss.demo/trunk: docs kss/demo kss/demo/browser kss/demo/browser/commandaction kss/demo/browser/coreplugin kss/demo/browser/coresyntax kss/demo/browser/parameterfunction kss/demo/browser/selectors kss/demo/demo kss/demo/demo/parameterfunction Message-ID: <20070912223124.3CD9080F0@code0.codespeak.net> Author: reebalazs Date: Thu Sep 13 00:31:22 2007 New Revision: 46523 Added: kukit/kss.demo/trunk/kss/demo/browser/demoview.py - copied unchanged from r46458, kukit/kss.demo/trunk/kss/demo/demoview.py kukit/kss.demo/trunk/kss/demo/browser/registry.py kukit/kss.demo/trunk/kss/demo/demo/ - copied from r46458, kukit/kss.demo/trunk/kss/demo/browser/ kukit/kss.demo/trunk/kss/demo/demo/config.py kukit/kss.demo/trunk/kss/demo/demo/parameterfunction/kssid.kss kukit/kss.demo/trunk/kss/demo/demo/parameterfunction/kssid.pt kukit/kss.demo/trunk/kss/demo/events.py kukit/kss.demo/trunk/kss/demo/registry.py Removed: kukit/kss.demo/trunk/kss/demo/browser/autoupdate.kss kukit/kss.demo/trunk/kss/demo/browser/autoupdate.pt kukit/kss.demo/trunk/kss/demo/browser/basic_commands.kss kukit/kss.demo/trunk/kss/demo/browser/basic_commands.pt kukit/kss.demo/trunk/kss/demo/browser/cancel_submit.kss kukit/kss.demo/trunk/kss/demo/browser/cancel_submit.pt kukit/kss.demo/trunk/kss/demo/browser/commandaction/ kukit/kss.demo/trunk/kss/demo/browser/coreplugin/ kukit/kss.demo/trunk/kss/demo/browser/coresyntax/ kukit/kss.demo/trunk/kss/demo/browser/draganddrop.kss kukit/kss.demo/trunk/kss/demo/browser/draganddrop.pt kukit/kss.demo/trunk/kss/demo/browser/effects.kss kukit/kss.demo/trunk/kss/demo/browser/effects.pt kukit/kss.demo/trunk/kss/demo/browser/error_handling.kss kukit/kss.demo/trunk/kss/demo/browser/error_handling.pt kukit/kss.demo/trunk/kss/demo/browser/form_submit.kss kukit/kss.demo/trunk/kss/demo/browser/form_submit.pt kukit/kss.demo/trunk/kss/demo/browser/html_inserts.kss kukit/kss.demo/trunk/kss/demo/browser/html_inserts.pt kukit/kss.demo/trunk/kss/demo/browser/inline_edit.kss kukit/kss.demo/trunk/kss/demo/browser/inline_edit.pt kukit/kss.demo/trunk/kss/demo/browser/more_selectors.js kukit/kss.demo/trunk/kss/demo/browser/more_selectors.kss kukit/kss.demo/trunk/kss/demo/browser/more_selectors.pt kukit/kss.demo/trunk/kss/demo/browser/parameterfunction/ kukit/kss.demo/trunk/kss/demo/browser/preventdefault.kss kukit/kss.demo/trunk/kss/demo/browser/preventdefault.pt kukit/kss.demo/trunk/kss/demo/browser/selectors/ kukit/kss.demo/trunk/kss/demo/browser/tree.kss kukit/kss.demo/trunk/kss/demo/browser/tree.pt kukit/kss.demo/trunk/kss/demo/browser/two_select_revisited.kss kukit/kss.demo/trunk/kss/demo/browser/two_select_revisited.pt kukit/kss.demo/trunk/kss/demo/browser/two_selects.kss kukit/kss.demo/trunk/kss/demo/browser/two_selects.pt kukit/kss.demo/trunk/kss/demo/browser/xpath.kss kukit/kss.demo/trunk/kss/demo/browser/xpath.pt kukit/kss.demo/trunk/kss/demo/demoview.py Modified: kukit/kss.demo/trunk/docs/HISTORY.txt kukit/kss.demo/trunk/kss/demo/browser/configure.zcml kukit/kss.demo/trunk/kss/demo/browser/kss_demo_index.pt kukit/kss.demo/trunk/kss/demo/configure.zcml kukit/kss.demo/trunk/kss/demo/demo/configure.zcml kukit/kss.demo/trunk/kss/demo/interfaces.py Log: Implement demo loading. Modified: kukit/kss.demo/trunk/docs/HISTORY.txt ============================================================================== --- kukit/kss.demo/trunk/docs/HISTORY.txt (original) +++ kukit/kss.demo/trunk/docs/HISTORY.txt Thu Sep 13 00:31:22 2007 @@ -6,6 +6,9 @@ - ... + - Implement pluggable demos + [ree] + kss.demo - 1.2 Released 2007-08-17 - Prepare for release Deleted: /kukit/kss.demo/trunk/kss/demo/browser/autoupdate.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/autoupdate.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,9 +0,0 @@ -div#update-area:timeout { - evt-timeout-delay: 2000; - action-server: getCurrentTime; -} - -input#start-update:click { - action-server: getAutoupdateMarkup; -} - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/autoupdate.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/autoupdate.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,37 +0,0 @@ - - - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

-

Three autoupdate

- -

Demo

-
-
- - - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/basic_commands.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/basic_commands.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,21 +0,0 @@ - -button#copyFrom:click { - action-server: copyFromDivContent; -} - -button#copyTo:click { - action-server: copyToDivContent; -} - -button#moveTo:click { - action-server: moveToDivContent; -} - -button#clear:click { - action-server: clearDivContent; -} - -button#change:click { - action-server: getDivContent; -} - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/basic_commands.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/basic_commands.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,121 +0,0 @@ - - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

- -

Kss mode

- -

Change tag content

-

Top div

-
- KSS -
- -

Bottom div

-
- copy here -
-

Javascript Styling

-

This page defines a link in the header which rel attribute points - to a .kss resource file on the server : - - - see the kss file here.

-

- This .kss file declares CSS selectors associated with events and server URLs called when the event occur. -

-

A javascript engine processes the XML content : it inserts javascript - events in the DOM.

-

- For instance, the click event of button with the id change will call asynchronously the getDivContent URL. - -

-

Server Asynchronous Call

-

- The events associated with Javascript just call the server asynchronously. -

-

- The response is a XML file. - The XML contains CSS selectors associated with commands. -

-

- The Javascript engine selects the DOM nodes to which it applies each command. -

-

- For instance, let's look at the moveToDivContent response. -

-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
-      xmlns:kukit="http://www.kukit.org/commands/1.0"><body>
-<kukit:commands>
-<kukit:command selector="div#copy" name="copyChildNodesTo"
-               selectorType="">
-    <kukit:param name="html_id">demo</kukit:param>
-</kukit:command>
-<kukit:command selector="div#copy" name="clearChildNodes"
-               selectorType="">
-</kukit:command>
-</kukit:commands>
-</body></html>
-   
-

- The XML specifies two commands to apply to the div#copy node : -

-

- copyChildNodesTo copies the children of the DOM node to the node with id demo. -

-

- clearChildNodes removes the children of the DOM node. -

- - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/cancel_submit.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/cancel_submit.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,5 +0,0 @@ -input#submit:click { - evt-click-preventdefault: true; - action-server: save; - save-text_save: currentFormVar(text_save); -} Deleted: /kukit/kss.demo/trunk/kss/demo/browser/cancel_submit.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/cancel_submit.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,27 +0,0 @@ - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

- -

Cancel Submit Click Demo

-

saved !

-

Empty

-
-
- - - -
-
-
-

Kukit response

- - Modified: kukit/kss.demo/trunk/kss/demo/browser/configure.zcml ============================================================================== --- kukit/kss.demo/trunk/kss/demo/browser/configure.zcml (original) +++ kukit/kss.demo/trunk/kss/demo/browser/configure.zcml Thu Sep 13 00:31:22 2007 @@ -1,19 +1,71 @@ - - - - - - + + + + - + + + + + + + + + + + + + + + + + + /> + + Deleted: /kukit/kss.demo/trunk/kss/demo/browser/draganddrop.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/draganddrop.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,54 +0,0 @@ -.draggable:dad-drag { -} - -.horizontal:dad-start { - evt-dad-start-constraint: horizontal; -} - -.horizontal:dad-end { - evt-dad-end-constraint: horizontal; -} - -.horizontal:dad-drag { - evt-dad-drag-constraint: horizontal; -} - -.vertical:dad-start { - evt-dad-start-constraint: vertical; -} - -.vertical:dad-end { - evt-dad-end-constraint: vertical; -} - -.vertical:dad-drag { - evt-dad-drag-constraint: vertical; -} - -} - -.draggable:dad-start { - action-client: logDebug; - action-client: setStyle; - setStyle-name: color; - setStyle-value: red; -} - -.draggable:dad-end { - action-client: logDebug; - action-client: setStyle; - setStyle-name: color; - setStyle-value: black; -} - - -.droppable:dad-drop { - action-client: replaceInnerHTML; - replaceInnerHTML-html: "dropped"; -} - -.droppable:dad-hover { - action-client: replaceInnerHTML; - replaceInnerHTML-html: "hovered"; -} - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/draganddrop.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/draganddrop.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,66 +0,0 @@ - - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

-

Drag and drop

- - - - - - - - - - - -
FreeVerticalHorizontal
-
Drag me
-
Drop me here
-
or here
-
-
Drag me
-
Drop me here
-
or here
-
-
Drag me
-
Drop me here
-
or here
-
- - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/effects.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/effects.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,9 +0,0 @@ -.effects:click { - action-client: effect; - effect-type: nodeAttr('id'); -} - -input#resetEffects:click { - action-server: resetEffects; -} - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/effects.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/effects.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,27 +0,0 @@ - - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

-

Effects

- -

Demo

-
Click here to make me fade
-
Click here to make me puff
-
Click here to make me blindup
- - - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/error_handling.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/error_handling.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,50 +0,0 @@ - - -.clickable:click { - evt-click-preventdefault: true; - action-server: errTest; - errTest-id: nodeAttr(id); - errTest-act: kssAttr(act); -} - -/* This one adds the err handling to the second row - It also demonstrates kss rules are merged like css ones -*/ - -/* -.handled:click { - errTest-error: alert; - alert-message: nodeAttr(id); -} -*/ - -/* The next rule demonstrates that instead of executing a local - action on the originally selected node, we use executeCommand - which execute a given local action on a new set of selected nodes. -*/ - -.handled:click { - errTest-error: executeCommand; - executeCommand-commandSelector: 'update-status'; - executeCommand-commandSelectorType: htmlid; - executeCommand-commandName: replaceInnerHTML; - executeCommand-html: 'Error handler activated.'; -} - -/* Spinner control -*/ - -#spinner-status:spinneron { - evt-spinneron-laziness: 0; - action-client: setStyle; - setStyle-name: display; - setStyle-value: block; -} - -#spinner-status:spinneroff { - evt-spinneroff-laziness: 0; - action-client: setStyle; - setStyle-name: display; - setStyle-value: none; -} - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/error_handling.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/error_handling.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,73 +0,0 @@ - - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

- -

Error handling demo

-
-
Loading...
-
-

-
-

We try four cases here. "No error" and "Empty action" are both valid responses, - except that the second one gives a response with no commands and so it issues a warning into - the kss log. "Error" gives a failed responses due to an exception in the server method - on the server.

-

The buttons in the first row have no error handled.

-
- - - - - -
-

The buttons in the second row have individual error handlers.

-
-
- - - - - -
-

- 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.

-

- 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 - your server will not get hogged. More will be told about this topic in the upcoming - documentation.

- - - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/form_submit.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/form_submit.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,5 +0,0 @@ -input#submit:click { - evt-click-preventdefault: true; - action-server: formSave; - formSave-data: currentForm(); -} Deleted: /kukit/kss.demo/trunk/kss/demo/browser/form_submit.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/form_submit.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,54 +0,0 @@ - - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

- -

Form Submit Demo

-

saved !

-

Empty

-
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
- - -
-
-
- - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/html_inserts.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/html_inserts.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,21 +0,0 @@ - -button#insertBefore:click { - action-server: htmlInsertBefore; -} - -button#insertAfter:click { - action-server: htmlInsertAfter; -} - -button#insertAsFirstChild:click { - action-server: htmlInsertAsFirstChild; -} - -button#insertAsLastChild:click { - action-server: htmlInsertAsLastChild; -} - -button#insert:click { - action-server: htmlReplace; -} - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/html_inserts.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/html_inserts.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,61 +0,0 @@ - - - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

-

HTML insertions (a.k.a. Change tags II.)

-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-

The playground:

-

KSS for a life.

- - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/inline_edit.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/inline_edit.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,20 +0,0 @@ -div#text:click { - action-server: getInputField; - getInputField-value: currentFormVar(value); -} - -div#text:keydown { -evt-keydown-allowbubbling: true; -evt-keydown-keycodes: 13; -action-client:log; -action-server: saveText; -saveText-value:currentFormVar(value); - -} - -input#save:click { - action-server: saveText; - saveText-value: currentFormVar(value); -} - - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/inline_edit.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/inline_edit.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,22 +0,0 @@ - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

- -

Instant edit Demo

-
-
-
- click me! - -
-
-
- - Modified: kukit/kss.demo/trunk/kss/demo/browser/kss_demo_index.pt ============================================================================== --- kukit/kss.demo/trunk/kss/demo/browser/kss_demo_index.pt (original) +++ kukit/kss.demo/trunk/kss/demo/browser/kss_demo_index.pt Thu Sep 13 00:31:22 2007 @@ -4,52 +4,29 @@ tal:attributes="href string:${context/@@absolute_url}/++resource++demo.css"/> -

KSS demos

- -

Parameter functions

- -

Selectors

- -

Core syntax

- -

Core plugin

- -

Commands/Actions

- - -

- -

Unit tests

+

KSS demos

+

Unit tests

- + + +

Core plugin

+
+ +

Plugin namespace core

+
+ +

Category

+
+ +
+ Deleted: /kukit/kss.demo/trunk/kss/demo/browser/more_selectors.js ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/more_selectors.js Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,37 +0,0 @@ - -/* Event plugins for the more_selector demo */ -kukit.more_selectors = {}; - -kukit.more_selectors.AnnoyClickerEvent = function() { -}; - -kukit.more_selectors.AnnoyClickerEvent.prototype.__bind_click__ = function(name, func_to_bind, oper) { - // validate and set parameters - oper.completeParms([], {'count': '3'}, 'annoyClicker event binding'); - oper.evalInt('count', 'annoyClicker event binding'); - if (oper.parms.count < 1) - throw 'Parameter count must be > 0, "' + oper.parms.count + '"'; - // overwrite countsomuch - this.countsomuch = oper.parms.count; - this.count = this.countsomuch; - // Just bind the event via the native event binder - oper.parms = {}; - kukit.pl.NativeEventBinder.prototype.__bind__('click', func_to_bind, oper); -}; - -kukit.more_selectors.AnnoyClickerEvent.prototype.__default_click__ = function(name, oper) { - oper.completeParms([], {}, 'annoyClicker event binding'); - this.count -= 1; - if (this.count == 0) { - // Continue with the real action. - this.count = this.countsomuch; - this.__continueEvent__('doit', oper.node, {}); - } else { - this.__continueEvent__('annoy', oper.node, {}); - } -}; - -kukit.eventsGlobalRegistry.register('annoyclicker', 'click', kukit.more_selectors.AnnoyClickerEvent, '__bind_click__', '__default_click__'); -kukit.eventsGlobalRegistry.register('annoyclicker', 'annoy', kukit.more_selectors.AnnoyClickerEvent, null, null); -kukit.eventsGlobalRegistry.register('annoyclicker', 'doit', kukit.more_selectors.AnnoyClickerEvent, null, null); - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/more_selectors.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/more_selectors.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,29 +0,0 @@ - -#button-one:annoyclicker-click(annoyMe) { -} - -behaviour:annoyclicker-doit(annoyMe) { - action-server: clickedButton; - clickedButton-id: nodeAttr(id); - action-client: log; - log-message: "Was here."; -} - -behaviour:annoyclicker-annoy(annoyMe) { - action-client: alert; - alert-message: "Keep trying until you get there"; -} - -#button-two:annoyclicker-click(annoyYou) { - evt-annoyclicker-click-count: 2; -} - -behaviour:annoyclicker-doit(annoyYou) { - action-server: clickedButton; - clickedButton-id: nodeAttr(id); -} - -behaviour:annoyclicker-annoy(annoyYou) { - action-client: alert; - alert-message: "Keep trying until you get there, from the second button"; -} Deleted: /kukit/kss.demo/trunk/kss/demo/browser/more_selectors.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/more_selectors.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,38 +0,0 @@ - - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

-

More complex selectors

- -

-This demo implements the annoyclicker-click kss plugin that shows a simple -pattern of creating stateful (class-like) events in a plugin -and how to bind them from kss. -

- -

-The first button and the second button are bound to two "event binder -instances", the first one sends every 3rd click to the server and -executes a local action otherwise; the second button does -the same but with a count of two. -

- - -

Demo

-
-
- - - - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/preventdefault.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/preventdefault.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,62 +0,0 @@ - -a#follow:click { - evt-click-preventdefault: true; - action-client: log; -} - -/* preventdefault is explicit on this.*/ - -input[type="text"].text:keydown { - evt-keydown-preventdefault: true; - evt-keydown-keycodes: 13; - action-client: log; -} - -/* Since some browsers (mainly, some version of Safari) - do a little bit of fireworks with the events (yeah, - cause it fires them up all together) we disable the - default on all of them */ -input[type="text"].text:keypress { - evt-keypress-preventdefault: true; - evt-keypress-keycodes: 13; - action-client: log; -} - -input[type="text"].text:keyup { - evt-keyup-preventdefault: true; - evt-keyup-keycodes: 13; - action-client: log; -} - -/* This used to be the old hack for Safari, actually disabling - the default (submit) on button click. - Apparently the default action for Safari is not "submit the form" - but rather "click on submit", hence triggering another event - through an event */ -input[type="submit"]:click { - evt-click-preventdefault: true; - action-client: log; -} - -/* Second row, allowbubbling combined: */ - -div#follow-wrapper:click { - evt-click-preventdefault: true; - evt-click-allowbubbling: true; - action-client: log; -} - -/* preventdefault is explicit on this.*/ -div#text-wrapper:keydown { - evt-keydown-preventdefault: true; - evt-keydown-allowbubbling: true; - evt-keydown-keycodes: 13; - action-client: log; -} - -div#submit-wrapper:click { - evt-click-preventdefault: true; - evt-click-allowbubbling: true; - action-client: log; -} - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/preventdefault.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/preventdefault.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,46 +0,0 @@ - - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

- -

Preventdefault Demo

-

- This is for testing the work of preventdefault to test a specific - workaround against a Safari bug. Specifically, none of the above - controls should cause a page reload. -

-
-

Do not follow

- - - - - -

The same with allowbubbling combined:

- -
- -
-
- -
-
- -
-
- - Added: kukit/kss.demo/trunk/kss/demo/browser/registry.py ============================================================================== --- (empty file) +++ kukit/kss.demo/trunk/kss/demo/browser/registry.py Thu Sep 13 00:31:22 2007 @@ -0,0 +1,36 @@ + +from kss.demo.interfaces import IKSSDemoRegistry +from zope.component import getUtility +try: + from Products.Five import BrowserView +except ImportError: + from zope.publisher.browser import BrowserView + +class KSSDemoRegistryView(BrowserView): + + def getSortedDemos(self): + """Get demos""" + registry = getUtility(IKSSDemoRegistry) + return registry.getSortedDemos() + + def getDemoGroups(self): + """Get demos groupped by plugin_namespace, category""" + demo_groups = [] + prev_plugin_namespace, prev_category = None, None + group = None + for demo in self.getSortedDemos(): + plugin_namespace = demo['plugin_namespace'] + category = demo['category'] + if prev_plugin_namespace != plugin_namespace or \ + prev_category != category: + # Start a new group. + group = [] + demo_groups.append(dict( + plugin_namespace = plugin_namespace, + category = category, + demos = group, + )) + prev_plugin_namespace = plugin_namespace + prev_category = category + group.append(demo) + return demo_groups Deleted: /kukit/kss.demo/trunk/kss/demo/browser/tree.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/tree.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,11 +0,0 @@ -.state-expanded:click { - action-server: collapseSubTree; - collapseSubTree-value: kssAttr("node"); - collapseSubTree-xvalue: kssAttr("xnode"); -} - -.state-collapsed:click { - action-server: expandSubTree; - expandSubTree-value: kssAttr("node"); - expandSubTree-xvalue: kssAttr("xnode"); -} Deleted: /kukit/kss.demo/trunk/kss/demo/browser/tree.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/tree.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,50 +0,0 @@ - - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

- -

Tree Demo

-

This is not finished yet.

-

In this demo we use attributes in a special namespace. This makes - it possible to put attributes to nodes without being forced to reuse "id" - or otherwise produce invalid html.

-

There are two ways to provide these attributes in pages: - with real xhtml (mimetype text/xhtml), namespace attributes can be used, - with transitional xhtml (mimetype text/html) - the attributes can be encoded into "class" attributes. Both are demonstrated - in this example in parallel, but in reality, one of these should be - used depending on the content type of the page.

-
-
    -
  • 1
  • -
  • 2
  • -
      -
    • 2.1
    • -
    • 2.2
    • -
    -
  • 3
  • -
      -
    • 3.1
    • -
    • 3.2
    • -
    -
- -
- - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/two_select_revisited.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/two_select_revisited.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,5 +0,0 @@ -select.master-select:change { - action-server: updateSlaveSelector; - updateSlaveSelector-masterid: nodeAttr("id"); - updateSlaveSelector-value: currentFormVar(); -} Deleted: /kukit/kss.demo/trunk/kss/demo/browser/two_select_revisited.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/two_select_revisited.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,39 +0,0 @@ - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

-

Master-slave selects revisited

-
-
- - -
-
- - -
-
- - -
-
- - Deleted: /kukit/kss.demo/trunk/kss/demo/browser/two_selects.kss ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/two_selects.kss Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,4 +0,0 @@ -select#first:change { - action-server: getCorrespondingSelect; - getCorrespondingSelect-value: currentFormVar(value); -} Deleted: /kukit/kss.demo/trunk/kss/demo/browser/two_selects.pt ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/browser/two_selects.pt Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,21 +0,0 @@ - - - - - - -

All demos

-

Start logging pane

-

View KSS resource

-

Two Selects

-
- - - -

Remove Node with XPath

-

XPath

-

next 1

-

next 2

-

next 3

- - - 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 Sep 13 00:31:22 2007 @@ -15,509 +15,92 @@ title="View" /> - - + - + - - + - - + - - - + class=".simplecontent.SimpleContent" + meta_type="KssDemo SimpleContent" + addview="AddSimpleContent.html" + permission="zope.View" + global="True" + /> - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - + + + + - - - - - + + Added: kukit/kss.demo/trunk/kss/demo/demo/config.py ============================================================================== --- (empty file) +++ kukit/kss.demo/trunk/kss/demo/demo/config.py Thu Sep 13 00:31:22 2007 @@ -0,0 +1,32 @@ + +from kss.demo.interfaces import IKSSDemoCollection +from kss.demo.registry import KSSDemo +from zope.interface import implements + +class KSSCoreDemos(object): + implements(IKSSDemoCollection) + + demos = ( + KSSDemo('', '', "basic_commands.html", "Change tag content"), + KSSDemo('', '', "two_selects.html", "Two selects"), + KSSDemo('', '', "autoupdate.html", "Auto update"), + KSSDemo('', '', "inline_edit.html", "Inline edit"), + KSSDemo('', '', "cancel_submit.html", "Cancel Submit Click"), + KSSDemo('', '', "tree.html", "Tree"), + KSSDemo('', '', "more_selectors.html", "More complex selectors"), + KSSDemo('', '', "two_select_revisited.html", "Master-slave selects revisited"), + KSSDemo('', '', "form_submit.html", "Form submit"), + KSSDemo('', '', "effects.html", "Effects"), + KSSDemo('', '', "error_handling.html", "Error handling"), + KSSDemo('', '', "preventdefault.html", "Preventdefault (a.k.a. Safari workarounds)"), + KSSDemo('', '', "html_inserts.html", "HTML insertions (Change tag content returns)"), +## KSSDemo('', '', "draganddrop.html", "Scriptaculous drag and drop"), + KSSDemo('', 'Parameter functions', 'pf_forms.html', 'Forms'), + KSSDemo('', 'Selectors', 'selectors.html', 'Parent node selector'), + KSSDemo('', 'Core syntax', "kss_selector_param.html", "Kss selector parameters"), + KSSDemo('', 'Core syntax', "kss_url_param.html", "Kss url parameters"), + KSSDemo('', 'Core plugin', "kss_evt_preventbubbling.html", "Prevent bubbling KSS event parameter"), + KSSDemo('', 'Commands/Actions', "ca_focus.html", "Focus"), + KSSDemo('', 'Commands/Actions', "actions.html", "Toggle case action"), + ) + Modified: kukit/kss.demo/trunk/kss/demo/demo/configure.zcml ============================================================================== --- kukit/kss.demo/trunk/kss/demo/browser/configure.zcml (original) +++ kukit/kss.demo/trunk/kss/demo/demo/configure.zcml Thu Sep 13 00:31:22 2007 @@ -1,19 +1,434 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Added: kukit/kss.demo/trunk/kss/demo/demo/parameterfunction/kssid.kss ============================================================================== --- (empty file) +++ kukit/kss.demo/trunk/kss/demo/demo/parameterfunction/kssid.kss Thu Sep 13 00:31:22 2007 @@ -0,0 +1,91 @@ +#text:click { + action-client: executeCommand; + executeCommand-name: replaceInnerHTML; + executeCommand-selector: "#target"; + executeCommand-html: currentFormVar(); +} + +#text-by-name:click { + action-client: executeCommand; + executeCommand-name: replaceInnerHTML; + executeCommand-selector: "#target"; + executeCommand-html: currentFormVar(text-by-name); +} + +#text-by-kssname:click { + action-client: executeCommand; + executeCommand-name: replaceInnerHTML; + executeCommand-selector: "#target"; + executeCommand-html: currentFormVar(kssAttr(key1, true)); +} +#textarea:click { + action-client: executeCommand; + executeCommand-name: replaceInnerHTML; + executeCommand-selector: "#target"; + executeCommand-html: currentFormVar(); +} + +#textarea-by-name:click { + action-client: executeCommand; + executeCommand-name: replaceInnerHTML; + executeCommand-selector: "#target"; + executeCommand-html: currentFormVar("textarea-by-name"); +} + +#radio1:click { + action-client: executeCommand; + executeCommand-name: replaceInnerHTML; + executeCommand-selector: "#target"; + executeCommand-html: currentFormVar(); +} + +#radio2:click { + action-client: executeCommand; + executeCommand-name: replaceInnerHTML; + executeCommand-selector: "#target"; + executeCommand-html: currentFormVar(); +} + +#radio-by-name:click { + action-client: executeCommand; + executeCommand-name: replaceInnerHTML; + executeCommand-selector: "#target"; + executeCommand-html: currentFormVar(radio-by-name); +} + +#fullform-simple:click { + action-server: submitFullForm; + submitFullForm-form: currentForm(); +} + +#fullform-simplenamed:click { + action-server: submitFullForm; + submitFullForm-form: form(full1); +} + +#fullform-current:click { + action-server: submitFullFormIntoRequest; + submitFullFormIntoRequest-kssSubmitForm: currentForm(); +} + +#fullform-named:click { + action-server: submitFullFormIntoRequest; + submitFullFormIntoRequest-kssSubmitForm: form(full2); +} + +#fullform-namedbystring:click { + action-server: submitFullFormIntoRequest; + submitFullFormIntoRequest-kssSubmitForm: 'full2'; +} + +#single-select:click { + action-client: executeCommand; + executeCommand-name: replaceInnerHTML; + executeCommand-selector: "#target"; + executeCommand-html: currentFormVar(single-select); +} + +#multiple-select:click { + action-server: submitMultiSelect; + submitMultiSelect-items: currentFormVar(multiple-select); +} Added: kukit/kss.demo/trunk/kss/demo/demo/parameterfunction/kssid.pt ============================================================================== --- (empty file) +++ kukit/kss.demo/trunk/kss/demo/demo/parameterfunction/kssid.pt Thu Sep 13 00:31:22 2007 @@ -0,0 +1,224 @@ + + + + + + + +

Forms

+

We test the parameter functions related to forms : those functions + extract values from fields to use them in the kinetic stylesheet.

+

The inner HTML of the div below will be replaced with the + value of the form element.

+
Target
+ +

+ currentFormVar() with text field. +

+
+ Click the text field. +
+
+ +
+

+ currentFormVar(name) with text field. +

+
+ Click the button. +
+
+
+ Click me ! + +
+
+

+ currentFormVar(kssAttr('name')) with text field. +

+
+ Click the button. +
+
+
+ Click me ! + +
+
+ +

+ currentFormVar() with textarea field. +

+
+ Click the textarea field. +
+
+ +
+

+ currentFormVar(name) with textarea field. +

+
+ Click the button. +
+
+
+ Click me ! + +
+
+

+ currentFormVar() with radio field. +

+
+ Click one of the radio buttons. +
+
radio-1 + + radio-2 + +
+

+ currentFormVar(name) with radio field. +

+
+ Click the button. +
+
+ Click me ! + radio-1 + + radio-2 + +
+ +

+ currentFormVar(name) with select field. +

+
+ Click the button. +
+
+ Click me ! + +
+ +

+ currentFormVar(name) with multiple select field. +

+
+ Click the button. +
+
+ Click me ! + +
+ + +

+ form(full1) with simple field names, named form +

+
+ Click the button. +
+ Click me ! +
+
+

+ currentForm() with simple field names +

+
+ Click the button. +
+ Click me ! + + +
+
+

+ xxx-kssSubmitForm: form(full2) with complex field names, named form +

+
+ Click the button. +
+ Click me ! +

+ xxx-kssSubmitForm: 'field2' with complex field names, named form, given as string +

+
+ Click the button. +
+ Click me ! +
+

+ xxx-kssSubmitForm: currentForm() with complex field names +

+
+ Click the button. +
+ Click me ! +
+ value1: + + value2: + +
+ listval: + + +
+ recordval: + + +
+ recordsval: + + + + +
+
+ + + + Deleted: /kukit/kss.demo/trunk/kss/demo/demoview.py ============================================================================== --- /kukit/kss.demo/trunk/kss/demo/demoview.py Thu Sep 13 00:31:22 2007 +++ (empty file) @@ -1,200 +0,0 @@ -# Copyright (c) 2005-2007 -# Authors: KSS Project Contributors (see docs/CREDITS.txt) -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as published -# by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -from kss.core import KSSView, force_unicode, KSSExplicitError, kssaction -import datetime - -class KSSDemoView(KSSView): - - def clearDivContent(self): - """ clear div content """ - self.getCommandSet('core').clearChildNodes('div#demo') - return self.render() - - def copyFromDivContent(self): - """ copy div content """ - self.getCommandSet('core').copyChildNodesFrom('div#copy', 'demo') - return self.render() - - def copyToDivContent(self): - """ copy div content """ - self.getCommandSet('core').copyChildNodesTo('div#copy', 'demo') - return self.render() - - def moveToDivContent(self): - """ copy div content """ - self.getCommandSet('core').copyChildNodesTo('div#copy', 'demo') - self.getCommandSet('core').clearChildNodes('div#copy') - return self.render() - - def getDivContent(self): - """ returns div content """ - self.getCommandSet('core').replaceInnerHTML('div#demo', '

it worked

') - self.getCommandSet('core').replaceInnerHTML('div#demo', '

it worked again

') - return self.render() - - def getCorrespondingSelect(self, value): - """ returns select content """ - mapping = {} - mapping['']=[] - 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 - # 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 - # The current solution, replace the outer node, works solidly. - result = ['') - self.getCommandSet('core').replaceHTML('select#second', ' '.join(result)) - return self.render() - - def getAutoupdateMarkup(self): - """ returns the current time """ - self.getCommandSet('core').replaceInnerHTML('div#update-wrapper', '
') - return self.render() - - def getCurrentTime(self): - """ 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', - '
' \ - '' - ) - 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.getCo