From e52e7be48eb9e43762aaa4dfadaf37b2511d1661 Mon Sep 17 00:00:00 2001
From: Daniel STAN <daniel.stan@crans.org>
Date: Sun, 19 Jan 2014 21:33:27 +0100
Subject: [PATCH] server: contents should be unicode

And encrypted (but TODO later)
---
 server.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server.py b/server.py
index d18f255..66723b1 100755
--- a/server.py
+++ b/server.py
@@ -178,7 +178,7 @@ def _putfile(filename, roles, contents):
     notification(u"Modification de %s" % filename, corps, filename, old)
     
     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 !"
              + "(contents should be encrypted str)"]
         # Or fuck yourself
-- 
GitLab