Image 01
profile-image

FeG

Felix G√ľnther
test
Losungen

Plasma 4 Extensions 42 comments

Score 73.0%
Jan 23 2011
The new texts are available here: http://www.brueder-unitaet.de/download/Losung_2011_CSV.zip. Download the zip file and extract the CSV file to

~/.kde/share/apps/plasma/plasmoids/losungen/contents/losungen11.csv


You than have to edit

~/.kde/share/apps/plasma/plasmoids/losungen/contents/code/main.py


as follows (patch)


--- main.py.old 2011-01-01 13:01:18.000000000 +0100
+++ main.py 2011-01-01 13:00:15.000000000 +0100
@@ -32,7 +32,8 @@

LOSUNG_FORMAT_DICT = {
"09" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6},
- "10" : {"losVers": 4, "losText": 3, "lehrVers": 6, "lehrText": 5}
+ "10" : {"losVers": 4, "losText": 3, "lehrVers": 6, "lehrText": 5},
+ "11" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6}
}

class Losung(object):


That is, in line 35 ("10" : ...) add a , (comma) at the end of the line and insert the line


"11" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6}


below line 35.

I then had to remove and re-add the plasmoid and it worked.

Regards,
FeG - Jan 01 2011