myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2962] trunk/lib/rest.rb: extra changes for "show


From: noreply
Subject: [myexperiment-hackers] [2962] trunk/lib/rest.rb: extra changes for "show-plaintext" option
Date: Tue, 6 Mar 2012 15:48:39 +0000 (UTC)

Revision
2962
Author
dgc
Date
2012-03-06 15:48:38 +0000 (Tue, 06 Mar 2012)

Log Message

extra changes for "show-plaintext" option

Modified Paths

Diff

Modified: trunk/lib/rest.rb (2961 => 2962)


--- trunk/lib/rest.rb	2012-03-06 15:44:06 UTC (rev 2961)
+++ trunk/lib/rest.rb	2012-03-06 15:48:38 UTC (rev 2962)
@@ -15,7 +15,7 @@
 TABLES = parse_excel_2003_xml(File.read('config/tables.xml'),
 
   { 'Model' => { :indices => [ 'REST Entity' ],
-                 :lists   => [ 'REST Attribute', 'Encoding', 'Accessor',
+                 :lists   => [ 'REST Attribute', 'Encoding', 'HTML', 'Accessor',
                                'Create', 'Read', 'Update', 'Read by default',
                                'List Element Name', 'List Element Accessor',
                                'Example', 'Versioned', 'Key type',
@@ -168,6 +168,8 @@
 
     accessor = model_data['Accessor'][i]
 
+    accessor = "#{accessor}_plaintext" if query["show-plaintext"] == "yes" && model_data['HTML'][i] == "yes"
+
     text  = ''
     attrs = {}
 

reply via email to

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