VirtualMailManager/quotalimit.py
branchv0.6.x
changeset 400 0512d940918f
parent 385 0cae9989395b
child 407 3162ff959375
--- a/VirtualMailManager/quotalimit.py	Sat Feb 12 17:19:43 2011 +0000
+++ b/VirtualMailManager/quotalimit.py	Sat Feb 12 18:12:37 2011 +0000
@@ -55,6 +55,8 @@
             self._load_by_qid(qid)
         else:
             bytes_, msgs = kwargs.get('bytes'), kwargs.get('messages')
+            if bytes_ == '0':  # default from Config
+                bytes_ = 0
             assert all(isinstance(i, (int, long)) for i in (bytes_, msgs))
             if bytes_ < 0:
                 self._bytes = -bytes_