erecord_slm package

Submodules

erecord_slm.admin module

erecord_slm.forms module

erecord_slm.forms

Forms of the erecord_slm application

class erecord_slm.forms.TodownloadUrlForm(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)[source]

Bases: django.forms.forms.Form

Form dedicated to an url to download

base_fields = {'more': <django.forms.fields.CharField object>, 'url': <django.forms.fields.URLField object>}
declared_fields = {'more': <django.forms.fields.CharField object>, 'url': <django.forms.fields.URLField object>}
classmethod lifetime_text(lifetime)[source]
media
set(label=None, lifetime=None, help=None)[source]
class erecord_slm.forms.UploadDocumentForm(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)[source]

Bases: django.forms.forms.Form

base_fields = {'docfile': <django.forms.fields.FileField object>}
declared_fields = {'docfile': <django.forms.fields.FileField object>}
media

erecord_slm.models module

erecord_slm.models_mixins module

erecord_slm.models_mixins

Mixins for erecord_slm model

class erecord_slm.models_mixins.LoadVpzDocumentMixin[source]

Bases: object

additional methods for ‘side’loadVpzDocument

clear_dir()[source]

Deletes (if exists) the folder relative to docfile (containing it)

def_key_value()[source]

Returns key value after having defined it from url

get_absolute_url()[source]

Returns docfile absolute path

classmethod get_available_filepath(root, sub, date, filename)[source]

Defines and returns a file path name based on the input information, that doesn’t yet exist (…and should be ‘immediately’ created !)

get_url()[source]

Returns docfile path (relative)

is_old_indays(days)[source]

‘side’loadVpzDocument is old if date ‘older’ than days

erecord_slm.router module

erecord_slm.router

class erecord_slm.router.SlmRouter[source]

Bases: erecord_cmn.router.DatabaseRouter

The application database router.

app_name = 'erecord_slm'
db_name = 'default'

erecord_slm.serializers module

erecord_slm.serializers

class erecord_slm.serializers.KeyOptionSerializer(instance=None, data=<class rest_framework.fields.empty>, **kwargs)[source]

Bases: rest_framework.serializers.Serializer

Option ‘key’ (for identification in download…)

validate(attrs)[source]

erecord_slm.urls module

erecord_slm.views module

erecord_slm.views_mixins module

Module contents

erecord_slm

This package is part of erecord - Record platform web development

copyright:Copyright (C) 2014-2015 INRA http://www.inra.fr.
license:GPLv3, see License for more details.
authors:see Authors.

Downloadable and uploaded files management application

The slm application is dedicated to downloadable and uploaded files management.

The applications that have such files call for erecord_slm.

See erecord