Changeset 4952
- Timestamp:
- 14/05/08 16:48:28 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Trunk/contributors/MartinBudden/adaptors/WikispacesSoapAdaptorPlugin.js
r4947 r4952 5 5 |''Source:''|http://www.martinswiki.com/#WikispacesSoapAdaptorPlugin | 6 6 |''CodeRepository:''|http://svn.tiddlywiki.org/Trunk/contributors/MartinBudden/adaptors/WikispacesSoapAdaptorPlugin.js | 7 |''Version:''|0.0. 8|7 |''Version:''|0.0.9| 8 8 |''Date:''|Feb 15, 2008| 9 9 |''Comments:''|Please make comments at http://groups.google.co.uk/group/TiddlyWikiDev | … … 32 32 fnLog = function(text) 33 33 { 34 //if(window.console) console.log(text.substr(0,80)); else displayMessage(text.substr(0,80));34 if(window.console) console.log(text.substr(0,80)); else displayMessage(text.substr(0,80)); 35 35 }; 36 36 … … 172 172 fnLog('getWorkspaceList'); 173 173 context = this.setContext(context,userParams,callback); 174 var workspace = userParams .getValue("feedWorkspace");//!! kludge until core fixed174 var workspace = userParams ? userParams.getValue("feedWorkspace") : context.workspace;//!! kludge until core fixed 175 175 var list = []; 176 176 list.push({title:workspace,name:workspace}); … … 227 227 WikispacesSoapAdaptor.prototype.getTiddlerList = function(context,userParams,callback) 228 228 { 229 //#console.log('getTiddlerList');229 fnLog('getTiddlerList'); 230 230 context = this.setContext(context,userParams,callback); 231 231 return this.complete(context,WikispacesSoapAdaptor.getTiddlerListComplete); … … 234 234 WikispacesSoapAdaptor.getTiddlerListComplete = function(context,userParams) 235 235 { 236 //#console.log('getTiddlerListComplete');236 fnLog('getTiddlerListComplete'); 237 237 // http://www.wikispaces.com/page/api?wsdl 238 238 var uri = WikispacesSoapAdaptor.SoapUri(context,'%0page/api'); 239 //#console.log('uri:'+uri);239 fnLog('uri:'+uri); 240 240 var pl = new SOAPClientParameters(); 241 241 pl.add('session',context.sessionToken); … … 248 248 { 249 249 var status = r instanceof Error ? false : true; 250 fnLog('getTiddlerListCallback:'+status); 251 console.log(r); 252 console.log(x); 250 253 context.status = false; 251 254 context.statusText = WikispacesSoapAdaptor.errorInFunctionMessage.format(['getTiddlerListCallback']);