intranet.apps.files package¶
Submodules¶
intranet.apps.files.admin module¶
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:
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:
Model
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
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.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.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.
- class intranet.apps.files.models.Host_groups_visible(id, host, group)¶
Bases:
Model
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
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.parent
is aForwardManyToOneDescriptor
instance.
- group_id¶
- 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.parent
is aForwardManyToOneDescriptor
instance.
- host_id¶
- 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>¶
intranet.apps.files.tests module¶
Tests for the filecenter.
- class intranet.apps.files.tests.FilesTest(methodName='runTest')[source]¶
Bases:
IonTestCase