Remove the external oauth-get-signing. Only XMLConnection should be fetching things...
authorAndy Allan <gravitystorm@gmail.com>
Fri, 15 Oct 2010 17:20:20 +0000 (17:20 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Fri, 15 Oct 2010 17:20:20 +0000 (17:20 +0000)
net/systemeD/halcyon/connection/Connection.as
net/systemeD/halcyon/connection/XMLConnection.as
net/systemeD/potlatch2/utils/Importer.as

index f10c340..dfc8aa0 100755 (executable)
@@ -365,7 +365,6 @@ package net.systemeD.halcyon.connection {
            public function uploadChanges():void {}
         public function fetchUserTraces():void {}
         public function fetchTrace(id:Number, callback:Function):void {}
-        public function signOAuthGet(url:String):String {return 'example.com';}
     }
 
 }
index f952686..63ea309 100644 (file)
@@ -143,10 +143,6 @@ package net.systemeD.halcyon.connection {
             loader.load(urlReq);
         }
 
-        override public function signOAuthGet(url:String):String {
-            return signedOAuthURL(url, "GET");
-        }
-        
         override public function uploadChanges():void {
             var changeset:Changeset = getActiveChangeset();
             var upload:XML = <osmChange version="0.6"/>
@@ -337,7 +333,6 @@ package net.systemeD.halcyon.connection {
               var t:Trace = new Trace().fromXML(traceData);
               addTrace(t);
             }
-            trace("loaded gpx files");
             dispatchEvent(new Event(LOAD_COMPLETED));
             dispatchEvent(new Event(TRACES_LOADED));
         }
index 1f1d75d..056457e 100644 (file)
@@ -35,11 +35,6 @@ package net.systemeD.potlatch2.utils {
                        var sp:uint=0;
                        for each (var fn:String in filenames) {
                                Globals.vars.root.addDebug("requesting file "+fn);
-                var conn:Connection = Connection.getConnectionInstance();
-
-                if ( fn.indexOf(conn.apiBase) == 0 ) {
-                  fn = conn.signOAuthGet(fn);
-                }
                                var request:DebugURLRequest = new DebugURLRequest(fn);
                                var loader:ExtendedURLLoader = new ExtendedURLLoader();
                                loader.info['file']=sp;