FINALLY I figured out what caused all the flooding in the logs when
writing data to the plotter element.
In TargetPlotter.py the plotter element "generates" an SVG like this:
<svg><rect width="100" height="100" ... /></svg>
and passes it to TargetCanvas.py to render it.
But in TagetCanvas.py the root element of the SVG needs to have a width
and a height attribute, otherwise the famous UserError (Error: Desklet
contains errors. Please contact the author!) is raised. And as the root
element is <svg> and it didn't have a width and a height attribute...
So now TarbetPlotter.py generates an SVG like this:
<svg width="100" height="100"><rect width="100" height="100" ... /></svg>
and the plotter element seems to be working fine without errors in the log ;).
Fix committed in rev. #144.
** Changed in: gdesklets
Status: In Progress => Fix Committed
--
python in background uses too much cpu
https://bugs.launchpad.net/bugs/71085
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs