cybexdata package

Submodules

cybexdata.admin module

Module for Django user model administration.

class cybexdata.admin.CustomUserAdmin(model, admin_site)

Bases: django.contrib.auth.admin.UserAdmin

add_fieldsets = ((None, {'classes': ('wide',), 'fields': ('username', 'email', 'password1', 'password2')}),)
get_containerid(instance)
get_cybex_token(instance)
get_dbip(instance)
get_dbpass(instance)
get_dbport(instance)
get_dbuser(instance)
get_inline_instances(request, obj=None)
get_orgid(instance)
get_tzname(instance)
inlines = (<class 'cybexdata.admin.ProfileInline'>, <class 'cybexdata.admin.GraphdbInline'>)
list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff', 'get_cybex_token', 'get_orgid', 'get_tzname', 'get_dbport', 'get_dbip', 'get_dbpass', 'get_dbuser', 'get_containerid')
property media
class cybexdata.admin.GraphdbInline(parent_model, admin_site)

Bases: django.contrib.admin.options.StackedInline

can_delete = False
fk_name = 'user'
property media
model

alias of cybexdata.models.Graphdb

verbose_name_plural = 'Graphdb'
class cybexdata.admin.ProfileInline(parent_model, admin_site)

Bases: django.contrib.admin.options.StackedInline

can_delete = False
fk_name = 'user'
property media
model

alias of cybexdata.models.Profile

verbose_name_plural = 'Profile'

cybexdata.apps module

class cybexdata.apps.CybexdataConfig(app_name, app_module)

Bases: django.apps.config.AppConfig

name = 'cybexdata'

cybexdata.models module

Module for defining Profile and Graph data models.

class cybexdata.models.Graphdb(id, user, dbport, dbip, dbuser, dbpass, containerid)

Bases: django.db.models.base.Model

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

containerid

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

dbip

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

dbpass

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

dbport

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

dbuser

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
user

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

user_id
class cybexdata.models.Profile(user, orgid, organizationname, tzname, cybex_token)

Bases: django.db.models.base.Model

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

cybex_token

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
organizationname

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

orgid

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

tzname

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

user

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

user_id
cybexdata.models.create_user_extra(sender, instance, created, **kwargs)

Adds the newly created user to the backend cybex user database.

cybexdata.models.save_user_extra(sender, instance, **kwargs)

cybexdata.tests module

Module contents