def userdel(login=None): """ Remove a user""" if login is None: login = prompt("Login: "******"User has been deleted" except User.DoesNotExist: print "User not found" except Exception, e: print "Unexpected error: %s" % e
def renew(login=None, count=5): """ Renew a emergency codes""" if login is None: login = prompt("Login: "******"User not found" except Exception, e: print "Unexpected error: %s" % e