VirtualMailManager/cli/subcommands.py
branchv0.6.x
changeset 423 a43a2e20de71
parent 420 d4a341248500
child 429 9842650569c2
equal deleted inserted replaced
422:33a45e4c80c4 423:a43a2e20de71
   439     elif ctx.argc < 4:
   439     elif ctx.argc < 4:
   440         password = None
   440         password = None
   441     else:
   441     else:
   442         password = ctx.args[3]
   442         password = ctx.args[3]
   443     gen_pass = ctx.hdlr.user_add(ctx.args[2].lower(), password)
   443     gen_pass = ctx.hdlr.user_add(ctx.args[2].lower(), password)
   444     if gen_pass:
   444     if ctx.argc < 4 and gen_pass:
   445         w_std(_(u"Generated password: %s") % gen_pass)
   445         w_std(_(u"Generated password: %s") % gen_pass)
   446 
   446 
   447 
   447 
   448 def user_delete(ctx):
   448 def user_delete(ctx):
   449     """delete the specified user"""
   449     """delete the specified user"""