myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3010] trunk: workaround for inconsistency in the


From: noreply
Subject: [myexperiment-hackers] [3010] trunk: workaround for inconsistency in the established API
Date: Tue, 29 May 2012 23:48:05 +0000 (UTC)

Revision
3010
Author
dgc
Date
2012-05-29 23:48:05 +0000 (Tue, 29 May 2012)

Log Message

workaround for inconsistency in the established API

Modified Paths

Diff

Modified: trunk/config/tables.xml


(Binary files differ)

Modified: trunk/lib/rest.rb (3009 => 3010)


--- trunk/lib/rest.rb	2012-05-29 16:11:20 UTC (rev 3009)
+++ trunk/lib/rest.rb	2012-05-29 23:48:05 UTC (rev 3010)
@@ -229,6 +229,12 @@
             else
               el = rest_get_request_aux(list_element_item, user, query.merge({ "id" => list_element_item.id.to_s }), list_item_select_elements)
 
+              # hack to workaround an inconsistency in the established API
+
+              if el.name == "internal-pack-item"
+                el.name = rest_object_tag_text(list_element_item)
+              end
+
               if model_data['List Element Name'][i]
                 el.name = model_data['List Element Name'][i]
               end

reply via email to

[Prev in Thread] Current Thread [Next in Thread]