<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1422725024482_4786"><span id="yui_3_16_0_1_1422725024482_4806">just checked that during set_memory():</span></div><div dir="ltr" id="yui_3_16_0_1_1422725024482_4786"><span><br></span></div><div dir="ltr" id="yui_3_16_0_1_1422725024482_4785"><span id="yui_3_16_0_1_1422725024482_4784">1. as previously mentioned, mem.extra is empty list when called from from main edit table view. type(mem.extra) = <type 'list'> and print mem.extra is "[]"</span></div><div dir="ltr" id="yui_3_16_0_1_1422725024482_4802"><span><br></span></div><div dir="ltr" id="yui_3_16_0_1_1422725024482_4802"><span id="yui_3_16_0_1_1422725024482_4804">2. when it is called through edit panel:</span></div><div dir="ltr" id="yui_3_16_0_1_1422725024482_4802"><span id="yui_3_16_0_1_1422725024482_4818"> type(mem.extra) is <class 'chirp.settings.RadioSettingGroup'></span></div><div id="yui_3_16_0_1_1422725024482_4864"> type(mem.extra["display"]) is <class 'chirp.settings.RadioSetting'></div><div id="yui_3_16_0_1_1422725024482_4864" dir="ltr">print mem.extra["display"] yields display:Frequency. I assume RadioSetting and RadioSettingsGroup classes here are overriding various methods to get type coercion.</div><div id="yui_3_16_0_1_1422725024482_4865"><br></div><div id="yui_3_16_0_1_1422725024482_4865" dir="ltr">When I tested it, it appears to be doing what is expected.</div><div id="yui_3_16_0_1_1422725024482_4865" dir="ltr">mem.extra being empty list when called from main edit table is not expected behavior, but I think my logic is accommodating that.</div><div id="yui_3_16_0_1_1422725024482_4866"><br></div> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1422725024482_4759"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1422725024482_4758"> <div dir="ltr" id="yui_3_16_0_1_1422725024482_4768"> <hr size="1" id="yui_3_16_0_1_1422725024482_4834"> <font size="2" face="Arial" id="yui_3_16_0_1_1422725024482_4783"> <b id="yui_3_16_0_1_1422725024482_4801"><span style="font-weight:bold;" id="yui_3_16_0_1_1422725024482_4800">From:</span></b> Dan Smith <dsmith@danplanet.com><br> <b id="yui_3_16_0_1_1422725024482_4799"><span style="font-weight: bold;" id="yui_3_16_0_1_1422725024482_4798">To:</span></b> chirp_devel@intrepid.danplanet.com <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, January 31, 2015 10:16 AM<br> <b id="yui_3_16_0_1_1422725024482_4797"><span style="font-weight: bold;" id="yui_3_16_0_1_1422725024482_4796">Subject:</span></b> Re: [chirp_devel] [PATCH] [th9800] change name/freq display behavior to be automatic #1353<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_1_1422725024482_4757"><br>> + if mem.extra:<br>> + # mem.extra only seems to be populated when called from edit panel<br>> + display = mem.extra["display"]<br><br>Isn't mem.extra an array (not a dict)? I think it's not set on a normal<br>edit from the main editor because of the way it reconstructs the memory<br>objects.<br><br>--Dan<br><br>_______________________________________________<br>chirp_devel mailing list<br><a ymailto="mailto:chirp_devel@intrepid.danplanet.com" href="mailto:chirp_devel@intrepid.danplanet.com" id="yui_3_16_0_1_1422725024482_4795">chirp_devel@intrepid.danplanet.com</a><br><a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" target="_blank" id="yui_3_16_0_1_1422725024482_4794">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br>Developer docs: <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" target="_blank" id="yui_3_16_0_1_1422725024482_4840">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br><br></div> </div> </div> </div></body></html>