Author: etnu
Date: Fri Oct 3 23:05:06 2008
New Revision: 701605
URL: http://svn.apache.org/viewvc?rev=701605&view=rev
Log:
Fixed absolute path issue for social data client calls.
Modified:
incubator/shindig/trunk/config/container.js
incubator/shindig/trunk/features/opensocial-current/feature.xml
Modified: incubator/shindig/trunk/config/container.js
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/config/container.js?rev=701605&r1=701604&r2=701605&view=diff
==============================================================================
--- incubator/shindig/trunk/config/container.js (original)
+++ incubator/shindig/trunk/config/container.js Fri Oct 3 23:05:06 2008
@@ -118,7 +118,7 @@
// Path to fetch opensocial data from
// Must be on the same domain as the gadget rendering server
"impl" : "rpc", //Use "rpc" to enable JSON-RPC, "rest' for REST
- "path" : "/social",
+ "path" : "http://%host%/social",
"domain" : "shindig",
"enableCaja" : false,
"supportedFields" : {
Modified: incubator/shindig/trunk/features/opensocial-current/feature.xml
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-current/feature.xml?rev=701605&r1=701604&r2=701605&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-current/feature.xml (original)
+++ incubator/shindig/trunk/features/opensocial-current/feature.xml Fri Oct 3
23:05:06 2008
@@ -41,16 +41,18 @@
gadgets.config.register("opensocial-0.8", requiredConfig,
function(config) {
var configParams = config["opensocial-0.8"];
+ var path = configParams.path;
+ path = path.replace("%host%", document.location.host);
if (configParams.impl == "rpc") {
ShindigContainer = function() {
- JsonRpcContainer.call(this, configParams.path,
+ JsonRpcContainer.call(this, path,
configParams.domain, configParams.supportedFields);
};
ShindigContainer.inherits(JsonRpcContainer);
} else {
ShindigContainer = function() {
- RestfulContainer.call(this, configParams.path,
+ RestfulContainer.call(this, path,
configParams.domain, configParams.supportedFields);
};
ShindigContainer.inherits(RestfulContainer);