Author: wiggy
Date: Wed Nov  5 15:12:47 2008
New Revision: 59725

Modified:
   kukit/kss.core/branch/1.4/docs/HISTORY.txt
   kukit/kss.core/branch/1.4/kss/core/pluginregistry/json/utils.py
Log:
Use the real request in the json logic so skin layers, request parmeters are 
available

Modified: kukit/kss.core/branch/1.4/docs/HISTORY.txt
==============================================================================
--- kukit/kss.core/branch/1.4/docs/HISTORY.txt  (original)
+++ kukit/kss.core/branch/1.4/docs/HISTORY.txt  Wed Nov  5 15:12:47 2008
@@ -4,7 +4,10 @@
 
 kss.core - 1.4dev Unreleased
 
-    - ...
+    - Use the real request in the json logic so skin layers, request parmeters,
+      etc. are available.
+      [wichert]
+
    
 kss.core - 1.4.3 Released 2008-08-18
 

Modified: kukit/kss.core/branch/1.4/kss/core/pluginregistry/json/utils.py
==============================================================================
--- kukit/kss.core/branch/1.4/kss/core/pluginregistry/json/utils.py     
(original)
+++ kukit/kss.core/branch/1.4/kss/core/pluginregistry/json/utils.py     Wed Nov 
 5 15:12:47 2008
@@ -14,10 +14,12 @@
     'Gets the addon javascript files for json'
     files = []
     # Try adding the jsonserver files
-    request = TestRequest()
+    request = getattr(capi.getSiteManager(), 'REQUEST', None)
+
     try:
-        # use the files already registered to that concat resource
-        jsonrpc = capi.getAdapter(request, Interface, 'jsonrpc.js')
+        if request is not None:
+            # use the files already registered to that concat resource
+            jsonrpc = capi.getAdapter(request, Interface, 'jsonrpc.js')
     except capi.ComponentLookupError:
         pass    # JSON not present.
     else:
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to