Sujet précédent

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

Sujet suivant

5.10. lifecycle — Utilities to manipulate lifecycle

Cette page

Autres langues

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 (:setting:`RICHTEXT_WIDGET_CLASS` setting).

Paramètres:
  • 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()).

Paramètres:
  • 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...)

Paramètres:
  • 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 0xb3e3450>}
declared_fields = {'auto': <django.forms.fields.BooleanField object at 0xb3e3450>}
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 0xb3e3450>, 'pfiles': <plmapp.forms.PrivateFileChoiceField object at 0xb56a2d0>}
declared_fields = {'auto': <django.forms.fields.BooleanField object at 0xb3e3450>, 'pfiles': <plmapp.forms.PrivateFileChoiceField object at 0xb56a2d0>}
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 0xb56a8d0>}
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 0xb56a190>}
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 0xb56a650>}
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 0xb56ad10>}
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 0xb56a110>, 'type': <django.forms.fields.TypedChoiceField object at 0xb56a4d0>, 'search_official': <django.forms.fields.BooleanField object at 0xb56ab10>}
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 0xb56a810>, 'reference': <django.forms.fields.CharField object at 0xb56a690>, 'revision': <django.forms.fields.CharField object at 0xb56a710>}
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 0xb56a190>, 'reference': <django.forms.fields.CharField object at 0xb56a690>, 'revision': <django.forms.fields.CharField object at 0xb56a710>, 'quantity': <django.forms.fields.FloatField object at 0xa9af350>, 'order': <django.forms.fields.IntegerField object at 0xb56a850>, 'unit': <django.forms.fields.ChoiceField object at 0xb56ae90>}
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 0x99f9490>), ('first', <django.utils.functional.__proxy__ object at 0x99f9e10>), ('last', <django.utils.functional.__proxy__ object at 0x99f9d90>))
STATES = (('all', <django.utils.functional.__proxy__ object at 0x99f9850>), ('official', <django.utils.functional.__proxy__ object at 0x99f9790>))
base_fields = {'level': <django.forms.fields.ChoiceField object at 0x99f97d0>, 'date': <django.forms.fields.SplitDateTimeField object at 0xbdaa290>, 'state': <django.forms.fields.ChoiceField object at 0x99f9d10>, 'show_alternates': <django.forms.fields.BooleanField object at 0x99f9d50>, 'show_documents': <django.forms.fields.BooleanField object at 0x99f9dd0>}
media
class plmapp.forms.CompareBOMForm(*args, **kwargs)[source]

Bases: plmapp.forms.DisplayChildrenForm

base_fields = {'level': <django.forms.fields.ChoiceField object at 0x99f97d0>, 'date': <django.forms.fields.SplitDateTimeField object at 0x99f9c10>, 'state': <django.forms.fields.ChoiceField object at 0x99f9d10>, 'show_alternates': <django.forms.fields.BooleanField object at 0x99f9d50>, 'show_documents': <django.forms.fields.BooleanField object at 0x99f9dd0>, 'date2': <django.forms.fields.SplitDateTimeField object at 0x99f9090>, 'compact': <django.forms.fields.BooleanField object at 0x99f9fd0>}
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 de ParentChildLink

fields = ['order', 'quantity', 'unit', 'child', 'parent']
ModifyChildForm.clean()[source]
ModifyChildForm.base_fields = {'order': <django.forms.fields.IntegerField object at 0x922cd90>, 'quantity': <django.forms.fields.FloatField object at 0x922c990>, 'unit': <django.forms.fields.ChoiceField object at 0x922c410>, 'child': <django.forms.models.ModelChoiceField object at 0x922c7d0>, 'parent': <django.forms.models.ModelChoiceField object at 0x922ccd0>, 'delete': <django.forms.fields.BooleanField object at 0x99f93d0>}
ModifyChildForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x99f93d0>, 'parent': <django.forms.models.ModelChoiceField object at 0x922ccd0>, 'child': <django.forms.models.ModelChoiceField object at 0x922c7d0>, 'quantity': <django.forms.fields.FloatField object at 0x922c990>, 'order': <django.forms.fields.IntegerField object at 0x922cd90>, 'unit': <django.forms.fields.ChoiceField object at 0x922c410>}
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 0xb55ec50>, 'group': <django.forms.models.ModelChoiceField object at 0xb55e310>}
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 de DocumentPartLink

fields = ['document', 'part']
RelPartForm.base_fields = {'document': <django.forms.models.ModelChoiceField object at 0xb55ebd0>, 'part': <django.forms.models.ModelChoiceField object at 0xb55e750>}
RelPartForm.declared_fields = {'document': <django.forms.models.ModelChoiceField object at 0xb55ebd0>, 'part': <django.forms.models.ModelChoiceField object at 0xb55e750>}
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 de Part

fields = ['selected']
SelectPartForm.base_fields = {'selected': <django.forms.fields.BooleanField object at 0xb55edd0>}
SelectPartForm.declared_fields = {'selected': <django.forms.fields.BooleanField object at 0xb55edd0>}
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 0xb552590>, 'document': <django.forms.models.ModelChoiceField object at 0xa9a2950>}
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 0xa9a21d0>, 'link': <django.forms.models.ModelChoiceField object at 0xa9a2a90>}
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 0xb552650>, 'link': <django.forms.models.ModelChoiceField object at 0xa9a2a90>, 'new_parent': <django.forms.models.ModelChoiceField object at 0xb5524d0>}
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 0xb56a190>, 'reference': <django.forms.fields.CharField object at 0xb56a690>, 'revision': <django.forms.fields.CharField object at 0xb56a710>}
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 0xb55ebd0>, 'part': <django.forms.models.ModelChoiceField object at 0xb55e750>, 'delete': <django.forms.fields.BooleanField object at 0xb55e510>}
declared_fields = {'document': <django.forms.models.ModelChoiceField object at 0xb55ebd0>, 'part': <django.forms.models.ModelChoiceField object at 0xb55e750>, 'delete': <django.forms.fields.BooleanField object at 0xb55e510>}
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 0xb55ef50>}
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 de DocumentFile

fields = ['document']
DeleteFileForm.base_fields = {'document': <django.forms.models.ModelChoiceField object at 0xa9a2050>, 'delete': <django.forms.fields.BooleanField object at 0xa9a2e90>}
DeleteFileForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0xa9a2e90>, 'document': <django.forms.models.ModelChoiceField object at 0xa9a2050>}
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 de PrivateFile

fields = ['creator']
DeletePrivateFileForm.base_fields = {'creator': <django.forms.models.ModelChoiceField object at 0x956ec50>, 'delete': <django.forms.fields.BooleanField object at 0x956e290>}
DeletePrivateFileForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x956e290>, 'creator': <django.forms.models.ModelChoiceField object at 0x956ec50>}
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 0xb56a650>, 'reference': <django.forms.fields.CharField object at 0xb56a690>, 'revision': <django.forms.fields.CharField object at 0xb56a710>}
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 de DocumentPartLink

fields = ['part', 'document']
ModifyDocCadForm.base_fields = {'part': <django.forms.models.ModelChoiceField object at 0x956e910>, 'document': <django.forms.models.ModelChoiceField object at 0x956e390>, 'delete': <django.forms.fields.BooleanField object at 0x956e050>}
ModifyDocCadForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x956e050>, 'part': <django.forms.models.ModelChoiceField object at 0x956e910>, 'document': <django.forms.models.ModelChoiceField object at 0x956e390>}
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 0xa9a29d0>, 'prog': <django.forms.fields.ChoiceField object at 0xb55ead0>, 'doc_parts': <django.forms.fields.CharField object at 0xb55ee50>, 'update': <django.forms.fields.BooleanField object at 0xb55e690>, 'date': <django.forms.fields.DateField object at 0xb55ec90>, 'time': <django.forms.fields.TimeField object at 0x8f11090>}
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 0xa9a29d0>, 'prog': <django.forms.fields.ChoiceField object at 0xb55ead0>, 'doc_parts': <django.forms.fields.CharField object at 0xb55ee50>, 'update': <django.forms.fields.BooleanField object at 0xb55e690>, 'date': <django.forms.fields.DateField object at 0xb55ec90>, 'time': <django.forms.fields.TimeField object at 0x8f11090>, 'child': <django.forms.fields.BooleanField object at 0x8f11710>, 'parents': <django.forms.fields.BooleanField object at 0x8f11050>, 'doc': <django.forms.fields.BooleanField object at 0x8f11f50>, 'owner': <django.forms.fields.BooleanField object at 0x8f11d50>, 'signer': <django.forms.fields.BooleanField object at 0x8f11b90>, 'notified': <django.forms.fields.BooleanField object at 0x8f04810>}
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 0xa9a29d0>, 'prog': <django.forms.fields.ChoiceField object at 0xb55ead0>, 'doc_parts': <django.forms.fields.CharField object at 0xb55ee50>, 'update': <django.forms.fields.BooleanField object at 0xb55e690>, 'date': <django.forms.fields.DateField object at 0xb55ec90>, 'time': <django.forms.fields.TimeField object at 0x8f11090>, 'part': <django.forms.fields.BooleanField object at 0x8f04150>, 'owner': <django.forms.fields.BooleanField object at 0x8f04310>, 'signer': <django.forms.fields.BooleanField object at 0x8f042d0>, 'notified': <django.forms.fields.BooleanField object at 0x8f04f90>}
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 0xa9a29d0>, 'prog': <django.forms.fields.ChoiceField object at 0xb55ead0>, 'doc_parts': <django.forms.fields.CharField object at 0xb55ee50>, 'update': <django.forms.fields.BooleanField object at 0xb55e690>, 'date': <django.forms.fields.DateField object at 0xb55ec90>, 'time': <django.forms.fields.TimeField object at 0x8f11090>, 'owned': <django.forms.fields.BooleanField object at 0x8f04890>, 'to_sign': <django.forms.fields.BooleanField object at 0x8f04b10>, 'request_notification_from': <django.forms.fields.BooleanField object at 0xa998710>}
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 0xa9a29d0>, 'prog': <django.forms.fields.ChoiceField object at 0xb55ead0>, 'doc_parts': <django.forms.fields.CharField object at 0xb55ee50>, 'update': <django.forms.fields.BooleanField object at 0xb55e690>, 'date': <django.forms.fields.DateField object at 0xb55ec90>, 'time': <django.forms.fields.TimeField object at 0x8f11090>, 'owner': <django.forms.fields.BooleanField object at 0xa998a50>, 'user': <django.forms.fields.BooleanField object at 0xa998fd0>, 'part': <django.forms.fields.BooleanField object at 0xa998750>, 'doc': <django.forms.fields.BooleanField object at 0xa998490>}
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 0xa9a29d0>, 'prog': <django.forms.fields.ChoiceField object at 0xb55ead0>, 'doc_parts': <django.forms.fields.CharField object at 0xb55ee50>, 'update': <django.forms.fields.BooleanField object at 0xb55e690>, 'date': <django.forms.fields.DateField object at 0xb55ec90>, 'time': <django.forms.fields.TimeField object at 0x8f11090>, 'owner': <django.forms.fields.BooleanField object at 0xa998e50>, 'signer': <django.forms.fields.BooleanField object at 0xa998f50>, 'part': <django.forms.fields.BooleanField object at 0xa998f10>, 'doc': <django.forms.fields.BooleanField object at 0xa998cd0>}
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 de 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 0xa998950>, 'last_name': <django.forms.fields.CharField object at 0x8f11ad0>, 'email': <django.forms.fields.EmailField object at 0x956e1d0>, 'avatar': <django.forms.fields.ImageField object at 0xa998350>}
OpenPLMUserChangeForm.declared_fields = {'avatar': <django.forms.fields.ImageField object at 0xa998350>}
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 0x956e090>, 'username': <django.forms.fields.CharField object at 0x956e490>}
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 0x956ef90>, 'user': <django.forms.models.ModelChoiceField object at 0x96443d0>, 'group': <django.forms.models.ModelChoiceField object at 0x9644e50>}
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 0x96445d0>), ('reader', <django.utils.functional.__proxy__ object at 0x9644a50>), ('restricted', <django.utils.functional.__proxy__ object at 0x9644410>))
class Meta[source]
model

alias de 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 0xacfa890>, 'first_name': <django.forms.fields.CharField object at 0xacfa690>, 'last_name': <django.forms.fields.CharField object at 0x9b58610>, 'email': <django.forms.fields.EmailField object at 0x9b58a10>, 'role': <django.forms.fields.TypedChoiceField object at 0x9644c90>, 'groups': <django.forms.models.ModelMultipleChoiceField object at 0xacfa510>, 'sponsor': <django.forms.models.ModelChoiceField object at 0x96441d0>, 'warned': <django.forms.fields.BooleanField object at 0x9644fd0>, 'language': <django.forms.fields.TypedChoiceField object at 0xacfa350>}
SponsorForm.declared_fields = {'sponsor': <django.forms.models.ModelChoiceField object at 0x96441d0>, 'warned': <django.forms.fields.BooleanField object at 0x9644fd0>, 'role': <django.forms.fields.TypedChoiceField object at 0x9644c90>, 'language': <django.forms.fields.TypedChoiceField object at 0xacfa350>}
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 0x9b58950>}
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 0x9b58510>, 'encoding': <django.forms.fields.TypedChoiceField object at 0x9b58ad0>}
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 0x9b58c50>}
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 0x9b586d0>, 'part': <django.forms.fields.BooleanField object at 0x9b58710>, 'group': <django.forms.fields.BooleanField object at 0x9b58c10>}
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 0x9a0c150>, 'number_days': <django.forms.fields.IntegerField object at 0x9a0c650>, 'done_by': <django.forms.fields.CharField object at 0x9a0cc90>}
media