intranet.apps.files package¶
Submodules¶
intranet.apps.files.forms module¶
-
class
intranet.apps.files.forms.UploadFileForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.forms.Form-
declared_fields= {'file': <django.forms.fields.FileField object>}¶
-
intranet.apps.files.models module¶
-
class
intranet.apps.files.models.Host(id, name, code, address, directory, windows, linux, available_to_all)[source]¶ Bases:
django.db.models.base.Model-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
address¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
available_to_all¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
code¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
directory¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
groups_visible¶ Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
linux¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
name¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <intranet.apps.files.models.HostManager object>¶
-
windows¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
intranet.apps.files.models.Host_groups_visible(id, host, group)¶ Bases:
django.db.models.base.Model-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
group¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
group_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
host¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
host_id¶ 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>¶
-
exception
intranet.apps.files.tests module¶
Tests for the filecenter.