Package coprs
[hide private]
[frames] | no frames]

Package coprs

source code

Submodules [hide private]

Functions [hide private]
 
db_session_scope()
Provide a transactional scope around a series of operations.
source code
 
get_error_handler() source code
 
handle_404(error) source code
 
handle_403(error) source code
 
handle_400(error) source code
 
handle_500(error) source code
 
handle_504(error) source code
 
system_static(filename, component="")
:param component: name of the javascript component provided by a RPM package do not confuse with a name of the RPM package itself (e.g.
source code
Variables [hide private]
  app = flask.Flask(__name__)
  oid = OpenID(app, app.config ["OPENID_STORE"], safe_roots= [],...
  db = SQLAlchemy(app)
  whooshee = Whooshee(app)
  rcp = RedisConnectionProvider(config= app.config)
Function Details [hide private]

db_session_scope()

source code 

Provide a transactional scope around a series of operations.

Decorators:
  • @contextmanager

handle_404(error)

source code 
Decorators:
  • @app.errorhandler(404)
  • @app.errorhandler(ObjectNotFound)

handle_403(error)

source code 
Decorators:
  • @app.errorhandler(403)
  • @app.errorhandler(AccessRestricted)

handle_400(error)

source code 
Decorators:
  • @app.errorhandler(400)
  • @app.errorhandler(BadRequest)

handle_500(error)

source code 
Decorators:
  • @app.errorhandler(500)
  • @app.errorhandler(CoprHttpException)

handle_504(error)

source code 
Decorators:
  • @app.errorhandler(504)

system_static(filename, component="")

source code 

:param component: name of the javascript component provided by a RPM package
                  do not confuse with a name of the RPM package itself
                  (e.g. 'jquery' component is provided by 'js-jquery1' package)
:param filename: path to a file relative to the component root directory
:return: content of a static file

Decorators:
  • @app.route('/system_static//')
  • @app.route('/system_static/')

Variables Details [hide private]

oid

Value:
OpenID(app, app.config ["OPENID_STORE"], safe_roots= [], extension_res\
ponses= [TeamsResponse])