Module manage :: Class AddDebugUserCommand
[hide private]
[frames] | no frames]

Class AddDebugUserCommand

source code


Adds user for debug/testing purpose. You shouldn't use this on production instance

Instance Methods [hide private]
 
run(self, name, mail, **kwargs)
Runs a command.
source code

Inherited from flask_script.commands.Command: __call__, __init__, add_option, create_parser, get_options

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  option_list = Option("name"), Option("mail"), Option("--api_to...

Inherited from flask_script.commands.Command: help_args

Properties [hide private]

Inherited from flask_script.commands.Command: description

Inherited from object: __class__

Method Details [hide private]

run(self, name, mail, **kwargs)

source code 

Runs a command. This must be implemented by the subclass. Should take arguments as configured by the Command options.

Overrides: flask_script.commands.Command.run
(inherited documentation)

Class Variable Details [hide private]

option_list

Value:
Option("name"), Option("mail"), Option("--api_token", default= None, r\
equired= False), Option("--api_login", default= None, required= False)\
, Group(Option("--admin", action= "store_true"), Option("--no-admin", \
action= "store_true"), exclusive= True), Group(Option("--proven", acti\
on= "store_true"), Option("--no-proven", action= "store_true"), exclus\
ive= True),