maasserver.models.filestorage

Storage for uploaded files.

Functions

generate_filestorage_key()
reverse(viewname[, urlconf, args, kwargs, ...])
urlencode(query[, doseq]) A version of Python’s urllib.urlencode() function that can operate on unicode strings.
uuid1([node, clock_seq]) Generate a UUID from a host ID, sequence number, and the current time.

Classes

Bin Wrapper class to convince django that a string is really binary.
BinaryField([verbose_name, name, ...]) A field that stores binary data.
CharField(*args, **kwargs)
CleanSave Mixin for model classes.
DefaultMeta Base class for model Meta classes in the maasserver app.
FileStorage(*args, **kwargs) A simple file storage keyed on file name.
FileStorageManager() Manager for FileStorage objects.
ForeignKey(to[, to_field, rel_class, ...])
Manager()
Model(*args, **kwargs)
User(*args, **kwargs) Users within the Django authentication system are represented by this model.
class maasserver.models.filestorage.FileStorage(*args, **kwargs)[source]

Bases: maasserver.models.cleansave.CleanSave, django.db.models.base.Model

A simple file storage keyed on file name.

Variables:
  • filename – A file name to use for the data being stored.
  • owner – This file’s owner..
  • content – The file’s actual data.
anon_resource_uri[source]

URI where the content of the file can be retrieved anonymously.

MAAS logo

MAAS

Metal As A Service.



Related Topics

This Page