Use tags and descriptions
authorAndy Allan <gravitystorm@gmail.com>
Tue, 12 Oct 2010 10:13:40 +0000 (10:13 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Tue, 12 Oct 2010 10:13:40 +0000 (10:13 +0000)
TODO.txt
net/systemeD/halcyon/connection/XMLConnection.as
net/systemeD/potlatch2/mygpx/MyGpxDialog.mxml

index 756bdde..19ccf9c 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -74,7 +74,6 @@ Potlatch 2: main outstanding issues
 * Make the connection, not the savemanager, in charge of sorting out the oauth stuff?
 * Ensure the oauth dialog pops up if there's no oauth credentials
 * Rework the loading text
-* Show descriptions, tags (needs rails_port changes)
 * Have a remove button for removing loaded traces
 * Have a check button for simplifying traces
 * Refactor the importer.as so that downloading the files can be done via the connection, not just directly
index 0b2aff8..c044590 100644 (file)
@@ -335,6 +335,12 @@ package net.systemeD.halcyon.connection {
               var t:Object = {};
               t.id = traceData.@id;
               t.name = traceData.@name;
+              t.description = traceData.description;
+              var tags:Array = [];
+              for each(var tag:XML in traceData.tag) {
+                tags.push(String(tag));
+              }
+              t.tags = tags.join(" ");
               t.url = Connection.apiBaseURL+"gpx/"+t.id+"/data";
               addTrace(t);
             }
index f0b0293..3ed5679 100644 (file)
@@ -81,7 +81,8 @@
     <mx:columns>
             <mx:DataGridColumn editable="false" dataField="id" headerText="id" width="45"/>
             <mx:DataGridColumn editable="false" dataField="name" headerText="filename"/>
-            <mx:DataGridColumn editable="false" dataField="url" headerText="url"/>
+            <mx:DataGridColumn editable="false" dataField="description" headerText="description"/>
+            <mx:DataGridColumn editable="false" dataField="tags" headerText="tags"/>
             <mx:DataGridColumn editable="false">
               <mx:itemRenderer>
                 <mx:Component>