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: plmapp.forms.CreationForm

clean_reference()
clean_revision()
clean()[source]
base_fields = {'auto': <django.forms.fields.BooleanField object at 0x9569e10>}
declared_fields = {'auto': <django.forms.fields.BooleanField object at 0x9569e10>}
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.TemplateChoiceField(queryset, empty_label=u'---------', cache_choices=False, required=True, widget=None, label=None, initial=None, help_text=None, to_field_name=None, *args, **kwargs)[source]

Bases: django.forms.models.ModelChoiceField

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 0x9569e10>, 'template': <plmapp.forms.TemplateChoiceField object at 0x95698d0>, 'pfiles': <plmapp.forms.PrivateFileChoiceField object at 0x95697d0>}
declared_fields = {'auto': <django.forms.fields.BooleanField object at 0x9569e10>, 'template': <plmapp.forms.TemplateChoiceField object at 0x95698d0>, 'pfiles': <plmapp.forms.PrivateFileChoiceField object at 0x95697d0>}
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 0x914fa50>}
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 0x914fe10>}
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 0x914fcd0>}
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 0x914f310>}
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 0x97bf9d0>, 'type': <django.forms.fields.TypedChoiceField object at 0x4c81590>, 'search_official': <django.forms.fields.BooleanField object at 0x974e610>}
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 0x918b310>, 'reference': <django.forms.fields.CharField object at 0x918b290>, 'revision': <django.forms.fields.CharField object at 0x918b490>}
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 0x914fe10>, 'reference': <django.forms.fields.CharField object at 0x918b290>, 'revision': <django.forms.fields.CharField object at 0x918b490>, 'quantity': <django.forms.fields.FloatField object at 0x918b750>, 'order': <django.forms.fields.IntegerField object at 0x918b510>, 'unit': <django.forms.fields.ChoiceField object at 0x918b390>}
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 0x9895650>), ('first', <django.utils.functional.__proxy__ object at 0x916a5d0>), ('last', <django.utils.functional.__proxy__ object at 0x916add0>))
STATES = (('all', <django.utils.functional.__proxy__ object at 0x916a850>), ('official', <django.utils.functional.__proxy__ object at 0x916a650>))
base_fields = {'level': <django.forms.fields.ChoiceField object at 0x916a150>, 'date': <django.forms.fields.SplitDateTimeField object at 0x916a110>, 'state': <django.forms.fields.ChoiceField object at 0x92a9f50>, 'show_alternates': <django.forms.fields.BooleanField object at 0x4c6dc50>, 'show_documents': <django.forms.fields.BooleanField object at 0x4c6dd90>}
media
class plmapp.forms.CompareBOMForm(*args, **kwargs)[source]

Bases: plmapp.forms.DisplayChildrenForm

base_fields = {'level': <django.forms.fields.ChoiceField object at 0x916a150>, 'date': <django.forms.fields.SplitDateTimeField object at 0x9f5fa50>, 'state': <django.forms.fields.ChoiceField object at 0x92a9f50>, 'show_alternates': <django.forms.fields.BooleanField object at 0x4c6dc50>, 'show_documents': <django.forms.fields.BooleanField object at 0x4c6dd90>, 'date2': <django.forms.fields.SplitDateTimeField object at 0x9494850>, 'compact': <django.forms.fields.BooleanField object at 0x9494cd0>}
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 0x957cad0>, 'quantity': <django.forms.fields.FloatField object at 0x9494190>, 'unit': <django.forms.fields.ChoiceField object at 0x957cf50>, 'child': <django.forms.models.ModelChoiceField object at 0x9494550>, 'parent': <django.forms.models.ModelChoiceField object at 0x94942d0>, 'delete': <django.forms.fields.BooleanField object at 0x9494ed0>}
ModifyChildForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x9494ed0>, 'parent': <django.forms.models.ModelChoiceField object at 0x94942d0>, 'child': <django.forms.models.ModelChoiceField object at 0x9494550>, 'quantity': <django.forms.fields.FloatField object at 0x9494190>, 'order': <django.forms.fields.IntegerField object at 0x957cad0>, 'unit': <django.forms.fields.ChoiceField object at 0x957cf50>}
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 0xa9f1dd0>, 'group': <django.forms.models.ModelChoiceField object at 0xa09ee90>}
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 0x966d990>, 'part': <django.forms.models.ModelChoiceField object at 0x957c350>}
RelPartForm.declared_fields = {'document': <django.forms.models.ModelChoiceField object at 0x966d990>, 'part': <django.forms.models.ModelChoiceField object at 0x957c350>}
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 0x957c610>}
SelectPartForm.declared_fields = {'selected': <django.forms.fields.BooleanField object at 0x957c610>}
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 0x957c4d0>, 'document': <django.forms.models.ModelChoiceField object at 0xb19d3d0>}
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 0x9494d10>, 'link': <django.forms.models.ModelChoiceField object at 0xb19db10>}
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 0xb19d310>, 'link': <django.forms.models.ModelChoiceField object at 0xb19db10>, 'new_parent': <django.forms.models.ModelChoiceField object at 0xb19d950>}
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 0x914fe10>, 'reference': <django.forms.fields.CharField object at 0x918b290>, 'revision': <django.forms.fields.CharField object at 0x918b490>}
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 0x966d990>, 'part': <django.forms.models.ModelChoiceField object at 0x957c350>, 'delete': <django.forms.fields.BooleanField object at 0xb19d710>}
declared_fields = {'document': <django.forms.models.ModelChoiceField object at 0x966d990>, 'part': <django.forms.models.ModelChoiceField object at 0x957c350>, 'delete': <django.forms.fields.BooleanField object at 0xb19d710>}
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 0x957cd90>}
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 0x9883050>, 'delete': <django.forms.fields.BooleanField object at 0xa9f1bd0>}
DeleteFileForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0xa9f1bd0>, 'document': <django.forms.models.ModelChoiceField object at 0x9883050>}
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 0x9713510>, 'delete': <django.forms.fields.BooleanField object at 0x9f69950>}
DeletePrivateFileForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x9f69950>, 'creator': <django.forms.models.ModelChoiceField object at 0x9713510>}
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 0x914fcd0>, 'reference': <django.forms.fields.CharField object at 0x918b290>, 'revision': <django.forms.fields.CharField object at 0x918b490>}
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 0x98a63d0>, 'document': <django.forms.models.ModelChoiceField object at 0x98a6bd0>, 'delete': <django.forms.fields.BooleanField object at 0x98a6f90>}
ModifyDocCadForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x98a6f90>, 'part': <django.forms.models.ModelChoiceField object at 0x98a63d0>, 'document': <django.forms.models.ModelChoiceField object at 0x98a6bd0>}
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 0x98a6810>, 'prog': <django.forms.fields.ChoiceField object at 0x94f2e10>, 'doc_parts': <django.forms.fields.CharField object at 0x9297090>, 'update': <django.forms.fields.BooleanField object at 0xb19d590>, 'date': <django.forms.fields.DateField object at 0xb19dfd0>, 'time': <django.forms.fields.TimeField object at 0xb19dc10>}
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 0x98a6810>, 'prog': <django.forms.fields.ChoiceField object at 0x94f2e10>, 'doc_parts': <django.forms.fields.CharField object at 0x9297090>, 'update': <django.forms.fields.BooleanField object at 0xb19d590>, 'date': <django.forms.fields.DateField object at 0xb19dfd0>, 'time': <django.forms.fields.TimeField object at 0xb19dc10>, 'child': <django.forms.fields.BooleanField object at 0xb19d890>, 'parents': <django.forms.fields.BooleanField object at 0x95d2f90>, 'doc': <django.forms.fields.BooleanField object at 0x9646450>, 'owner': <django.forms.fields.BooleanField object at 0x9646910>, 'signer': <django.forms.fields.BooleanField object at 0x957c490>, 'notified': <django.forms.fields.BooleanField object at 0x957c9d0>}
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 0x98a6810>, 'prog': <django.forms.fields.ChoiceField object at 0x94f2e10>, 'doc_parts': <django.forms.fields.CharField object at 0x9297090>, 'update': <django.forms.fields.BooleanField object at 0xb19d590>, 'date': <django.forms.fields.DateField object at 0xb19dfd0>, 'time': <django.forms.fields.TimeField object at 0xb19dc10>, 'part': <django.forms.fields.BooleanField object at 0x988e710>, 'owner': <django.forms.fields.BooleanField object at 0x988e790>, 'signer': <django.forms.fields.BooleanField object at 0x988e810>, 'notified': <django.forms.fields.BooleanField object at 0x988e090>}
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 0x98a6810>, 'prog': <django.forms.fields.ChoiceField object at 0x94f2e10>, 'doc_parts': <django.forms.fields.CharField object at 0x9297090>, 'update': <django.forms.fields.BooleanField object at 0xb19d590>, 'date': <django.forms.fields.DateField object at 0xb19dfd0>, 'time': <django.forms.fields.TimeField object at 0xb19dc10>, 'owned': <django.forms.fields.BooleanField object at 0x988e590>, 'to_sign': <django.forms.fields.BooleanField object at 0xba3a250>, 'request_notification_from': <django.forms.fields.BooleanField object at 0xba3a5d0>}
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 0x98a6810>, 'prog': <django.forms.fields.ChoiceField object at 0x94f2e10>, 'doc_parts': <django.forms.fields.CharField object at 0x9297090>, 'update': <django.forms.fields.BooleanField object at 0xb19d590>, 'date': <django.forms.fields.DateField object at 0xb19dfd0>, 'time': <django.forms.fields.TimeField object at 0xb19dc10>, 'owner': <django.forms.fields.BooleanField object at 0xba3a190>, 'user': <django.forms.fields.BooleanField object at 0xba3ad90>, 'part': <django.forms.fields.BooleanField object at 0xba3a9d0>, 'doc': <django.forms.fields.BooleanField object at 0xba3a410>}
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 0x98a6810>, 'prog': <django.forms.fields.ChoiceField object at 0x94f2e10>, 'doc_parts': <django.forms.fields.CharField object at 0x9297090>, 'update': <django.forms.fields.BooleanField object at 0xb19d590>, 'date': <django.forms.fields.DateField object at 0xb19dfd0>, 'time': <django.forms.fields.TimeField object at 0xb19dc10>, 'owner': <django.forms.fields.BooleanField object at 0xba3aa10>, 'signer': <django.forms.fields.BooleanField object at 0xba3a590>, 'part': <django.forms.fields.BooleanField object at 0xba3a150>, 'doc': <django.forms.fields.BooleanField object at 0xba3af90>}
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 0xb19df50>, 'last_name': <django.forms.fields.CharField object at 0xbaafd50>, 'email': <django.forms.fields.EmailField object at 0x98a6710>, 'avatar': <django.forms.fields.ImageField object at 0xba3a7d0>}
OpenPLMUserChangeForm.declared_fields = {'avatar': <django.forms.fields.ImageField object at 0xba3a7d0>}
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 0x98a6cd0>, 'username': <django.forms.fields.CharField object at 0xbaaac10>}
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 0xbaaa710>, 'user': <django.forms.models.ModelChoiceField object at 0xbaaa0d0>, 'group': <django.forms.models.ModelChoiceField object at 0xbaaa050>}
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 0xbaaaa90>), ('reader', <django.utils.functional.__proxy__ object at 0xbaaa650>), ('restricted', <django.utils.functional.__proxy__ object at 0xbaaaad0>))
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 0xbbebe50>, 'first_name': <django.forms.fields.CharField object at 0xbbeb390>, 'last_name': <django.forms.fields.CharField object at 0xb92a790>, 'email': <django.forms.fields.EmailField object at 0xb92acd0>, 'role': <django.forms.fields.TypedChoiceField object at 0xbaaa3d0>, 'groups': <django.forms.models.ModelMultipleChoiceField object at 0xbbebad0>, 'sponsor': <django.forms.models.ModelChoiceField object at 0xbaaa7d0>, 'warned': <django.forms.fields.BooleanField object at 0xbaaa2d0>, 'language': <django.forms.fields.TypedChoiceField object at 0xbaaa450>}
SponsorForm.declared_fields = {'sponsor': <django.forms.models.ModelChoiceField object at 0xbaaa7d0>, 'warned': <django.forms.fields.BooleanField object at 0xbaaa2d0>, 'role': <django.forms.fields.TypedChoiceField object at 0xbaaa3d0>, 'language': <django.forms.fields.TypedChoiceField object at 0xbaaa450>}
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 0xb92a990>}
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 0xb92a1d0>, 'encoding': <django.forms.fields.TypedChoiceField object at 0xb92a210>}
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.

base_fields = {'password': <django.forms.fields.CharField object at 0xb92a110>}
clean_password()[source]

Validates that the password field is correct.

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 0xb92a6d0>, 'part': <django.forms.fields.BooleanField object at 0xb92ae50>, 'group': <django.forms.fields.BooleanField object at 0xb92abd0>}
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 0xb9a5190>, 'number_days': <django.forms.fields.IntegerField object at 0xb9a5510>, 'done_by': <django.forms.fields.CharField object at 0xb9a5410>}
media