tldap.manager

The default manager’s and linkdescriptors used for tldap objects.

Terminology:

primary key
is the key that is not changed.
f / foriegn
is the object containing the primary key.
f_key
is this key, i.e. the primary key in the foriegn object.
f_key
is always a single value.
foriegn key
is the referenced key.
p / primary
is the object containing the foriegn key.
p_value
is this key, i.e. the foriegn key in the primary object.
this
is the object being operated on.
linked
is the object being referenced for this operation.

if p_value_is_list is true then p_value must be a list. if p_value_is_list is false then p_value must be a single value.

class tldap.manager.AdAccountLinkDescriptor(**kwargs)[source]

This field represents a link from an AD group to an AD account.

class tldap.manager.AdGroupLinkDescriptor(**kwargs)[source]

This field represents a link from an AD account to an AD group.

class tldap.manager.AdPrimaryAccountLinkDescriptor(domain_sid, **kwargs)[source]

This field represents a link from a user to a primary AD group. Update operations not guaranteed to work, due to AD rules.

class tldap.manager.AdPrimaryGroupLinkDescriptor(domain_sid, **kwargs)[source]

This field represents a link from a primary AD group to a user. Update operations operations not guaranteed to work, due to AD rules.

class tldap.manager.AliasDescriptor(linked_key)[source]

This field is an alias to another field.

class tldap.manager.LinkDescriptor(this_key, linked_cls, linked_key, linked_is_p, p_value_is_list, related_name=None)[source]

Base class for any field that links to another object.

class tldap.manager.Manager[source]

The base manager class.

get_query_set()[source]

Returns a new QuerySet object. Subclasses can override this method to easily customize the behavior of the Manager.

class tldap.manager.ManyToManyDescriptor(**kwargs)[source]

Field for this object that has an attribute containing a list of references to linked objects.

class tldap.manager.ManyToOneDescriptor(**kwargs)[source]

Linked object has an attribute that can contain only one member, that refers to this object. This field links to the linked object.

class tldap.manager.OneToManyDescriptor(**kwargs)[source]

This object has an attribute, represented by this field, that can contain only one member, that refers to linked object.

Previous topic

tldap.helpers

Next topic

tldap.middleware

This Page