CommandStatus


Attributes

a aliases

()

a description

None

a help

'This command checks the SQLObject definition and checks if the tables in the database match.  It can always test for missing tables, and on some databases can test for the existance of other tables.  Column types are not currently checked.'

a max_args

0

a max_args_error

'You must provide no more than %(max_args)s arguments'

a min_args

0

a min_args_error

'You must provide at least %(min_args)s arguments'

a name

'status'

a parser

<optparse.OptionParser instance at 0x8cbd44c>

a prog_name

<property object at 0x8b05e64>

a required_args

[]

a summary

'Show status of classes vs. database'

Methods

f orderClassesByDependencyLevel(self, classes) ...

Return classes ordered by their depth in the class dependency tree (this is not the inheritance tree), from the top level (independant) classes to the deepest level. The dependency tree is defined by the foreign key relations.

f __classinit__(cls, new_args) ...

f __init__(self, invoked_as, command_name, args, runner) ...

f run(self) ...

f classes(self, require_connection=True, require_some=False) ...

f classes_from_module(self, module) ...

f connection(self) ...

f config(self) ...

f ini_config(self, conf_fn) ...

f classes_from_package(self, package_name) ...

f classes_from_egg(self, egg_spec) ...

f load_options_from_egg(self, egg_spec) ...

f config_from_egg(self, egg_spec, warn_no_sqlobject=True) ...

f ask(self, prompt, safe=False, default=True) ...

f shorten_filename(self, fn) ...

Shortens a filename to make it relative to the current directory (if it can). For display purposes.

f open_editor(self, pretext, breaker=None, extension='.txt') ...

Open an editor with the given text. Return the new text, or None if no edits were made. If given, everything after breaker will be ignored.

f print_class(self, soClass) ...

f command(self) ...

See the source for more information.