Image 01
profile-image

danny-ger

daniel german
test
Losungen

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 render.py 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
10
Traceback (most recent call last):
File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 55, in init
self.pyapplet.init()
File "/home/dan/.kde/share/apps/plasma/plasmoids/losungen/contents/code/main.py", line 185, in init
self.loadLosung()
File "/home/dan/.kde/share/apps/plasma/plasmoids/losungen/contents/code/main.py", line 102, in loadLosung
self.contentWidget.setText(self.r.renderLosung(losung, self.currentDate))
File "/home/dan/.kde/share/apps/plasma/plasmoids/losungen/contents/code/render.py", line 97, in renderLosung
return buf.getvalue()
File "/usr/lib/python2.6/StringIO.py", 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