Author: reebalazs
Date: Thu Nov 20 13:06:15 2008
New Revision: 60016
Modified:
kukit/kss.core/trunk/docs/HISTORY.txt
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param.kss
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param.pt
kukit/kss.core/trunk/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
Log:
Fix or improve calculateAbsoluteURL to handle absolute
and relative urls correctly, as well as get rid of the
double slash (//) issue.
It also satisfies the tests kss_url_param and
kss_url_param_multiprop, that now work as intended,
with previous workaround removed.
Modified: kukit/kss.core/trunk/docs/HISTORY.txt
==============================================================================
--- kukit/kss.core/trunk/docs/HISTORY.txt (original)
+++ kukit/kss.core/trunk/docs/HISTORY.txt Thu Nov 20 13:06:15 2008
@@ -4,6 +4,14 @@
kss.core - 1.5dev Unreleased
+ - Fix or improve calculateAbsoluteURL to handle absolute
+ and relative urls correctly, as well as get rid of the
+ double slash (//) issue.
+ It also satisfies the tests kss_url_param and
+ kss_url_param_multiprop, that now work as intended,
+ with previous workaround removed.
+ [ree]
+
- Use the real request in the json logic so skin layers, request parmeters,
etc. are available.
[wichert]
Modified:
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param.kss
==============================================================================
---
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param.kss
(original)
+++
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param.kss
Thu Nov 20 13:06:15 2008
@@ -16,6 +16,6 @@
#button_3:click {
action-server: urlMethodAnotherAlias;
- urlMethodAnotherAlias-kssUrl: "@@urlMethod3/urlMethod3";
+ urlMethodAnotherAlias-kssUrl: "@@urlMethod3";
}
Modified:
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param.pt
==============================================================================
--- kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param.pt
(original)
+++ kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param.pt
Thu Nov 20 13:06:15 2008
@@ -42,10 +42,10 @@
<h3>Alias URL with <code>@@</code></h3>
<div class="help">
- Click the button; it will call <code>@@urlMethod3/urlMethod3</code>
on the server.
+ Click the button; it will call <code>@@urlMethod3</code> on the
server.
<pre><code>#button_3:click {
action-server: urlMethodAnotherAlias;
- urlMethodAnotherAlias-kssUrl: "@@urlMethod3/urlMethod3";
+ urlMethodAnotherAlias-kssUrl: "@@urlMethod3";
}</code></pre></div>
<div class="container">
Modified:
kukit/kss.core/trunk/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.kss
(original)
+++
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.kss
Thu Nov 20 13:06:15 2008
@@ -14,7 +14,7 @@
}
#button_3:click {
- action-server: urlMethodAnotherAlias url("@@urlMethod3/urlMethod3");
+ action-server: urlMethodAnotherAlias url("@@urlMethod3");
}
#button_4:click {
Modified:
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.pt
==============================================================================
---
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.pt
(original)
+++
kukit/kss.core/trunk/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.pt
Thu Nov 20 13:06:15 2008
@@ -41,9 +41,9 @@
<h3>Alias URL with <code>@@</code></h3>
<div class="help">
- Click the button; it will call <code>@@urlMethod3/urlMethod3</code>
on the server.
+ Click the button; it will call <code>@@urlMethod3</code> on the
server.
<pre><code>#button_3:click {
- action-server: urlMethodAnotherAlias url("@@urlMethod3/urlMethod3");
+ action-server: urlMethodAnotherAlias url("@@urlMethod3");
}</code></pre></div>
<div class="container">
@@ -53,7 +53,7 @@
<h3>Alias URL from provider</h3>
<div class="help" >
- Click the button; it will call <code>@@urlMethod3/urlMethod3</code>
on the server.
+ Click the button; it will call <code>urlMethod3</code> on the server.
<pre><code>#button_4:click {
action-server: urlMethodAnotherAlias url(kssAttr(methodname, true));
}</code></pre></div>
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins