[chirp_devel] [PATCH] [th9800] change name/freq display behavior to be automatic #1353

Jens Jensen
Sat Jan 31 09:39:46 PST 2015


just checked that during set_memory():
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 "[]"
2. when it is called through edit panel: type(mem.extra) is <class 'chirp.settings.RadioSettingGroup'> type(mem.extra["display"]) is <class 'chirp.settings.RadioSetting'>print mem.extra["display"] yields display:Frequency. I assume RadioSetting and RadioSettingsGroup classes here are overriding various methods to get type coercion.
When I tested it, it appears to be doing what is expected.mem.extra being empty list when called from main edit table is not expected behavior, but I think my logic is accommodating that.
      From: Dan Smith <dsmith at danplanet.com>
 To: chirp_devel at intrepid.danplanet.com 
 Sent: Saturday, January 31, 2015 10:16 AM
 Subject: Re: [chirp_devel] [PATCH] [th9800] change name/freq display behavior to be automatic #1353
   
> +    if mem.extra:
> +        # mem.extra only seems to be populated when called from edit panel
> +        display = mem.extra["display"]

Isn't mem.extra an array (not a dict)? I think it's not set on a normal
edit from the main editor because of the way it reconstructs the memory
objects.

--Dan

_______________________________________________
chirp_devel mailing list
chirp_devel at intrepid.danplanet.com
http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20150131/e8e97ff8/attachment-0001.html 


More information about the chirp_devel mailing list