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

clean_reference()
clean_revision()
clean()[source]
base_fields = {'auto': <django.forms.fields.BooleanField object at 0x8b4bed0>}
declared_fields = {'auto': <django.forms.fields.BooleanField object at 0x8b4bed0>}
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 0x8b4bed0>, 'template': <plmapp.forms.TemplateChoiceField object at 0x9a30a90>, 'pfiles': <plmapp.forms.PrivateFileChoiceField object at 0x9a30f10>}
declared_fields = {'auto': <django.forms.fields.BooleanField object at 0x8b4bed0>, 'template': <plmapp.forms.TemplateChoiceField object at 0x9a30a90>, 'pfiles': <plmapp.forms.PrivateFileChoiceField object at 0x9a30f10>}
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 0x870a9d0>}
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 0x870a090>}
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 0x870a050>}
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 0x870a0d0>}
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 0x870a610>, 'type': <django.forms.fields.TypedChoiceField object at 0x870ab10>, 'search_official': <django.forms.fields.BooleanField object at 0x870a590>}
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 0x870a8d0>, 'reference': <django.forms.fields.CharField object at 0x870a490>, 'revision': <django.forms.fields.CharField object at 0x870a450>}
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 0x870a090>, 'reference': <django.forms.fields.CharField object at 0x870a490>, 'revision': <django.forms.fields.CharField object at 0x870a450>, 'quantity': <django.forms.fields.FloatField object at 0x93019d0>, 'order': <django.forms.fields.IntegerField object at 0x93018d0>, 'unit': <django.forms.fields.ChoiceField object at 0x9301710>}
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 0x93014d0>), ('first', <django.utils.functional.__proxy__ object at 0x9301410>), ('last', <django.utils.functional.__proxy__ object at 0x9301dd0>))
STATES = (('all', <django.utils.functional.__proxy__ object at 0x9301110>), ('official', <django.utils.functional.__proxy__ object at 0x9301e10>))
base_fields = {'level': <django.forms.fields.ChoiceField object at 0x93010d0>, 'date': <django.forms.fields.SplitDateTimeField object at 0x9301850>, 'state': <django.forms.fields.ChoiceField object at 0x9301510>, 'show_alternates': <django.forms.fields.BooleanField object at 0x9301790>, 'show_documents': <django.forms.fields.BooleanField object at 0x9301610>}
media
class plmapp.forms.CompareBOMForm(*args, **kwargs)[source]

Bases: plmapp.forms.DisplayChildrenForm

base_fields = {'level': <django.forms.fields.ChoiceField object at 0x93010d0>, 'date': <django.forms.fields.SplitDateTimeField object at 0x9301d90>, 'state': <django.forms.fields.ChoiceField object at 0x9301510>, 'show_alternates': <django.forms.fields.BooleanField object at 0x9301790>, 'show_documents': <django.forms.fields.BooleanField object at 0x9301610>, 'date2': <django.forms.fields.SplitDateTimeField object at 0x9301290>, 'compact': <django.forms.fields.BooleanField object at 0x9301c50>}
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 0x9ed1bd0>, 'quantity': <django.forms.fields.FloatField object at 0x9ed1d90>, 'unit': <django.forms.fields.ChoiceField object at 0x9ed1110>, 'child': <django.forms.models.ModelChoiceField object at 0x9ed13d0>, 'parent': <django.forms.models.ModelChoiceField object at 0x93016d0>, 'delete': <django.forms.fields.BooleanField object at 0x9301550>}
ModifyChildForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x9301550>, 'parent': <django.forms.models.ModelChoiceField object at 0x93016d0>, 'child': <django.forms.models.ModelChoiceField object at 0x9ed13d0>, 'quantity': <django.forms.fields.FloatField object at 0x9ed1d90>, 'order': <django.forms.fields.IntegerField object at 0x9ed1bd0>, 'unit': <django.forms.fields.ChoiceField object at 0x9ed1110>}
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 0x9ed1a50>, 'group': <django.forms.models.ModelChoiceField object at 0x9ed1850>}
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 0x9ed11d0>, 'part': <django.forms.models.ModelChoiceField object at 0x7ffe9d0>}
RelPartForm.declared_fields = {'document': <django.forms.models.ModelChoiceField object at 0x9ed11d0>, 'part': <django.forms.models.ModelChoiceField object at 0x7ffe9d0>}
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 0x7ffea90>}
SelectPartForm.declared_fields = {'selected': <django.forms.fields.BooleanField object at 0x7ffea90>}
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 0x7ffde50>, 'document': <django.forms.models.ModelChoiceField object at 0x7ffd9d0>}
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 0x9301450>, 'link': <django.forms.models.ModelChoiceField object at 0x7ffd6d0>}
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 0x7ffdf10>, 'link': <django.forms.models.ModelChoiceField object at 0x7ffd6d0>, 'new_parent': <django.forms.models.ModelChoiceField object at 0x7ffd710>}
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 0x870a090>, 'reference': <django.forms.fields.CharField object at 0x870a490>, 'revision': <django.forms.fields.CharField object at 0x870a450>}
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 0x9ed11d0>, 'part': <django.forms.models.ModelChoiceField object at 0x7ffe9d0>, 'delete': <django.forms.fields.BooleanField object at 0x7ffded0>}
declared_fields = {'document': <django.forms.models.ModelChoiceField object at 0x9ed11d0>, 'part': <django.forms.models.ModelChoiceField object at 0x7ffe9d0>, 'delete': <django.forms.fields.BooleanField object at 0x7ffded0>}
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 0x9ed1690>}
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 0x87121d0>, 'delete': <django.forms.fields.BooleanField object at 0x772df90>}
DeleteFileForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x772df90>, 'document': <django.forms.models.ModelChoiceField object at 0x87121d0>}
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 0x7aa6090>, 'delete': <django.forms.fields.BooleanField object at 0x8712e10>}
DeletePrivateFileForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x8712e10>, 'creator': <django.forms.models.ModelChoiceField object at 0x7aa6090>}
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 0x870a050>, 'reference': <django.forms.fields.CharField object at 0x870a490>, 'revision': <django.forms.fields.CharField object at 0x870a450>}
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 0x7a83a90>, 'document': <django.forms.models.ModelChoiceField object at 0x7a83ed0>, 'delete': <django.forms.fields.BooleanField object at 0x7aa66d0>}
ModifyDocCadForm.declared_fields = {'delete': <django.forms.fields.BooleanField object at 0x7aa66d0>, 'part': <django.forms.models.ModelChoiceField object at 0x7a83a90>, 'document': <django.forms.models.ModelChoiceField object at 0x7a83ed0>}
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 0x7aa6210>, 'prog': <django.forms.fields.ChoiceField object at 0x7aa6750>, 'doc_parts': <django.forms.fields.CharField object at 0x8712c10>, 'update': <django.forms.fields.BooleanField object at 0x8712c50>, 'date': <django.forms.fields.DateField object at 0x8712090>, 'time': <django.forms.fields.TimeField object at 0x8712dd0>}
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 0x7aa6210>, 'prog': <django.forms.fields.ChoiceField object at 0x7aa6750>, 'doc_parts': <django.forms.fields.CharField object at 0x8712c10>, 'update': <django.forms.fields.BooleanField object at 0x8712c50>, 'date': <django.forms.fields.DateField object at 0x8712090>, 'time': <django.forms.fields.TimeField object at 0x8712dd0>, 'child': <django.forms.fields.BooleanField object at 0x8712290>, 'parents': <django.forms.fields.BooleanField object at 0x9ed17d0>, 'doc': <django.forms.fields.BooleanField object at 0x9ed1c90>, 'owner': <django.forms.fields.BooleanField object at 0x9ed1950>, 'signer': <django.forms.fields.BooleanField object at 0x7ffe090>, 'notified': <django.forms.fields.BooleanField object at 0x7ffdcd0>}
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 0x7aa6210>, 'prog': <django.forms.fields.ChoiceField object at 0x7aa6750>, 'doc_parts': <django.forms.fields.CharField object at 0x8712c10>, 'update': <django.forms.fields.BooleanField object at 0x8712c50>, 'date': <django.forms.fields.DateField object at 0x8712090>, 'time': <django.forms.fields.TimeField object at 0x8712dd0>, 'part': <django.forms.fields.BooleanField object at 0x7ffdb50>, 'owner': <django.forms.fields.BooleanField object at 0x7a92c90>, 'signer': <django.forms.fields.BooleanField object at 0x7a92e90>, 'notified': <django.forms.fields.BooleanField object at 0x7a92890>}
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 0x7aa6210>, 'prog': <django.forms.fields.ChoiceField object at 0x7aa6750>, 'doc_parts': <django.forms.fields.CharField object at 0x8712c10>, 'update': <django.forms.fields.BooleanField object at 0x8712c50>, 'date': <django.forms.fields.DateField object at 0x8712090>, 'time': <django.forms.fields.TimeField object at 0x8712dd0>, 'owned': <django.forms.fields.BooleanField object at 0x7a92450>, 'to_sign': <django.forms.fields.BooleanField object at 0x8b44d90>, 'request_notification_from': <django.forms.fields.BooleanField object at 0x8b44f90>}
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 0x7aa6210>, 'prog': <django.forms.fields.ChoiceField object at 0x7aa6750>, 'doc_parts': <django.forms.fields.CharField object at 0x8712c10>, 'update': <django.forms.fields.BooleanField object at 0x8712c50>, 'date': <django.forms.fields.DateField object at 0x8712090>, 'time': <django.forms.fields.TimeField object at 0x8712dd0>, 'owner': <django.forms.fields.BooleanField object at 0x8b44050>, 'user': <django.forms.fields.BooleanField object at 0x8b44b10>, 'part': <django.forms.fields.BooleanField object at 0x8b44150>, 'doc': <django.forms.fields.BooleanField object at 0x8b44790>}
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 0x7aa6210>, 'prog': <django.forms.fields.ChoiceField object at 0x7aa6750>, 'doc_parts': <django.forms.fields.CharField object at 0x8712c10>, 'update': <django.forms.fields.BooleanField object at 0x8712c50>, 'date': <django.forms.fields.DateField object at 0x8712090>, 'time': <django.forms.fields.TimeField object at 0x8712dd0>, 'owner': <django.forms.fields.BooleanField object at 0x8b446d0>, 'signer': <django.forms.fields.BooleanField object at 0x8b44b50>, 'part': <django.forms.fields.BooleanField object at 0x8b443d0>, 'doc': <django.forms.fields.BooleanField object at 0x8b44410>}
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 0x9311750>, 'last_name': <django.forms.fields.CharField object at 0x9311d90>, 'email': <django.forms.fields.EmailField object at 0x7aa61d0>, 'avatar': <django.forms.fields.ImageField object at 0x8b441d0>}
OpenPLMUserChangeForm.declared_fields = {'avatar': <django.forms.fields.ImageField object at 0x8b441d0>}
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 0x7a83610>, 'username': <django.forms.fields.CharField object at 0x7a83890>}
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 0x8712c90>, 'user': <django.forms.models.ModelChoiceField object at 0x9311210>, 'group': <django.forms.models.ModelChoiceField object at 0x9311990>}
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 0x9311650>), ('reader', <django.utils.functional.__proxy__ object at 0x93111d0>), ('restricted', <django.utils.functional.__proxy__ object at 0x9311b90>))
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 0x7ad0450>, 'first_name': <django.forms.fields.CharField object at 0x7ad0290>, 'last_name': <django.forms.fields.CharField object at 0x7ad0250>, 'email': <django.forms.fields.EmailField object at 0x36e8790>, 'role': <django.forms.fields.TypedChoiceField object at 0x7aeff10>, 'groups': <django.forms.models.ModelMultipleChoiceField object at 0x7aef110>, 'sponsor': <django.forms.models.ModelChoiceField object at 0x7aef3d0>, 'warned': <django.forms.fields.BooleanField object at 0x7aefb90>, 'language': <django.forms.fields.TypedChoiceField object at 0x7aeffd0>}
SponsorForm.declared_fields = {'sponsor': <django.forms.models.ModelChoiceField object at 0x7aef3d0>, 'warned': <django.forms.fields.BooleanField object at 0x7aefb90>, 'role': <django.forms.fields.TypedChoiceField object at 0x7aeff10>, 'language': <django.forms.fields.TypedChoiceField object at 0x7aeffd0>}
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 0x36e8a90>}
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 0x36e8310>, 'encoding': <django.forms.fields.TypedChoiceField object at 0x36e8090>}
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 0x36e8710>}
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 0x36e81d0>, 'part': <django.forms.fields.BooleanField object at 0x36e8550>, 'group': <django.forms.fields.BooleanField object at 0x36e86d0>}
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 0x7b1d050>, 'number_days': <django.forms.fields.IntegerField object at 0x7b1d290>, 'done_by': <django.forms.fields.CharField object at 0x7b1d110>}
media