erland;545350 Wrote:
> Could we have unique keys on each level ?
>
> For example:
> Top key- {'CTABusTracker'}{'icon'} = *.png
> UniqueID- {'CTABusTracker'}{'22'}{'uniqueicon'} = *.png
>
> Lines- {'CTABusTracker'}{'22'}{'line1'}{'line1icon'} = *.png
> {'CTABusTracker'}{'22'}{'line2'}{'line2icon'} = *.png
>
> The reason I'd like that is that I'll merge this into a single hash in
> my code, that looks something like this:
> >
Code:
--------------------
> >
> '22' => {
> 'type' => 'short',
> 'icon' => *.png -- CTA Bus Tracker logo
> 'uniqueicon' => *.png -- Unique id logo
> 'line1icon' => *.png -- Line 1 logo
> 'line2icon' => *.png -- Line 2 logo
> 'line1' => 'CTA Bus Tracker',
> 'line2' => 'NB #8 Halsted - 19 min'
> },
>
--------------------
> >
>
> My logic will be:
> - The actual attribute names won't matter, anything works as this is
> just a value which the user specifies in Custom Clock Helper. Unless
> we deside on exact names, I'll just display an empty combo box for
> now. I could probably read values from SDT and include anything that
> starts or ends with the word "logo" or "icon".
> - If the same attribute exists on several levels, I'll be using the
> one on the lowest level
> - If the attribute starts with "http" I'll presume it's a complete
> url, else I'll read it from the local Service by prefixing it with
> "http://<ipaddress>:<port>/"
Oops, I did a mistake on my example. It'd be nice to support icons at
ANY level.
{'CTABusTracker'}{'22'} = *.png should have read
{'CTABusTracker'}{'22'}{'icon'} = *.png
If you plan to flatten the data structure I can use unique icon names
at each level if you prefer. As I'm sure you're aware, by flattening
the data structure on your end you'll be duplicating data.
Please let me know if I should rename some of these icon keys.
Thanks
-Greg
--
GoCubs
------------------------------------------------------------------------
GoCubs's Profile: http://forums.slimdevices.com/member.php?userid=312
View this thread: http://forums.slimdevices.com/showthread.php?t=77864
_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive