Iwant: Fix encoding issues.
parent
2150cc4391
commit
453959e599
|
@ -56,7 +56,7 @@ Iwant = conf.registerPlugin('Iwant')
|
|||
# registry.Boolean(False, _("""Help for someConfigVariableName.""")))
|
||||
|
||||
conf.registerChannelValue(Iwant, 'wishlist',
|
||||
registry.String('', _("""List of wanted things. Don't edit this variable
|
||||
registry.Json([], _("""List of wanted things. Don't edit this variable
|
||||
unless you know what you do.""")))
|
||||
|
||||
|
||||
|
|
|
@ -47,15 +47,10 @@ except:
|
|||
internationalizeDocstring = lambda x:x
|
||||
|
||||
def unserialize(string):
|
||||
list = string.replace('||', '|').split(' | ')
|
||||
if '' in list:
|
||||
list.remove('')
|
||||
return list
|
||||
return string
|
||||
|
||||
def serialize(list):
|
||||
if '' in list:
|
||||
list.remove('')
|
||||
return ' | '.join([x.replace('|', '||') for x in list])
|
||||
return list
|
||||
|
||||
@internationalizeDocstring
|
||||
class Iwant(callbacks.Plugin):
|
||||
|
|
Loading…
Reference in New Issue