mxcubeweb.core.components.user.database#

Functions

init_db(path)

Classes

UserDatastore(*args[, message_model])

User datastore for Flask-SQLAlchemy datastore transactions.

class mxcubeweb.core.components.user.database.UserDatastore(*args, message_model=type['Message'], **kwargs)[source]#

Bases: SQLAlchemySessionUserDatastore

User datastore for Flask-SQLAlchemy datastore transactions.

A UserDatastore implementation that assumes the use of Flask-SQLAlchemy for datastore transactions.

Parameters:
  • db

  • user_model – See Models.

  • role_model – See Models.