equal
deleted
inserted
replaced
378 usage(EX_MISSING_ARGS, _(u'Missing e-mail address.'), ctx.scmd) |
378 usage(EX_MISSING_ARGS, _(u'Missing e-mail address.'), ctx.scmd) |
379 elif ctx.argc < 4: |
379 elif ctx.argc < 4: |
380 password = None |
380 password = None |
381 else: |
381 else: |
382 password = ctx.args[3] |
382 password = ctx.args[3] |
383 ctx.hdlr.user_add(ctx.args[2].lower(), password) |
383 gen_pass = ctx.hdlr.user_add(ctx.args[2].lower(), password) |
|
384 if gen_pass: |
|
385 w_std(_(u"Generated password: %s") % gen_pass) |
384 |
386 |
385 |
387 |
386 def user_delete(ctx): |
388 def user_delete(ctx): |
387 """delete the specified user""" |
389 """delete the specified user""" |
388 if ctx.argc < 3: |
390 if ctx.argc < 3: |