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 0x81efc90>}
declared_fields = {'auto': <django.forms.fields.BooleanField object at 0x81efc90>}
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 0x81efc90>, 'pfiles': <plmapp.forms.PrivateFileChoiceField object at 0x81ef810>}
declared_fields = {'auto': <django.forms.fields.BooleanField object at 0x81efc90>, 'pfiles': <plmapp.forms.PrivateFileChoiceField object at 0x81ef810>}
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 0x81ef550>}
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 0x481de10>}
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 0x481dad0>}
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 0x481d290>}
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 0x481d210>, 'type': <django.forms.fields.TypedChoiceField object at 0x481d850>, 'search_official': <django.forms.fields.BooleanField object at 0x481dc10>}
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 0x481d950>, 'reference': <django.forms.fields.CharField object at 0x481d610>, 'revision': <django.forms.fields.CharField object at 0x481da90>}
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 0x481de10>, 'reference': <django.forms.fields.CharField object at 0x481d610>, 'revision': <django.forms.fields.CharField object at 0x481da90>, 'quantity': <django.forms.fields.FloatField object at 0x481dcd0>, 'order': <django.forms.fields.IntegerField object at 0x8515190>, 'unit': <django.forms.fields.ChoiceField object at 0x8515d50>}
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 0x8515a10>), ('first', <django.utils.functional.__proxy__ object at 0x8515890>), ('last', <django.utils.functional.__proxy__ object at 0x8515150>))
STATES = (('all', <django.utils.functional.__proxy__ object at 0x85155d0>), ('official', <django.utils.functional.__proxy__ object at 0x8515790>))
base_fields = {'level': <django.forms.fields.ChoiceField object at 0x85158d0>, 'date': <django.forms.fields.SplitDateTimeField object at 0x8515650>, 'state': <django.forms.fields.ChoiceField object at 0xa3da0d0>, 'show_alternates': <django.forms.fields.BooleanField object at 0xa3da150>, 'show_documents': <django.forms.fields.BooleanField object at 0xa3da290>}
media
class plmapp.forms.CompareBOMForm(*args, **kwargs)[source]

Bases: plmapp.forms.DisplayChildrenForm

base_fields = {'level': <django.forms.fields.ChoiceField object at 0x85158d0>, 'date': <django.forms.fields.SplitDateTimeField object at 0xa3dab50>, 'state': <django.forms.fields.ChoiceField object at 0xa3da0d0>, 'show_alternates': <django.forms.fields.BooleanField object at 0xa3da150>, 'show_documents': <django.forms.fields.BooleanField object at 0xa3da290>, 'date2': <django.forms.fields.SplitDateTimeField object at 0xa3dac50>, 'compact': <django.forms.fields.BooleanField object at 0xa3da3d0>}
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 0xa3da510>, 'quantity': <django.forms.fields.FloatField object at 0xa3dad50>, 'unit': <django.forms.fields.ChoiceField object at 0x82bbd50>, 'child': <django.forms.models.ModelChoiceField object at 0xa3da310>, 'parent': <django.forms.models.ModelChoiceField object at 0xa3da710>, 'delete': <django.forms.fields.BooleanField object at 0xa3daa50>}
ModifyChildForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0xa3daa50>, 'parent': <django.forms.models.ModelChoiceField object at 0xa3da710>, 'child': <django.forms.models.ModelChoiceField object at 0xa3da310>, 'quantity': <django.forms.fields.FloatField object at 0xa3dad50>, 'order': <django.forms.fields.IntegerField object at 0xa3da510>, 'unit': <django.forms.fields.ChoiceField object at 0x82bbd50>}
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 0xa3da350>, 'group': <django.forms.models.ModelChoiceField object at 0x3b1d250>}
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 0x7df4410>, 'part': <django.forms.models.ModelChoiceField object at 0x7de8410>}
RelPartForm.declared_fields = {'document': <django.forms.models.ModelChoiceField object at 0x7df4410>, 'part': <django.forms.models.ModelChoiceField object at 0x7de8410>}
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 0x3b1d7d0>}
SelectPartForm.declared_fields = {'selected': <django.forms.fields.BooleanField object at 0x3b1d7d0>}
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 0x82bb110>, 'document': <django.forms.models.ModelChoiceField object at 0x7de8ad0>}
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 0x7de8510>, 'link': <django.forms.models.ModelChoiceField object at 0x81d3950>}
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 0x7df9550>, 'link': <django.forms.models.ModelChoiceField object at 0x81d3950>, 'new_parent': <django.forms.models.ModelChoiceField object at 0x7df9210>}
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 0x481de10>, 'reference': <django.forms.fields.CharField object at 0x481d610>, 'revision': <django.forms.fields.CharField object at 0x481da90>}
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 0x7df4410>, 'part': <django.forms.models.ModelChoiceField object at 0x7de8410>, 'delete': <django.forms.fields.BooleanField object at 0x7df9ad0>}
declared_fields = {'document': <django.forms.models.ModelChoiceField object at 0x7df4410>, 'part': <django.forms.models.ModelChoiceField object at 0x7de8410>, 'delete': <django.forms.fields.BooleanField object at 0x7df9ad0>}
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 0x8525510>}
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 0x81f9490>, 'delete': <django.forms.fields.BooleanField object at 0x81f9d50>}
DeleteFileForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x81f9d50>, 'document': <django.forms.models.ModelChoiceField object at 0x81f9490>}
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 0x8525250>, 'delete': <django.forms.fields.BooleanField object at 0x81f9fd0>}
DeletePrivateFileForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x81f9fd0>, 'creator': <django.forms.models.ModelChoiceField object at 0x8525250>}
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 0x481dad0>, 'reference': <django.forms.fields.CharField object at 0x481d610>, 'revision': <django.forms.fields.CharField object at 0x481da90>}
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 0x3b1d590>, 'document': <django.forms.models.ModelChoiceField object at 0x3c2fa90>, 'delete': <django.forms.fields.BooleanField object at 0x82bb0d0>}
ModifyDocCadForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x82bb0d0>, 'part': <django.forms.models.ModelChoiceField object at 0x3b1d590>, 'document': <django.forms.models.ModelChoiceField object at 0x3c2fa90>}
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 0x3c2fb10>, 'prog': <django.forms.fields.ChoiceField object at 0x4e72c90>, 'doc_parts': <django.forms.fields.CharField object at 0x4e722d0>, 'update': <django.forms.fields.BooleanField object at 0x4e72110>, 'date': <django.forms.fields.DateField object at 0x4e721d0>, 'time': <django.forms.fields.TimeField object at 0x4e72d10>}
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 0x3c2fb10>, 'prog': <django.forms.fields.ChoiceField object at 0x4e72c90>, 'doc_parts': <django.forms.fields.CharField object at 0x4e722d0>, 'update': <django.forms.fields.BooleanField object at 0x4e72110>, 'date': <django.forms.fields.DateField object at 0x4e721d0>, 'time': <django.forms.fields.TimeField object at 0x4e72d10>, 'child': <django.forms.fields.BooleanField object at 0x4e727d0>, 'parents': <django.forms.fields.BooleanField object at 0x4e72fd0>, 'doc': <django.forms.fields.BooleanField object at 0x4e72590>, 'owner': <django.forms.fields.BooleanField object at 0x4e72310>, 'signer': <django.forms.fields.BooleanField object at 0x4e720d0>, 'notified': <django.forms.fields.BooleanField object at 0x4e72710>}
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 0x3c2fb10>, 'prog': <django.forms.fields.ChoiceField object at 0x4e72c90>, 'doc_parts': <django.forms.fields.CharField object at 0x4e722d0>, 'update': <django.forms.fields.BooleanField object at 0x4e72110>, 'date': <django.forms.fields.DateField object at 0x4e721d0>, 'time': <django.forms.fields.TimeField object at 0x4e72d10>, 'part': <django.forms.fields.BooleanField object at 0x4e72a50>, 'owner': <django.forms.fields.BooleanField object at 0x4e725d0>, 'signer': <django.forms.fields.BooleanField object at 0x4e72a10>, 'notified': <django.forms.fields.BooleanField object at 0x8286f90>}
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 0x3c2fb10>, 'prog': <django.forms.fields.ChoiceField object at 0x4e72c90>, 'doc_parts': <django.forms.fields.CharField object at 0x4e722d0>, 'update': <django.forms.fields.BooleanField object at 0x4e72110>, 'date': <django.forms.fields.DateField object at 0x4e721d0>, 'time': <django.forms.fields.TimeField object at 0x4e72d10>, 'owned': <django.forms.fields.BooleanField object at 0x8506850>, 'to_sign': <django.forms.fields.BooleanField object at 0x945c910>, 'request_notification_from': <django.forms.fields.BooleanField object at 0xa500390>}
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 0x3c2fb10>, 'prog': <django.forms.fields.ChoiceField object at 0x4e72c90>, 'doc_parts': <django.forms.fields.CharField object at 0x4e722d0>, 'update': <django.forms.fields.BooleanField object at 0x4e72110>, 'date': <django.forms.fields.DateField object at 0x4e721d0>, 'time': <django.forms.fields.TimeField object at 0x4e72d10>, 'owner': <django.forms.fields.BooleanField object at 0x414d150>, 'user': <django.forms.fields.BooleanField object at 0x414d290>, 'part': <django.forms.fields.BooleanField object at 0x8483190>, 'doc': <django.forms.fields.BooleanField object at 0x7f5ff10>}
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 0x3c2fb10>, 'prog': <django.forms.fields.ChoiceField object at 0x4e72c90>, 'doc_parts': <django.forms.fields.CharField object at 0x4e722d0>, 'update': <django.forms.fields.BooleanField object at 0x4e72110>, 'date': <django.forms.fields.DateField object at 0x4e721d0>, 'time': <django.forms.fields.TimeField object at 0x4e72d10>, 'owner': <django.forms.fields.BooleanField object at 0x40e3ed0>, 'signer': <django.forms.fields.BooleanField object at 0x3c2f790>, 'part': <django.forms.fields.BooleanField object at 0x3c2f690>, 'doc': <django.forms.fields.BooleanField object at 0x3c2f250>}
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 0x8525210>, 'last_name': <django.forms.fields.CharField object at 0x7dcb7d0>, 'email': <django.forms.fields.EmailField object at 0x814b350>, 'avatar': <django.forms.fields.ImageField object at 0x3c2f1d0>}
OpenPLMUserChangeForm.declared_fields = {'avatar': <django.forms.fields.ImageField object at 0x3c2f1d0>}
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 0x814ba10>, 'username': <django.forms.fields.CharField object at 0x814bb10>}
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 0x814b0d0>, 'user': <django.forms.models.ModelChoiceField object at 0x7de2f50>, 'group': <django.forms.models.ModelChoiceField object at 0x848ff90>}
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 0x982e950>), ('reader', <django.utils.functional.__proxy__ object at 0x982e490>), ('restricted', <django.utils.functional.__proxy__ object at 0x982e6d0>))
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 0x8ec1e90>, 'first_name': <django.forms.fields.CharField object at 0x8ec1090>, 'last_name': <django.forms.fields.CharField object at 0xa3fc050>, 'email': <django.forms.fields.EmailField object at 0x7e20510>, 'role': <django.forms.fields.TypedChoiceField object at 0x8ec1a10>, 'groups': <django.forms.models.ModelMultipleChoiceField object at 0x8ec1990>, 'sponsor': <django.forms.models.ModelChoiceField object at 0x8ec1e10>, 'warned': <django.forms.fields.BooleanField object at 0x8ec1d90>, 'language': <django.forms.fields.TypedChoiceField object at 0x8ec14d0>}
SponsorForm.declared_fields = {'sponsor': <django.forms.models.ModelChoiceField object at 0x8ec1e10>, 'warned': <django.forms.fields.BooleanField object at 0x8ec1d90>, 'role': <django.forms.fields.TypedChoiceField object at 0x8ec1a10>, 'language': <django.forms.fields.TypedChoiceField object at 0x8ec14d0>}
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 0x7e20e10>}
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 0x849c8d0>, 'encoding': <django.forms.fields.TypedChoiceField object at 0x849cd50>}
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 0x852a250>}
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 0x852a490>, 'part': <django.forms.fields.BooleanField object at 0x852aed0>, 'group': <django.forms.fields.BooleanField object at 0x852a090>}
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 0x4e72810>, 'number_days': <django.forms.fields.IntegerField object at 0x852ac90>, 'done_by': <django.forms.fields.CharField object at 0x852a790>}
media