cybexdata package¶
Subpackages¶
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¶ 
- 
 
cybexdata.apps module¶
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.placeis aForwardOneToOneDescriptorinstance.
- 
user_id¶ 
- 
exception 
 
- 
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.placeis aForwardOneToOneDescriptorinstance.
- 
user_id¶ 
- 
exception 
 
- 
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)¶