Scripts in gDesklets are written in the Python language. By language, we mean the core language, not the rich set of modules, which is not available in the sandbox for security reasons.
Python scripts require proper indentation, so the same rule applies to scripts on the gDesklets platform. You have to take care of consistent indentation within the <script> tags.
![]() |
|
If you include scripts in your .display file, you have to make sure that the script doesn't use any characters reserved by XML. You can escape them by using the common XML entities, or in case of the <script> tag, by putting the script code into a CDATA section. |