TheThingsArchive / ttn

The Things Network Stack V2
https://www.thethingsnetwork.org
MIT License
461 stars 276 forks source link

Addition of Python Brackets instead of Braces on Console #749

Closed brentru closed 5 years ago

brentru commented 5 years ago

Hi TTN Team,

I'd like to request a feature on the web console for applications which would allow for easy inclusion of Python-nodes, in addition to C/C++ based nodes.

In Python, { } creates a dict, and [ ] creates a list: they're both collections of objects, but they aren't the same.

Currently the TTN Console only prints keys formatted with braces { }. Would it be possible to add a button or switch switch to assign brackets [ ] around the keys?

htdvisser commented 5 years ago

Thanks for creating an issue. We'll consider this for v3.

brentru commented 5 years ago

Great, thanks!

htdvisser commented 5 years ago

I submitted https://github.com/TheThingsNetwork/lorawan-stack/pull/155 for v3 to only render the contents, and leave the braces/brackets out. Toggling through different array/list styles for different languages wouldn't improve the user experience.