TiddlyWiki.org

Changeset 4952

Show
Ignore:
Timestamp:
14/05/08 16:48:28 (2 months ago)
Author:
MartinBudden
Message:

More fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/contributors/MartinBudden/adaptors/WikispacesSoapAdaptorPlugin.js

    r4947 r4952  
    55|''Source:''|http://www.martinswiki.com/#WikispacesSoapAdaptorPlugin | 
    66|''CodeRepository:''|http://svn.tiddlywiki.org/Trunk/contributors/MartinBudden/adaptors/WikispacesSoapAdaptorPlugin.js | 
    7 |''Version:''|0.0.8
     7|''Version:''|0.0.9
    88|''Date:''|Feb 15, 2008| 
    99|''Comments:''|Please make comments at http://groups.google.co.uk/group/TiddlyWikiDev | 
     
    3232fnLog = function(text) 
    3333{ 
    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)); 
    3535}; 
    3636 
     
    172172fnLog('getWorkspaceList'); 
    173173        context = this.setContext(context,userParams,callback); 
    174         var workspace = userParams.getValue("feedWorkspace");//!! kludge until core fixed 
     174        var workspace = userParams ? userParams.getValue("feedWorkspace") : context.workspace;//!! kludge until core fixed 
    175175        var list = []; 
    176176        list.push({title:workspace,name:workspace}); 
     
    227227WikispacesSoapAdaptor.prototype.getTiddlerList = function(context,userParams,callback) 
    228228{ 
    229 //#console.log('getTiddlerList'); 
     229fnLog('getTiddlerList'); 
    230230        context = this.setContext(context,userParams,callback); 
    231231        return this.complete(context,WikispacesSoapAdaptor.getTiddlerListComplete); 
     
    234234WikispacesSoapAdaptor.getTiddlerListComplete = function(context,userParams) 
    235235{ 
    236 //#console.log('getTiddlerListComplete'); 
     236fnLog('getTiddlerListComplete'); 
    237237// http://www.wikispaces.com/page/api?wsdl 
    238238        var uri = WikispacesSoapAdaptor.SoapUri(context,'%0page/api'); 
    239 //#console.log('uri:'+uri); 
     239fnLog('uri:'+uri); 
    240240        var pl = new SOAPClientParameters(); 
    241241        pl.add('session',context.sessionToken); 
     
    248248{ 
    249249        var status = r instanceof Error ? false : true; 
     250fnLog('getTiddlerListCallback:'+status); 
     251console.log(r); 
     252console.log(x); 
    250253        context.status = false; 
    251254        context.statusText = WikispacesSoapAdaptor.errorInFunctionMessage.format(['getTiddlerListCallback']);