Image 01


daniel german

Plasma 4 Extensions 42 comments

Score 73.0%
Jan 23 2011
Ups - klicked the wrong link. I just posted the solution to the problem under the subject "The solution". Just to let you know via eMail-Reminder... - Mar 10 2010
Hey, thanks for the help! To get the date (in another format) you need to change line 88 in like this:
buf.write("""<p class="title">Losung vom %s</p>"""%date.strftime("%d.%m.%Y"))

Now it works like a charm ("Losung vom 10.03.2010"). - Mar 10 2010
I have the same problem since the same day as DrM. The output of the console says:

plasmoidviewer -c desktop losungen
Traceback (most recent call last):
File "/usr/share/kde4/apps/plasma_scriptengine_python/", line 55, in init
File "/home/dan/.kde/share/apps/plasma/plasmoids/losungen/contents/code/", line 185, in init
File "/home/dan/.kde/share/apps/plasma/plasmoids/losungen/contents/code/", line 102, in loadLosung
self.contentWidget.setText(self.r.renderLosung(losung, self.currentDate))
File "/home/dan/.kde/share/apps/plasma/plasmoids/losungen/contents/code/", line 97, in renderLosung
return buf.getvalue()
File "/usr/lib/python2.6/", line 270, in getvalue
self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128)
TypeError: invalid result type from PythonAppletScript.shape() - Mar 03 2010