Logger class that by default outputs to stderr
Log Handler for console that outputs colored log messages according to their severity
Models related utility functions
Returns column objects of the current model
| Parameters: | col_type – (Optional) The type of columns to return. Currently supported types are ‘primary_key’ and ‘foreign_key’ |
|---|
returns record counts for given models
Processes the passed application package and returns all SQLAlchemy models for the application.
| Parameters: | get_app_models – Indicates if the apps present in the application should also be searched for models (default True) |
|---|
Given a models dict containing subapp names as keys and models as a list of values return an aggregated list of all models
A utility function that returns the pages (for records pagination display purposes)
| Parameters: |
|
|---|
Returns a list containing pages that should be displayed as page links.
Packages related utility functions
Returns all sub-modules of a package also indicating if the module is also a package Return a list with each item being a dictionary with keys name (String) and is_package (Boolean)
Routes related utility functions
Returns OrderedDict of routes available for given request
| Parameters: | request – Request object (normally called from controller code) |
|---|---|
| Returns: | OrderedDict of routes with routename as key and route url as value |