Previous topic

5.8. filters – Rendering of text written in a wiki syntax

Next topic

5.10. lifecycle — Utilities to manipulate lifecycle

This Page

Languages

Previous versions

1.2
1.1

5.9. forms — Forms used by openPLM

plmapp.forms.enhance_fields(form, cls)[source]

Replaces textinputs field of form with auto complete fields.

Replaces textareas’ widgets with widgets user defined widgets (RICHTEXT_WIDGET_CLASS setting).

Parameters:
  • form – a Form instance or class
  • cls – class of the source that provides suggested values
plmapp.forms.get_initial_creation_data(user, cls, start=0, inbulk_cache=None)[source]

Returns initial data to create a new object (from get_creation_form()).

Parameters:
  • user – user who will create the object
  • cls – class of the created object
  • start – used to generate the reference, see get_new_reference()
class plmapp.forms.CreationForm(user, start, inbulk_cache, *args, **kwargs)[source]

Bases: django.forms.models.ModelForm

Base class of forms used to create an object (Part, Document, Group...)

Parameters:
  • user – User who creates the object
  • start – an offset useful when several forms are displayed at the same time so that all forms have a valid, unique reference
  • inbulk_cache – a dictionary to store cached data, like valid groups
  • args – extra arguments passed to ModelFrom constructor
  • kwargs – extra kwargs arguments passed to ModelForm constructor
base_fields = {}
declared_fields = {}
media
class plmapp.forms.PLMObjectCreationForm(user, start, inbulk_cache, *args, **kwargs)[source]

Bases: django.forms.models.ModelForm

clean_reference()
clean_revision()
clean()[source]
base_fields = {'auto': <django.forms.fields.BooleanField object at 0x85a31d0>}
declared_fields = {'auto': <django.forms.fields.BooleanField object at 0x85a31d0>}
media
class plmapp.forms.PrivateFileChoiceField(queryset, cache_choices=False, required=True, widget=None, label=None, initial=None, help_text=None, *args, **kwargs)[source]

Bases: django.forms.models.ModelMultipleChoiceField

label_from_instance(obj)[source]
class plmapp.forms.Document2CreationForm(user, start, inbulk_cache, *args, **kwargs)[source]

Bases: plmapp.forms.PLMObjectCreationForm

base_fields = {'auto': <django.forms.fields.BooleanField object at 0x85a31d0>, 'pfiles': <plmapp.forms.PrivateFileChoiceField object at 0x4e493d0>}
declared_fields = {'auto': <django.forms.fields.BooleanField object at 0x85a31d0>, 'pfiles': <plmapp.forms.PrivateFileChoiceField object at 0x4e493d0>}
media
plmapp.forms.get_creation_form(user, cls=<class 'openPLM.plmapp.models.plmobject.PLMObject'>, data=None, start=0, inbulk_cache=None, **kwargs)[source]

Returns a creation form suitable to create an object of type cls.

The returned form can be used, if it is valid, with the function create_from_form() to create a PLMObject and its associated PLMObjectController.

If data is provided, it will be used to fill the form.

start is used if data is None, it’s usefull if you need to show several initial creation forms at once and you want different references.

inbulk_cache may be a dictionary to cache lifecycles, groups and other values. It is useful if a page renders several creation forms bound to the same user

plmapp.forms.get_modification_form(cls=<class 'openPLM.plmapp.models.plmobject.PLMObject'>, data=None, instance=None)[source]
plmapp.forms.group_types(types)[source]
plmapp.forms.type_field(choices)[source]
class plmapp.forms.TypeForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

base_fields = {'type': <django.forms.fields.TypedChoiceField object at 0x4e49c10>}
media
class plmapp.forms.PartTypeForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

base_fields = {'type': <django.forms.fields.TypedChoiceField object at 0x4e491d0>}
media
class plmapp.forms.DocumentTypeForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

base_fields = {'type': <django.forms.fields.TypedChoiceField object at 0x4e49590>}
media
class plmapp.forms.Document2TypeForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

base_fields = {'type': <django.forms.fields.TypedChoiceField object at 0x4e49450>}
media
class plmapp.forms.SimpleSearchForm(*args, **kwargs)[source]

Bases: haystack.forms.SearchForm

LIST = [('Document', [('Document', 'Document')]), ('Part', [('Part', 'Part')]), ('Group', [('Group', 'Group')]), ('User', [('User', 'User')])]
search()[source]
base_fields = {'q': <django.forms.fields.CharField object at 0x4e49790>, 'type': <django.forms.fields.TypedChoiceField object at 0x4e49510>, 'search_official': <django.forms.fields.BooleanField object at 0x4e494d0>}
media
class plmapp.forms.PLMObjectForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

A form that identifies a PLMObject.

clean()[source]
base_fields = {'type': <django.forms.fields.CharField object at 0x4e49550>, 'reference': <django.forms.fields.CharField object at 0x4e49750>, 'revision': <django.forms.fields.CharField object at 0x4e49ad0>}
media
class plmapp.forms.AddChildForm(parent, *args, **kwargs)[source]

Bases: plmapp.forms.PLMObjectForm, plmapp.forms.PartTypeForm

clean()[source]
base_fields = {'type': <django.forms.fields.TypedChoiceField object at 0x4e491d0>, 'reference': <django.forms.fields.CharField object at 0x4e49750>, 'revision': <django.forms.fields.CharField object at 0x4e49ad0>, 'quantity': <django.forms.fields.FloatField object at 0x4e496d0>, 'order': <django.forms.fields.IntegerField object at 0x4e49210>, 'unit': <django.forms.fields.ChoiceField object at 0x4e498d0>}
media
class plmapp.forms.DisplayChildrenForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

LEVELS = (('all', <django.utils.functional.__proxy__ object at 0x4e49950>), ('first', <django.utils.functional.__proxy__ object at 0x4e49c50>), ('last', <django.utils.functional.__proxy__ object at 0x8861990>))
STATES = (('all', <django.utils.functional.__proxy__ object at 0x8861490>), ('official', <django.utils.functional.__proxy__ object at 0x3ed6750>))
base_fields = {'level': <django.forms.fields.ChoiceField object at 0x4e57110>, 'date': <django.forms.fields.SplitDateTimeField object at 0x4e57550>, 'state': <django.forms.fields.ChoiceField object at 0x4e579d0>, 'show_alternates': <django.forms.fields.BooleanField object at 0x4e574d0>, 'show_documents': <django.forms.fields.BooleanField object at 0x4e57f90>}
media
class plmapp.forms.CompareBOMForm(*args, **kwargs)[source]

Bases: plmapp.forms.DisplayChildrenForm

base_fields = {'level': <django.forms.fields.ChoiceField object at 0x4e57110>, 'date': <django.forms.fields.SplitDateTimeField object at 0x4e576d0>, 'state': <django.forms.fields.ChoiceField object at 0x4e579d0>, 'show_alternates': <django.forms.fields.BooleanField object at 0x4e574d0>, 'show_documents': <django.forms.fields.BooleanField object at 0x4e57f90>, 'date2': <django.forms.fields.SplitDateTimeField object at 0x4e57c90>, 'compact': <django.forms.fields.BooleanField object at 0x4e57f50>}
media
class plmapp.forms.ModifyChildForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False, instance=None)[source]

Bases: django.forms.models.ModelForm

class Meta[source]
model

alias of ParentChildLink

fields = ['order', 'quantity', 'unit', 'child', 'parent']
ModifyChildForm.clean()[source]
ModifyChildForm.base_fields = {'order': <django.forms.fields.IntegerField object at 0x90d6910>, 'quantity': <django.forms.fields.FloatField object at 0x90d6c50>, 'unit': <django.forms.fields.ChoiceField object at 0x90d6690>, 'child': <django.forms.models.ModelChoiceField object at 0x90d6cd0>, 'parent': <django.forms.models.ModelChoiceField object at 0x4e57fd0>, 'delete': <django.forms.fields.BooleanField object at 0x4e572d0>}
ModifyChildForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x4e572d0>, 'parent': <django.forms.models.ModelChoiceField object at 0x4e57fd0>, 'child': <django.forms.models.ModelChoiceField object at 0x90d6cd0>, 'quantity': <django.forms.fields.FloatField object at 0x90d6c50>, 'order': <django.forms.fields.IntegerField object at 0x90d6910>, 'unit': <django.forms.fields.ChoiceField object at 0x90d6690>}
ModifyChildForm.media
class plmapp.forms.BaseChildrenFormSet(*args, **kwargs)[source]

Bases: django.forms.models.BaseModelFormSet

add_fields(form, index)[source]
plmapp.forms.get_children_formset(controller, data=None)[source]
class plmapp.forms.AddRevisionForm(ctrl, user, *args, **kwargs)[source]

Bases: django.forms.forms.Form

clean_revision()
base_fields = {'revision': <django.forms.fields.CharField object at 0x90d6990>, 'group': <django.forms.models.ModelChoiceField object at 0x90fa490>}
media
class plmapp.forms.RelPartForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False, instance=None)[source]

Bases: django.forms.models.ModelForm

class Meta[source]
model

alias of DocumentPartLink

fields = ['document', 'part']
RelPartForm.base_fields = {'document': <django.forms.models.ModelChoiceField object at 0x87df210>, 'part': <django.forms.models.ModelChoiceField object at 0x8875610>}
RelPartForm.declared_fields = {'document': <django.forms.models.ModelChoiceField object at 0x87df210>, 'part': <django.forms.models.ModelChoiceField object at 0x8875610>}
RelPartForm.media
class plmapp.forms.SelectPartForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False, instance=None)[source]

Bases: django.forms.models.ModelForm

class Meta[source]
model

alias of Part

fields = ['selected']
SelectPartForm.base_fields = {'selected': <django.forms.fields.BooleanField object at 0x90fa690>}
SelectPartForm.declared_fields = {'selected': <django.forms.fields.BooleanField object at 0x90fa690>}
SelectPartForm.media
class plmapp.forms.SelectDocumentForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

base_fields = {'selected': <django.forms.fields.BooleanField object at 0x90d6750>, 'document': <django.forms.models.ModelChoiceField object at 0x8634390>}
media
class plmapp.forms.SelectChildForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

base_fields = {'selected': <django.forms.fields.BooleanField object at 0x8634fd0>, 'link': <django.forms.models.ModelChoiceField object at 0x8634ad0>}
media
class plmapp.forms.SelectParentForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: plmapp.forms.SelectChildForm

base_fields = {'selected': <django.forms.fields.BooleanField object at 0x8634650>, 'link': <django.forms.models.ModelChoiceField object at 0x8634ad0>, 'new_parent': <django.forms.models.ModelChoiceField object at 0x8634cd0>}
media
class plmapp.forms.AddPartForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: plmapp.forms.PLMObjectForm, plmapp.forms.PartTypeForm

base_fields = {'type': <django.forms.fields.TypedChoiceField object at 0x4e491d0>, 'reference': <django.forms.fields.CharField object at 0x4e49750>, 'revision': <django.forms.fields.CharField object at 0x4e49ad0>}
media
class plmapp.forms.ModifyRelPartForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False, instance=None)[source]

Bases: plmapp.forms.RelPartForm

base_fields = {'document': <django.forms.models.ModelChoiceField object at 0x87df210>, 'part': <django.forms.models.ModelChoiceField object at 0x8875610>, 'delete': <django.forms.fields.BooleanField object at 0x8634550>}
declared_fields = {'document': <django.forms.models.ModelChoiceField object at 0x87df210>, 'part': <django.forms.models.ModelChoiceField object at 0x8875610>, 'delete': <django.forms.fields.BooleanField object at 0x8634550>}
media
plmapp.forms.get_rel_part_formset(controller, data=None, **kwargs)[source]
class plmapp.forms.AddFileForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

base_fields = {'filename': <django.forms.fields.FileField object at 0x8893590>}
media
class plmapp.forms.DeleteFileForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False, instance=None)[source]

Bases: django.forms.models.ModelForm

class Meta[source]
model

alias of DocumentFile

fields = ['document']
DeleteFileForm.base_fields = {'document': <django.forms.models.ModelChoiceField object at 0x85b8890>, 'delete': <django.forms.fields.BooleanField object at 0x85b8f50>}
DeleteFileForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x85b8f50>, 'document': <django.forms.models.ModelChoiceField object at 0x85b8890>}
DeleteFileForm.media
plmapp.forms.get_file_formset(controller, data=None)[source]
class plmapp.forms.DeletePrivateFileForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False, instance=None)[source]

Bases: django.forms.models.ModelForm

class Meta[source]
model

alias of PrivateFile

fields = ['creator']
DeletePrivateFileForm.base_fields = {'creator': <django.forms.models.ModelChoiceField object at 0x85b8210>, 'delete': <django.forms.fields.BooleanField object at 0x85b85d0>}
DeletePrivateFileForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x85b85d0>, 'creator': <django.forms.models.ModelChoiceField object at 0x85b8210>}
DeletePrivateFileForm.media
plmapp.forms.get_private_file_formset(controller, data=None)[source]
class plmapp.forms.AddDocCadForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: plmapp.forms.PLMObjectForm, plmapp.forms.DocumentTypeForm

base_fields = {'type': <django.forms.fields.TypedChoiceField object at 0x4e49590>, 'reference': <django.forms.fields.CharField object at 0x4e49750>, 'revision': <django.forms.fields.CharField object at 0x4e49ad0>}
media
class plmapp.forms.ModifyDocCadForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False, instance=None)[source]

Bases: django.forms.models.ModelForm

class Meta[source]
model

alias of DocumentPartLink

fields = ['part', 'document']
ModifyDocCadForm.base_fields = {'part': <django.forms.models.ModelChoiceField object at 0x90d6a50>, 'document': <django.forms.models.ModelChoiceField object at 0x90fa650>, 'delete': <django.forms.fields.BooleanField object at 0x8893e10>}
ModifyDocCadForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x8893e10>, 'part': <django.forms.models.ModelChoiceField object at 0x90d6a50>, 'document': <django.forms.models.ModelChoiceField object at 0x90fa650>}
ModifyDocCadForm.media
plmapp.forms.get_doc_cad_formset(controller, data=None, **kwargs)[source]
class plmapp.forms.NavigateFilterForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

base_fields = {'only_search_results': <django.forms.fields.BooleanField object at 0x88c6d90>, 'prog': <django.forms.fields.ChoiceField object at 0x88c6350>, 'doc_parts': <django.forms.fields.CharField object at 0x88c6e90>, 'update': <django.forms.fields.BooleanField object at 0x88c6290>, 'date': <django.forms.fields.DateField object at 0x88c6210>, 'time': <django.forms.fields.TimeField object at 0x88c6450>}
media
class plmapp.forms.PartNavigateFilterForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: plmapp.forms.NavigateFilterForm

base_fields = {'only_search_results': <django.forms.fields.BooleanField object at 0x88c6d90>, 'prog': <django.forms.fields.ChoiceField object at 0x88c6350>, 'doc_parts': <django.forms.fields.CharField object at 0x88c6e90>, 'update': <django.forms.fields.BooleanField object at 0x88c6290>, 'date': <django.forms.fields.DateField object at 0x88c6210>, 'time': <django.forms.fields.TimeField object at 0x88c6450>, 'child': <django.forms.fields.BooleanField object at 0x8676290>, 'parents': <django.forms.fields.BooleanField object at 0x86641d0>, 'doc': <django.forms.fields.BooleanField object at 0x8664310>, 'owner': <django.forms.fields.BooleanField object at 0x8664890>, 'signer': <django.forms.fields.BooleanField object at 0x86646d0>, 'notified': <django.forms.fields.BooleanField object at 0x8664fd0>}
media
class plmapp.forms.DocNavigateFilterForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: plmapp.forms.NavigateFilterForm

base_fields = {'only_search_results': <django.forms.fields.BooleanField object at 0x88c6d90>, 'prog': <django.forms.fields.ChoiceField object at 0x88c6350>, 'doc_parts': <django.forms.fields.CharField object at 0x88c6e90>, 'update': <django.forms.fields.BooleanField object at 0x88c6290>, 'date': <django.forms.fields.DateField object at 0x88c6210>, 'time': <django.forms.fields.TimeField object at 0x88c6450>, 'part': <django.forms.fields.BooleanField object at 0x8664b90>, 'owner': <django.forms.fields.BooleanField object at 0x86643d0>, 'signer': <django.forms.fields.BooleanField object at 0x8664a90>, 'notified': <django.forms.fields.BooleanField object at 0x81986d0>}
media
class plmapp.forms.UserNavigateFilterForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: plmapp.forms.NavigateFilterForm

base_fields = {'only_search_results': <django.forms.fields.BooleanField object at 0x88c6d90>, 'prog': <django.forms.fields.ChoiceField object at 0x88c6350>, 'doc_parts': <django.forms.fields.CharField object at 0x88c6e90>, 'update': <django.forms.fields.BooleanField object at 0x88c6290>, 'date': <django.forms.fields.DateField object at 0x88c6210>, 'time': <django.forms.fields.TimeField object at 0x88c6450>, 'owned': <django.forms.fields.BooleanField object at 0xa1f9e10>, 'to_sign': <django.forms.fields.BooleanField object at 0xa1f9290>, 'request_notification_from': <django.forms.fields.BooleanField object at 0x8de9bd0>}
media
class plmapp.forms.GroupNavigateFilterForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: plmapp.forms.NavigateFilterForm

base_fields = {'only_search_results': <django.forms.fields.BooleanField object at 0x88c6d90>, 'prog': <django.forms.fields.ChoiceField object at 0x88c6350>, 'doc_parts': <django.forms.fields.CharField object at 0x88c6e90>, 'update': <django.forms.fields.BooleanField object at 0x88c6290>, 'date': <django.forms.fields.DateField object at 0x88c6210>, 'time': <django.forms.fields.TimeField object at 0x88c6450>, 'owner': <django.forms.fields.BooleanField object at 0x8de95d0>, 'user': <django.forms.fields.BooleanField object at 0x8de9190>, 'part': <django.forms.fields.BooleanField object at 0x8de9750>, 'doc': <django.forms.fields.BooleanField object at 0x8de9d50>}
media
class plmapp.forms.ECRNavigateFilterForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: plmapp.forms.NavigateFilterForm

base_fields = {'only_search_results': <django.forms.fields.BooleanField object at 0x88c6d90>, 'prog': <django.forms.fields.ChoiceField object at 0x88c6350>, 'doc_parts': <django.forms.fields.CharField object at 0x88c6e90>, 'update': <django.forms.fields.BooleanField object at 0x88c6290>, 'date': <django.forms.fields.DateField object at 0x88c6210>, 'time': <django.forms.fields.TimeField object at 0x88c6450>, 'owner': <django.forms.fields.BooleanField object at 0x8de92d0>, 'signer': <django.forms.fields.BooleanField object at 0x87d66d0>, 'part': <django.forms.fields.BooleanField object at 0x87d6810>, 'doc': <django.forms.fields.BooleanField object at 0x87d6050>}
media
plmapp.forms.get_navigate_form(obj)[source]
class plmapp.forms.OpenPLMUserChangeForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False, instance=None)[source]

Bases: django.forms.models.ModelForm

class Meta[source]
model

alias of User

exclude = ('username', 'is_staff', 'is_active', 'is_superuser', 'last_login', 'date_joined', 'groups', 'user_permissions', 'password')
OpenPLMUserChangeForm.clean_avatar()[source]
OpenPLMUserChangeForm.base_fields = {'first_name': <django.forms.fields.CharField object at 0x88c6c10>, 'last_name': <django.forms.fields.CharField object at 0x85b8dd0>, 'email': <django.forms.fields.EmailField object at 0x8de93d0>, 'avatar': <django.forms.fields.ImageField object at 0x87d67d0>}
OpenPLMUserChangeForm.declared_fields = {'avatar': <django.forms.fields.ImageField object at 0x87d67d0>}
OpenPLMUserChangeForm.media
class plmapp.forms.SelectUserForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

clean()[source]
base_fields = {'type': <django.forms.fields.CharField object at 0x8de9990>, 'username': <django.forms.fields.CharField object at 0x8de9ad0>}
media
class plmapp.forms.ModifyUserForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

user_data[source]
base_fields = {'delete': <django.forms.fields.BooleanField object at 0x8de9c10>, 'user': <django.forms.models.ModelChoiceField object at 0x8524210>, 'group': <django.forms.models.ModelChoiceField object at 0x8524d50>}
media
plmapp.forms.get_user_formset(controller, data=None)[source]
class plmapp.forms.SponsorForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

ROLES = (('contributor', <django.utils.functional.__proxy__ object at 0x8524810>), ('reader', <django.utils.functional.__proxy__ object at 0x85242d0>), ('restricted', <django.utils.functional.__proxy__ object at 0x8524450>))
class Meta[source]
model

alias of User

fields = ('username', 'first_name', 'last_name', 'email', 'role', 'groups')
SponsorForm.clean_email()[source]
SponsorForm.clean_role()[source]
SponsorForm.clean()[source]
SponsorForm.base_fields = {'username': <django.forms.fields.CharField object at 0x85d9ad0>, 'first_name': <django.forms.fields.CharField object at 0x855b590>, 'last_name': <django.forms.fields.CharField object at 0x876cd50>, 'email': <django.forms.fields.EmailField object at 0x85410d0>, 'role': <django.forms.fields.TypedChoiceField object at 0x8524890>, 'groups': <django.forms.models.ModelMultipleChoiceField object at 0x85d9050>, 'sponsor': <django.forms.models.ModelChoiceField object at 0x8524d10>, 'warned': <django.forms.fields.BooleanField object at 0x8524990>, 'language': <django.forms.fields.TypedChoiceField object at 0x8524850>}
SponsorForm.declared_fields = {'sponsor': <django.forms.models.ModelChoiceField object at 0x8524d10>, 'warned': <django.forms.fields.BooleanField object at 0x8524990>, 'role': <django.forms.fields.TypedChoiceField object at 0x8524890>, 'language': <django.forms.fields.TypedChoiceField object at 0x8524850>}
SponsorForm.media
class plmapp.forms.InvitationForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

base_fields = {'invitation': <django.forms.models.ModelChoiceField object at 0x8138450>}
media
class plmapp.forms.CSVForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

base_fields = {'file': <django.forms.fields.FileField object at 0x8138fd0>, 'encoding': <django.forms.fields.TypedChoiceField object at 0x8138a50>}
media
plmapp.forms.get_headers_formset(*args)[source]
class plmapp.forms.ConfirmPasswordForm(user, *args, **kwargs)[source]

Bases: django.forms.forms.Form

A form that checks the user has entered his password.

clean_password()[source]

Validates that the password field is correct.

base_fields = {'password': <django.forms.fields.CharField object at 0x9476c90>}
media
class plmapp.forms.HistoryObjectForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

A Form asking the user the information he wants displayed in the history

base_fields = {'document': <django.forms.fields.BooleanField object at 0x9476fd0>, 'part': <django.forms.fields.BooleanField object at 0x9476d90>, 'group': <django.forms.fields.BooleanField object at 0x9476e10>}
media
class plmapp.forms.HistoryDateForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=u':', empty_permitted=False)[source]

Bases: django.forms.forms.Form

base_fields = {'date_history_begin': <django.forms.fields.DateTimeField object at 0x854e950>, 'number_days': <django.forms.fields.IntegerField object at 0x881a150>, 'done_by': <django.forms.fields.CharField object at 0x881a350>}
media