pykolab/cli

Thomas Brüderli bruederli at kolabsys.com
Thu Feb 5 11:35:28 CET 2015


 pykolab/cli/cmd_set_quota.py |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit e40632b31347e5c25a2fdae2cbfec91eb521b09a
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Thu Feb 5 02:41:22 2015 +0100

    Fix printing of quota update status (#4496)

diff --git a/pykolab/cli/cmd_set_quota.py b/pykolab/cli/cmd_set_quota.py
index aa0389f..2fa9ba3 100644
--- a/pykolab/cli/cmd_set_quota.py
+++ b/pykolab/cli/cmd_set_quota.py
@@ -17,6 +17,8 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 #
 
+import sys
+
 import commands
 
 import pykolab
@@ -58,7 +60,7 @@ def execute(*args, **kw):
         print >> sys.stderr, _("No such folder %r") % (folder)
         sys.exit(1)
 
-    for _folder in imap.lm(folder):
+    for _folder in imap.lm(imap.folder_utf7(folder)):
         imap.set_quota(_folder, quota)
-        print >> sys.stdout, "Quota for folder '%s' set to %d" % (_folder, quota)
+        print >> sys.stdout, "Quota for folder '%s' set to %d" % (_folder, int(quota))
 




More information about the commits mailing list