Previous topic

oyProjectManager.core.models.Repository

Next topic

oyProjectManager.core.models.Version

This Page

oyProjectManager.core.models.User

Inheritance diagram of oyProjectManager.core.models.User

class oyProjectManager.core.models.User(name, initials=None, email=None, active=True)[source]

Bases: sqlalchemy.ext.declarative.Base

Manages users

The user class is the representation of the users in the system.

Because there is no central database in the current implementation of oyProjectManager, a user is stored in the Project‘s database only if the user has created some data. So creating a user and querying the Projects that this user has worked has no direct way.

Parameters:
  • name – The name of the user.
  • initials – Initials of the user. If skipped the initials will be extracted from the name attribute.
  • email – The email address of the user.
__init__(name, initials=None, email=None, active=True)[source]

Methods

__init__(name[, initials, email, active])
query()
save() saves this User instance to the database

Attributes

active
email
id
initials
metadata A collection of Table objects and their associated schema constructs.
name
versions_created
save()[source]

saves this User instance to the database