Author: twilight
Date: Sat Nov 29 10:57:00 2008
New Revision: 60223
Modified:
kukit/kss.core/branch/bluraction/docs/HISTORY.txt
kukit/kss.core/branch/bluraction/kss/core/pluginregistry/json/utils.py
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param.kss
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param.pt
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.kss
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.pt
Log:
Merge recent changes from r59726 to HEAD
Modified: kukit/kss.core/branch/bluraction/docs/HISTORY.txt
==============================================================================
--- kukit/kss.core/branch/bluraction/docs/HISTORY.txt (original)
+++ kukit/kss.core/branch/bluraction/docs/HISTORY.txt Sat Nov 29 10:57:00 2008
@@ -4,6 +4,18 @@
kss.core - 1.5dev Unreleased
+ - Fix the ca_cancel (action-cancel) test that was broken
+ on IE7 because it contained the same id more times.
+ [ree]
+
+ - Fix or improve calculateAbsoluteURL to handle absolute
+ and relative urls correctly, as well as get rid of the
+ double slash (//) issue.
+ It also satisfies the tests kss_url_param and
+ kss_url_param_multiprop, that now work as intended,
+ with previous workaround removed.
+ [ree]
+
- Use the real request in the json logic so skin layers, request parmeters,
etc. are available.
[wichert]
Modified: kukit/kss.core/branch/bluraction/kss/core/pluginregistry/json/utils.py
==============================================================================
--- kukit/kss.core/branch/bluraction/kss/core/pluginregistry/json/utils.py
(original)
+++ kukit/kss.core/branch/bluraction/kss/core/pluginregistry/json/utils.py
Sat Nov 29 10:57:00 2008
@@ -5,7 +5,6 @@
import os.path, logging
import zope.component as capi
from zope.interface import implements, Interface
-from zope.publisher.browser import TestRequest
from interfaces import IJSONStreamWriteable
logger = logging.getLogger('kss.core')
@@ -16,19 +15,19 @@
# Try adding the jsonserver files
request = getattr(capi.getSiteManager(), 'REQUEST', None)
- try:
- if request is not None:
+ if request is not None:
+ try:
# use the files already registered to that concat resource
jsonrpc = capi.getAdapter(request, Interface, 'jsonrpc.js')
- except capi.ComponentLookupError:
- pass # JSON not present.
- else:
- # JSON present.
- files.extend(jsonrpc.context.context.getPathList())
- # add the json kukit support file
- plugins_dir = os.path.split(globals()['__file__'])[0]
- files.append(os.path.join(plugins_dir, 'browser', 'jsonkukit.js'))
- logger.info('Lazy plugin construction: Installed support for JSON-RPC
transport.')
+ except capi.ComponentLookupError:
+ pass # JSON not present.
+ else:
+ # JSON present.
+ files.extend(jsonrpc.context.context.getPathList())
+ # add the json kukit support file
+ plugins_dir = os.path.split(globals()['__file__'])[0]
+ files.append(os.path.join(plugins_dir, 'browser', 'jsonkukit.js'))
+ logger.info('Lazy plugin construction: Installed support for
JSON-RPC transport.')
return files
class JsonCommandView(object):
Modified:
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param.kss
==============================================================================
---
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param.kss
(original)
+++
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param.kss
Sat Nov 29 10:57:00 2008
@@ -16,6 +16,6 @@
#button_3:click {
action-server: urlMethodAnotherAlias;
- urlMethodAnotherAlias-kssUrl: "@@urlMethod3/urlMethod3";
+ urlMethodAnotherAlias-kssUrl: "@@urlMethod3";
}
Modified:
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param.pt
==============================================================================
---
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param.pt
(original)
+++
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param.pt
Sat Nov 29 10:57:00 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/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.kss
==============================================================================
---
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.kss
(original)
+++
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.kss
Sat Nov 29 10:57:00 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/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.pt
==============================================================================
---
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.pt
(original)
+++
kukit/kss.core/branch/bluraction/kss/core/plugins/core/demo/coresyntax/kss_url_param_multiprop.pt
Sat Nov 29 10:57:00 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