VMM/quotalimit: Don't fail in QuotaLimit.__init__, if we get the
deafult misc.quota_bytes value: '0'.
--- 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_