Author: reebalazs
Date: Sat Jan 26 09:08:21 2008
New Revision: 51055
Added:
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/config.py
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/config.py
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_client_action_alias.kss
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_client_action_alias.kss
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_client_action_alias.pt
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_client_action_alias.pt
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_selector_param_multiprop.kss
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_selector_param_multiprop.kss
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_selector_param_multiprop.pt
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_selector_param_multiprop.pt
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.kss
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.kss
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.pt
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.pt
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/selenium_tests/
- copied from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/selenium_tests/README.txt
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/README.txt
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_client_action_alias.html
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_client_action_alias.html
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_selector_param.html
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_selector_param.html
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_selector_param_multiprop.html
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_selector_param_multiprop.html
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_url_param_multiprop.html
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/kss_url_param_multiprop.html
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/selenium_tests/urlparam.html
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/selenium_tests/urlparam.html
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/zopeconfig.py
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/coresyntax/zopeconfig.py
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/config.py
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/config.py
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/kss_form_submit_multiprop.kss
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kss_form_submit_multiprop.kss
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/kss_form_submit_multiprop.pt
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kss_form_submit_multiprop.pt
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/kssid-UNUSED.kss
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kssid-UNUSED.kss
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/kssid-UNUSED.pt
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/kssid-UNUSED.pt
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/selenium_tests/
- copied from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/selenium_tests/
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/selenium_tests/README.txt
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/selenium_tests/README.txt
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/selenium_tests/kss_form_submit_multiprop.html
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/selenium_tests/kss_form_submit_multiprop.html
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/selenium_tests/pf_forms.html
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/selenium_tests/pf_forms.html
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/zopeconfig.py
- copied unchanged from r51053,
kukit/kss.core/branch/ree-1.4-markup-and-syntax-changes/kss/core/plugins/core/demo/parameterfunction/zopeconfig.py
Removed:
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/kssid.kss
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/kssid.pt
kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/kss_selector_param.html
kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/pf_forms.html
kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/urlparam.html
Modified:
kukit/kss.core/trunk/docs/HISTORY.txt
kukit/kss.core/trunk/kss/core/plugins/core/demo/binderclasses/configure.zcml
kukit/kss.core/trunk/kss/core/plugins/core/demo/config.py
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/configure.zcml
kukit/kss.core/trunk/kss/core/plugins/core/demo/demoview.py
kukit/kss.core/trunk/kss/core/plugins/core/demo/form_submit.kss
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/configure.zcml
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/forms.kss
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/forms.pt
kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/0_ecmaunit_tests.html
kukit/kss.core/trunk/kss/core/plugins/core/demo/zopeconfig.py
Log:
Merge in branch ree-1.4-markup-and-syntax-changes
Modified: kukit/kss.core/trunk/docs/HISTORY.txt
==============================================================================
--- kukit/kss.core/trunk/docs/HISTORY.txt (original)
+++ kukit/kss.core/trunk/docs/HISTORY.txt Sat Jan 26 09:08:21 2008
@@ -6,6 +6,27 @@
- ...
+ - 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]
Modified:
kukit/kss.core/trunk/kss/core/plugins/core/demo/binderclasses/configure.zcml
==============================================================================
---
kukit/kss.core/trunk/kss/core/plugins/core/demo/binderclasses/configure.zcml
(original)
+++
kukit/kss.core/trunk/kss/core/plugins/core/demo/binderclasses/configure.zcml
Sat Jan 26 09:08:21 2008
@@ -9,12 +9,12 @@
-->
<!-- Set up the demo utility, needed for registration -->
- <!-- <utility -->
- <!-- name="core_demo_for_binderclasses" -->
- <!-- factory=".zopeconfig.KSSDemos" -->
- <!-- provides="kss.demo.interfaces.IKSSDemoResource" -->
- <!-- permission="zope.Public" -->
- <!-- /> -->
+ <utility
+ name="core_demo_for_binderclasses"
+ factory=".zopeconfig.KSSDemos"
+ provides="kss.demo.interfaces.IKSSDemoResource"
+ permission="zope.Public"
+ />
<!-- Set up resources needed for the demo -->
<browser:page
Modified: kukit/kss.core/trunk/kss/core/plugins/core/demo/config.py
==============================================================================
--- kukit/kss.core/trunk/kss/core/plugins/core/demo/config.py (original)
+++ kukit/kss.core/trunk/kss/core/plugins/core/demo/config.py Sat Jan 26
09:08:21 2008
@@ -21,10 +21,7 @@
KSSDemo('', '', "preventdefault.html", "Preventdefault (a.k.a. Safari
workarounds)"),
KSSDemo('', '', "html_inserts.html", "HTML insertions (Change tag
content returns)"),
KSSDemo('', '', "client-server-protocol", "Client server protocol"),
- 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 events', "kss_evt_preventbubbling.html", "Prevent
bubbling KSS event parameter"),
KSSDemo('', 'Core events', "kss_keyevents.html", "Key events"),
KSSDemo('', 'Commands/Actions', "ca_focus.html", "Focus"),
Modified:
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/configure.zcml
==============================================================================
--- kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/configure.zcml
(original)
+++ kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/configure.zcml
Sat Jan 26 09:08:21 2008
@@ -1,8 +1,19 @@
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
+ xmlns:zcml="http://namespaces.zope.org/zcml"
i18n_domain="kss"
>
+ <!-- Set up the demo utility -->
+ <configure zcml:condition="have kss_demo_version_1_2">
+ <utility
+ name="coresyntax"
+ factory=".zopeconfig.KSSCoreSyntaxDemos"
+ provides="kss.demo.interfaces.IKSSDemoResource"
+ permission="zope.Public"
+ />
+ </configure>
+
<!-- selector parameter -->
<browser:page
@@ -17,6 +28,21 @@
name="kss_selector_param.kss"
/>
+ <!-- selector parameter with multi property-->
+
+ <browser:page
+ for="kss.demo.interfaces.ISimpleContent"
+ template="kss_selector_param_multiprop.pt"
+ name="kss_selector_param_multiprop.html"
+ permission="zope.View"
+ />
+
+ <browser:resource
+ file="kss_selector_param_multiprop.kss"
+ name="kss_selector_param_multiprop.kss"
+ />
+
+
<!-- url parameter -->
<browser:page
@@ -55,5 +81,33 @@
name="kss_url_param.kss"
/>
+ <!-- url parameter with multi property -->
+
+ <browser:page
+ for="kss.demo.interfaces.ISimpleContent"
+ template="kss_url_param_multiprop.pt"
+ name="kss_url_param_multiprop.html"
+ permission="zope.View"
+ />
+
+ <browser:resource
+ file="kss_url_param_multiprop.kss"
+ name="kss_url_param_multiprop.kss"
+ />
+
+
+ <!-- client action aliases -->
+ <browser:page
+ for="kss.demo.interfaces.ISimpleContent"
+ template="kss_client_action_alias.pt"
+ name="kss_client_action_alias.html"
+ permission="zope.View"
+ />
+
+ <browser:resource
+ file="kss_client_action_alias.kss"
+ name="kss_client_action_alias.kss"
+ />
+
</configure>
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 Sat Jan 26
09:08:21 2008
@@ -136,9 +136,9 @@
self.getCommandSet('core').replaceHTML('select#%s' % slaveid, '
'.join(result))
return self.render()
- def formSubmitSave(self, data):
+ def formSubmitSave(self):
result = ['<p>Async saved:</p><table><th>Name:</th><th>Value:</th>']
- for key, value in data.items():
+ for key, value in self.request.form.items():
result.append('<tr><td>%s</td><td>%s</td></tr>' % (key, value))
result.append('</table>')
# We need to make unicode. But on Z2 we receive utf-8, on Z3 unicode
Modified: kukit/kss.core/trunk/kss/core/plugins/core/demo/form_submit.kss
==============================================================================
--- kukit/kss.core/trunk/kss/core/plugins/core/demo/form_submit.kss
(original)
+++ kukit/kss.core/trunk/kss/core/plugins/core/demo/form_submit.kss Sat Jan
26 09:08:21 2008
@@ -1,5 +1,5 @@
input#submit:click {
evt-click-preventdefault: true;
action-server: formSave;
- formSave-data: currentForm();
+ formSave-kssSubmitForm: currentForm();
}
Modified:
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/configure.zcml
==============================================================================
---
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/configure.zcml
(original)
+++
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/configure.zcml
Sat Jan 26 09:08:21 2008
@@ -1,8 +1,20 @@
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
+ xmlns:zcml="http://namespaces.zope.org/zcml"
i18n_domain="kss"
>
+ <!-- Set up the demo utility -->
+ <configure zcml:condition="have kss_demo_version_1_2">
+ <utility
+ name="coreproviders"
+ factory=".zopeconfig.ValueProviderDemos"
+ provides="kss.demo.interfaces.IKSSDemoResource"
+ permission="zope.Public"
+ />
+ </configure>
+
+
<!-- forms -->
<browser:page
for="kss.demo.interfaces.ISimpleContent"
@@ -40,5 +52,19 @@
permission="zope.View"
/>
+
+ <!-- Form submit, with multiple properties -->
+ <browser:page
+ for="kss.demo.interfaces.ISimpleContent"
+ template="kss_form_submit_multiprop.pt"
+ name="kss_form_submit_multiprop.html"
+ permission="zope.View"
+ />
+
+ <browser:resource
+ file="kss_form_submit_multiprop.kss"
+ name="kss_form_submit_multiprop.kss"
+ />
+
</configure>
Modified:
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/forms.kss
==============================================================================
--- kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/forms.kss
(original)
+++ kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/forms.kss
Sat Jan 26 09:08:21 2008
@@ -45,16 +45,6 @@
replaceInnerHTML-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();
Modified:
kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/forms.pt
==============================================================================
--- kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/forms.pt
(original)
+++ kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/forms.pt
Sat Jan 26 09:08:21 2008
@@ -143,24 +143,14 @@
<code>form(full1)</code> with simple field names, named form
</h3>
<div class="help">
- Click the button.
+ Removed after deprecation.
+ </div>
+ <h3>
+ <code>currentForm()</code> with simple field names
+ </h3>
+ <div class="help">
+ Removed after deprecation.
</div>
- <a class="button click cursorPointer" id="fullform-simplenamed">Click me
!</a>
- <form name="full1">
- <fieldset>
- <h3>
- <code>currentForm()</code> with simple field names
- </h3>
- <div class="help">
- Click the button.
- </div>
- <a class="button click cursorPointer" id="fullform-simple">Click me
!</a>
- <input class="click cursorPointer"
- type="text" name="value1" value="first value" />
- <input class="click cursorPointer"
- type="text" name="value2" value="second value"/>
- </fieldset>
- </form>
<h3>
<code>xxx-kssSubmitForm: form(full2)</code> with complex field names,
named form
</h3>
@@ -169,7 +159,7 @@
</div>
<a class="button click cursorPointer" id="fullform-named">Click me !</a>
<h3>
- <code>xxx-kssSubmitForm: 'field2'</code> with complex field names, named
form, given as string
+ <code>xxx-kssSubmitForm: 'full2'</code> with complex field names, named
form, given as string
</h3>
<div class="help">
Click the button.
Deleted:
/kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/kssid.kss
==============================================================================
---
/kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/kssid.kss
Sat Jan 26 09:08:21 2008
+++ (empty file)
@@ -1,91 +0,0 @@
-#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);
-}
Deleted:
/kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/kssid.pt
==============================================================================
--- /kukit/kss.core/trunk/kss/core/plugins/core/demo/parameterfunction/kssid.pt
Sat Jan 26 09:08:21 2008
+++ (empty file)
@@ -1,224 +0,0 @@
-<html>
- <head>
- <link rel="kinetic-stylesheet" type="text/css"
- tal:attributes="href
- string:${context/@@absolute_url}/++resource++forms.kss"/>
- <metal:header use-macro="context/@@header_macros/header_resources" />
- </head>
- <body>
- <div id="global-links">
- <ul>
- <li><a href=".">All demos</a></li>
- <li><a href="javascript:void(createLoggingPane(true))">Show logging
- pane</a></li>
- <li><a href="./++resource++forms.kss">View KSS resource</a></li>
- </ul>
- </div>
- <h2>Forms</h2>
- <p>We test the parameter functions related to forms : those functions
- extract values from fields to use them in the kinetic stylesheet.</p>
- <p>The inner HTML of the <code>div</code> below will be replaced with the
- value of the form element.</p>
- <div id="target">Target</div>
- <form name="main">
- <h3>
- <code>currentFormVar()</code> with text field.
- </h3>
- <div class="help">
- Click the text field.
- </div>
- <fieldset>
- <input class="click cursorPointer"
- id="text"
- type="text" name="text" value="text" />
- </fieldset>
- <h3>
- <code>currentFormVar(name)</code> with text field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <div>
- <a class="button click cursorPointer" id="text-by-name">Click me
!</a>
- <input type="text" name="text-by-name" value="text-by-name" />
- </div>
- </fieldset>
- <h3>
- <code>currentFormVar(kssAttr('name'))</code> with text field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <div class="kssattr-key1-text-by-kssname">
- <a class="button click cursorPointer " id="text-by-kssname">Click me
!</a>
- <input type="text" name="text-by-kssname" value="text-by-kssname" />
- </div>
- </fieldset>
-
- <h3>
- <code>currentFormVar()</code> with textarea field.
- </h3>
- <div class="help">
- Click the textarea field.
- </div>
- <fieldset>
- <textarea class="click cursorPointer"
- id="textarea"
- name="textarea">textarea</textarea>
- </fieldset>
- <h3>
- <code>currentFormVar(name)</code> with textarea field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <div>
- <a class="button click cursorPointer" id="textarea-by-name">Click me
!</a>
- <textarea name="textarea-by-name">textarea-by-name</textarea>
- </div>
- </fieldset>
- <h3>
- <code>currentFormVar()</code> with radio field.
- </h3>
- <div class="help">
- Click one of the radio buttons.
- </div>
- <fieldset>radio-1
- <input class="click cursorPointer"
- id="radio1"
- type="radio" name="radio" value="radio-1" />
- radio-2
- <input class="click cursorPointer"
- id="radio2"
- type="radio" name="radio" value="radio-2" />
- </fieldset>
- <h3>
- <code>currentFormVar(name)</code> with radio field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <a class="button click cursorPointer" id="radio-by-name">Click me !</a>
- radio-1
- <input class="click cursorPointer"
- type="radio" name="radio-by-name" value="radio-1" />
- radio-2
- <input class="click cursorPointer"
- type="radio" name="radio-by-name" value="radio-2"
- checked="checked" />
- </fieldset>
-
- <h3>
- <code>currentFormVar(name)</code> with select field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <a class="button click cursorPointer" id="single-select">Click me !</a>
- <select name="single-select">
- <option>Value 1</option>
- <option>Value 2</option>
- <option>Value 3</option>
- </select>
- </fieldset>
-
- <h3>
- <code>currentFormVar(name)</code> with multiple select field.
- </h3>
- <div class="help">
- Click the button.
- </div>
- <fieldset>
- <a class="button click cursorPointer" id="multiple-select">Click me
!</a>
- <select name="multiple-select" multiple="multiple">
- <option>Value 1</option>
- <option>Value 2</option>
- <option>Value 3</option>
- </select>
- </fieldset>
-
- </form>
- <h3>
- <code>form(full1)</code> with simple field names, named form
- </h3>
- <div class="help">
- Click the button.
- </div>
- <a class="button click cursorPointer" id="fullform-simplenamed">Click me
!</a>
- <form name="full1">
- <fieldset>
- <h3>
- <code>currentForm()</code> with simple field names
- </h3>
- <div class="help">
- Click the button.
- </div>
- <a class="button click cursorPointer" id="fullform-simple">Click me
!</a>
- <input class="click cursorPointer"
- type="text" name="value1" value="first value" />
- <input class="click cursorPointer"
- type="text" name="value2" value="second value"/>
- </fieldset>
- </form>
- <h3>
- <code>xxx-kssSubmitForm: form(full2)</code> with complex field names,
named form
- </h3>
- <div class="help">
- Click the button.
- </div>
- <a class="button click cursorPointer" id="fullform-named">Click me !</a>
- <h3>
- <code>xxx-kssSubmitForm: 'field2'</code> with complex field names, named
form, given as string
- </h3>
- <div class="help">
- Click the button.
- </div>
- <a class="button click cursorPointer" id="fullform-namedbystring">Click me
!</a>
- <form name="full2">
- <h3>
- <code>xxx-kssSubmitForm: currentForm()</code> with complex field names
- </h3>
- <div class="help">
- Click the button.
- </div>
- <a class="button click cursorPointer" id="fullform-current">Click me
!</a>
- <fieldset>
- value1:
- <input class="click cursorPointer"
- type="text" name="value1" value="value1" />
- value2:
- <input class="click cursorPointer"
- type="text" name="value2" value="value2"/>
- <br>
- listval:
- <input class="click cursorPointer"
- type="text" name="listval:list" value="listval1"/>
- <input class="click cursorPointer"
- type="text" name="listval:list" value="listval2"/>
- <br>
- recordval:
- <input class="click cursorPointer"
- type="text" name="recordval.a:record" value="recordval_a"/>
- <input class="click cursorPointer"
- type="text" name="recordval.b:record" value="recordval_b"/>
- <br>
- recordsval:
- <input class="click cursorPointer"
- type="text" name="recordsval.a:records" value="recordval_a_1"/>
- <input class="click cursorPointer"
- type="text" name="recordsval.b:records" value="recordval_b_1"/>
- <input class="click cursorPointer"
- type="text" name="recordsval.a:records" value="recordval_a_2"/>
- <input class="click cursorPointer"
- type="text" name="recordsval.b:records" value="recordval_b_2"/>
- </fieldset>
- </form>
-
-
- </body>
-</html>
Modified:
kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/0_ecmaunit_tests.html
==============================================================================
---
kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/0_ecmaunit_tests.html
(original)
+++
kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/0_ecmaunit_tests.html
Sat Jan 26 09:08:21 2008
@@ -55,6 +55,11 @@
</tr>
<tr>
<td>assertText</td>
+ <td>//[EMAIL
PROTECTED]'kukit.KssParserValueProvidersCheckTestCase']/div</td>
+ <td>OK!</td>
+</tr>
+<tr>
+ <td>assertText</td>
<td>//[EMAIL PROTECTED]'kukit.KssParserSelectorsTestCase']/div</td>
<td>OK!</td>
</tr>
Deleted:
/kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/kss_selector_param.html
==============================================================================
---
/kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/kss_selector_param.html
Sat Jan 26 09:08:21 2008
+++ (empty file)
@@ -1,109 +0,0 @@
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>kss_selector_param</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">kss_selector_param</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/demo/kss_selector_param.html</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_1</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_2</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_2</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_2</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_2</td>
- <td>Watch me</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_2</td>
- <td>Watch me</td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_3</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_4</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_4</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_4</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_4</td>
- <td>Watch me</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_4</td>
- <td>Watch me</td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_5</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_6</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_6</td>
- <td>RESET ME</td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_6</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForValue</td>
- <td>button_6</td>
- <td>Watch me</td>
-</tr>
-<tr>
- <td>assertValue</td>
- <td>button_6</td>
- <td>Watch me</td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
Deleted:
/kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/pf_forms.html
==============================================================================
---
/kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/pf_forms.html
Sat Jan 26 09:08:21 2008
+++ (empty file)
@@ -1,134 +0,0 @@
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>pf_forms</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">pf_forms</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/demo/pf_forms.html</td>
- <td></td>
-</tr>
-<tr>
- <td>assertElementPresent</td>
- <td>target</td>
- <td></td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>Target</td>
-</tr>
-<tr>
- <td>click</td>
- <td>text</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>text</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>text</td>
-</tr>
-<tr>
- <td>click</td>
- <td>text-by-name</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>text-by-name</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>text-by-name</td>
-</tr>
-<tr>
- <td>click</td>
- <td>textarea</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>textarea</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>textarea</td>
-</tr>
-<tr>
- <td>click</td>
- <td>textarea-by-name</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>textarea-by-name</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>textarea-by-name</td>
-</tr>
-<tr>
- <td>click</td>
- <td>radio1</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>radio-1</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>radio-1</td>
-</tr>
-<tr>
- <td>click</td>
- <td>radio-by-name</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>radio-2</td>
-</tr>
-<tr>
- <td>assertText</td>
- <td>target</td>
- <td>radio-2</td>
-</tr>
-<tr>
- <td>click</td>
- <td>fullform-current</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>target</td>
- <td>[('listval', ['listval1', 'listval2']), ('multiple-select', ['Value
1', 'Value 3']), ('recordsval', [{'a': 'recordval_a_1', 'b': 'recordval_b_1'},
{'a': 'recordval_a_2', 'b': 'recordval_b_2'}]), ('recordval', {'a':
'recordval_a', 'b': 'recordval_b'}), ('value1', 'value1'), ('value2',
'value2')]</td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>[('listval', ['listval1', 'listval2']), ('multiple-select', ['Value
1', 'Value 3']), ('recordsval', [{'a': 'recordval_a_1', 'b': 'recordval_b_1'},
{'a': 'recordval_a_2', 'b': 'recordval_b_2'}]), ('recordval', {'a':
'recordval_a', 'b': 'recordval_b'}), ('value1', 'value1'), ('value2',
'value2')]</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
Deleted:
/kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/urlparam.html
==============================================================================
---
/kukit/kss.core/trunk/kss/core/plugins/core/demo/selenium_tests/urlparam.html
Sat Jan 26 09:08:21 2008
+++ (empty file)
@@ -1,69 +0,0 @@
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>urlparam</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">urlparam</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/demo/kss_url_param.html</td>
- <td></td>
-</tr>
-<tr>
- <td>assertElementPresent</td>
- <td>target</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_1</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Method 1 called</td>
- <td></td>
-</tr>
-<tr>
- <td>assertTextPresent</td>
- <td>Method 1 called</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_2</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Method 2 called</td>
- <td></td>
-</tr>
-<tr>
- <td>assertTextPresent</td>
- <td>Method 2 called</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>button_3</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Method 3 called</td>
- <td></td>
-</tr>
-<tr>
- <td>assertTextPresent</td>
- <td>Method 3 called</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
Modified: kukit/kss.core/trunk/kss/core/plugins/core/demo/zopeconfig.py
==============================================================================
--- kukit/kss.core/trunk/kss/core/plugins/core/demo/zopeconfig.py
(original)
+++ kukit/kss.core/trunk/kss/core/plugins/core/demo/zopeconfig.py Sat Jan
26 09:08:21 2008
@@ -33,10 +33,7 @@
KSSDemo('', '', "html_inserts.html", "HTML insertions (Change tag
content returns)"),
KSSDemo('', '', "client-server-protocol", "Client server protocol"),
## 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 events', "kss_evt_preventbubbling.html", "Prevent
bubbling KSS event parameter"),
KSSDemo('', 'Core events', "kss_keyevents.html", "Key events"),
KSSDemo('', 'Commands/Actions', "ca_focus.html", "Focus"),
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins