server: contents should be unicode
And encrypted (but TODO later)
This commit is contained in:
parent
3ff1608c0a
commit
e52e7be48e
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ def _putfile(filename, roles, contents):
|
||||||
notification(u"Modification de %s" % filename, corps, filename, old)
|
notification(u"Modification de %s" % filename, corps, filename, old)
|
||||||
|
|
||||||
filepath = getpath(filename)
|
filepath = getpath(filename)
|
||||||
if type(contents) not in [unicode, str]: # fix that later
|
if type(contents) != unicode:
|
||||||
return [False, u"Erreur: merci de patcher votre cpasswords !"
|
return [False, u"Erreur: merci de patcher votre cpasswords !"
|
||||||
+ "(contents should be encrypted str)"]
|
+ "(contents should be encrypted str)"]
|
||||||
# Or fuck yourself
|
# Or fuck yourself
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue