VirtualMailManager/cli/subcommands.py
branchv0.6.x
changeset 458 4ff0fa3ba0fa
parent 456 7847f949d0a2
child 462 a64c1b5e08b4
equal deleted inserted replaced
457:2019aa415dcd 458:4ff0fa3ba0fa
   178         usage(EX_MISSING_ARGS, _(u"Missing option name."), ctx.scmd)
   178         usage(EX_MISSING_ARGS, _(u"Missing option name."), ctx.scmd)
   179 
   179 
   180     noop = lambda option: option
   180     noop = lambda option: option
   181     opt_formater = {
   181     opt_formater = {
   182         'misc.dovecot_version': version_str,
   182         'misc.dovecot_version': version_str,
   183         'misc.quota_bytes': human_size,
   183         'domain.quota_bytes': human_size,
   184     }
   184     }
   185 
   185 
   186     option = ctx.args[2].lower()
   186     option = ctx.args[2].lower()
   187     w_std('%s = %s' % (option, opt_formater.get(option,
   187     w_std('%s = %s' % (option, opt_formater.get(option,
   188                        noop)(ctx.cget(option))))
   188                        noop)(ctx.cget(option))))