Skip to main content

swmm_django package

Subpackages

Submodules

swmm_django.admin module

swmm_django.models module

Definition of models.

class swmm_django.models.DetectionType(*args, **kwargs)

Bases: Model

_summary_

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

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 = django.db.models.manager.Manager object

class swmm_django.models.InpFile(*args, **kwargs)

Bases: Model

[summary] : Class representing an uploaded SWMM Input File.

  • Parameters:models ([type]) – [description]
  • Returns:[description]
  • Return type:[type]

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

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

inp_file

The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:

>>> from myapp.models import MyModel
>>> instance = MyModel.objects.get(pk=1)
>>> instance.file.size

Assign a file object on assignment so you can do:

>>> with open('/path/to/hello.world') as f:
... instance.file = File(f)

network

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

plume_count

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

raingage_count

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

save(*args, **kwargs)

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

class swmm_django.models.MediaFileSystemStorage(*args, **kwargs)

Bases: FileSystemStorage

[summary]

  • Parameters:FileSystemStorage ([type]) – [description]

get_available_name(name, max_length=None)

Return a filename that’s free on the target storage system and available for new content to be written to.

class swmm_django.models.Pollutant(*args, **kwargs)

Bases: Model

_summary_

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

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 = django.db.models.manager.Manager object

Module contents