tardis.apps.equipment package

Submodules

tardis.apps.equipment.admin module

tardis.apps.equipment.forms module

class tardis.apps.equipment.forms.EquipmentSearchForm(data=None, files=None, auto_id=u'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)

Bases: django.forms.forms.Form

base_fields = {'description': <django.forms.fields.CharField object at 0x7fc8ad82a3d0>, 'key': <django.forms.fields.CharField object at 0x7fc8ad82a490>, 'make': <django.forms.fields.CharField object at 0x7fc8ad82a710>, 'model': <django.forms.fields.CharField object at 0x7fc8ad82a6d0>, 'serial': <django.forms.fields.CharField object at 0x7fc8ad82a910>, 'type': <django.forms.fields.CharField object at 0x7fc8ad82a650>}
declared_fields = {'description': <django.forms.fields.CharField object at 0x7fc8ad82a3d0>, 'key': <django.forms.fields.CharField object at 0x7fc8ad82a490>, 'make': <django.forms.fields.CharField object at 0x7fc8ad82a710>, 'model': <django.forms.fields.CharField object at 0x7fc8ad82a6d0>, 'serial': <django.forms.fields.CharField object at 0x7fc8ad82a910>, 'type': <django.forms.fields.CharField object at 0x7fc8ad82a650>}
media

tardis.apps.equipment.models module

class tardis.apps.equipment.models.Equipment(id, key, description, make, model, type, serial, comm, decomm, url)

Bases: django.db.models.base.Model

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

comm

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

dataset

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 and topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

decomm

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

description

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.

key

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

make

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

model

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>
serial

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

type

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

url

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

tardis.apps.equipment.tests module

tests.py http://docs.djangoproject.com/en/dev/topics/testing/

class tardis.apps.equipment.tests.EquipmentTestCase(methodName='runTest')

Bases: django.test.testcases.TestCase

fixtures = ['initial_data.json']
setUp()

Hook method for setting up the test fixture before exercising it.

testEquipmentDetail()
testEquipmentList()
testSearchEquipmentForm()
testSearchEquipmentResult()
tardis.apps.equipment.tests.suite()

tardis.apps.equipment.urls module

tardis.apps.equipment.views module

tardis.apps.equipment.views.index(request)
tardis.apps.equipment.views.search(request)
tardis.apps.equipment.views.view_id(request, object_id)
tardis.apps.equipment.views.view_key(request, object_key)

Module contents