uiro.commands package

uiro.commands.initdb module

class uiro.commands.initdb.InitDBCommand(app, app_args)

Bases: uiro.commands.LoadAppCommand

Creating database tables.

take_action(self, parsed_args)

uiro.commands.shell module

class uiro.commands.shell.ShellCommand(app, app_args)

Bases: uiro.commands.LoadAppCommand

Running python shell after building up an uiro application.

make_default_shell(self, interact=<function interact at 0x7f8e702b29e0>)
take_action(self, parsed_args)

uiro.commands.create module

class uiro.commands.create.command.CreateCommand(app, app_args)

Bases: gearbox.command.TemplateCommand

CLEAN_PACKAGE_NAME_RE = <_sre.SRE_Pattern object at 0x7f8e6f3b9720>
get_description(self)
get_parser(self, prog_name)
take_action(self, opts)

Module contents

class uiro.commands.LoadAppCommand(app, app_args)

Bases: gearbox.command.Command

Base class for creating uiro commands.

You can override this class and call loadadd method to get WSGI application built by paste.app_factory. While building the application, almost necessary setup will be done (for example setup databases, template lookups and so on), so then you can run some application-dependent scripts

get_parser(self, prog_name)
loadapp(self, parsed_args)

Table Of Contents

Previous topic

uiro package