tcms.testplans.forms module

class tcms.testplans.forms.BasePlanForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = {'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7fcb2e71e0b8>, 'name': <django.forms.fields.CharField object at 0x7fcb2e81a860>, 'parent': <django.forms.fields.IntegerField object at 0x7fcb2e71e240>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e716e10>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7fcb2e716d68>, 'text': <django.forms.fields.CharField object at 0x7fcb2e716b70>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e716be0>}
clean_parent()[source]
declared_fields = {'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7fcb2e71e0b8>, 'name': <django.forms.fields.CharField object at 0x7fcb2e81a860>, 'parent': <django.forms.fields.IntegerField object at 0x7fcb2e71e240>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e716e10>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7fcb2e716d68>, 'text': <django.forms.fields.CharField object at 0x7fcb2e716b70>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e716be0>}
media
populate(product_id)[source]
class tcms.testplans.forms.ClonePlanForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: tcms.testplans.forms.BasePlanForm

base_fields = {'copy_testcases': <django.forms.fields.BooleanField object at 0x7fcb2e766710>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7fcb2e71e0b8>, 'keep_case_default_tester': <django.forms.fields.BooleanField object at 0x7fcb2e7667f0>, 'keep_orignal_author': <django.forms.fields.BooleanField object at 0x7fcb2e7664a8>, 'link_testcases': <django.forms.fields.BooleanField object at 0x7fcb2e766518>, 'maintain_case_orignal_author': <django.forms.fields.BooleanField object at 0x7fcb2e766780>, 'name': <django.forms.fields.CharField object at 0x7fcb2e7662e8>, 'parent': <django.forms.fields.IntegerField object at 0x7fcb2e71e240>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e716e10>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7fcb2e716d68>, 'set_parent': <django.forms.fields.BooleanField object at 0x7fcb2e766860>, 'text': <django.forms.fields.CharField object at 0x7fcb2e716b70>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e766550>}
declared_fields = {'copy_testcases': <django.forms.fields.BooleanField object at 0x7fcb2e766710>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7fcb2e71e0b8>, 'keep_case_default_tester': <django.forms.fields.BooleanField object at 0x7fcb2e7667f0>, 'keep_orignal_author': <django.forms.fields.BooleanField object at 0x7fcb2e7664a8>, 'link_testcases': <django.forms.fields.BooleanField object at 0x7fcb2e766518>, 'maintain_case_orignal_author': <django.forms.fields.BooleanField object at 0x7fcb2e766780>, 'name': <django.forms.fields.CharField object at 0x7fcb2e7662e8>, 'parent': <django.forms.fields.IntegerField object at 0x7fcb2e71e240>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e716e10>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7fcb2e716d68>, 'set_parent': <django.forms.fields.BooleanField object at 0x7fcb2e766860>, 'text': <django.forms.fields.CharField object at 0x7fcb2e716b70>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e766550>}
media
class tcms.testplans.forms.EditPlanForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: tcms.testplans.forms.NewPlanForm

base_fields = {'author': <tcms.core.forms.fields.UserField object at 0x7fcb2e71e5f8>, 'auto_to_case_default_tester': <django.forms.fields.BooleanField object at 0x7fcb2e71e438>, 'auto_to_case_owner': <django.forms.fields.BooleanField object at 0x7fcb2e71e3c8>, 'auto_to_plan_author': <django.forms.fields.BooleanField object at 0x7fcb2e71e358>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7fcb2e71e0b8>, 'is_active': <django.forms.fields.BooleanField object at 0x7fcb2e71e588>, 'name': <django.forms.fields.CharField object at 0x7fcb2e81a860>, 'notify_on_case_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e518>, 'notify_on_plan_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e4a8>, 'parent': <django.forms.fields.IntegerField object at 0x7fcb2e71e240>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e716e10>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7fcb2e71e630>, 'tag': <django.forms.fields.CharField object at 0x7fcb2e71e2b0>, 'text': <django.forms.fields.CharField object at 0x7fcb2e716b70>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e716be0>}
declared_fields = {'author': <tcms.core.forms.fields.UserField object at 0x7fcb2e71e5f8>, 'auto_to_case_default_tester': <django.forms.fields.BooleanField object at 0x7fcb2e71e438>, 'auto_to_case_owner': <django.forms.fields.BooleanField object at 0x7fcb2e71e3c8>, 'auto_to_plan_author': <django.forms.fields.BooleanField object at 0x7fcb2e71e358>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7fcb2e71e0b8>, 'is_active': <django.forms.fields.BooleanField object at 0x7fcb2e71e588>, 'name': <django.forms.fields.CharField object at 0x7fcb2e81a860>, 'notify_on_case_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e518>, 'notify_on_plan_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e4a8>, 'parent': <django.forms.fields.IntegerField object at 0x7fcb2e71e240>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e716e10>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7fcb2e71e630>, 'tag': <django.forms.fields.CharField object at 0x7fcb2e71e2b0>, 'text': <django.forms.fields.CharField object at 0x7fcb2e716b70>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e716be0>}
media
class tcms.testplans.forms.NewPlanForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: tcms.testplans.forms.BasePlanForm

base_fields = {'auto_to_case_default_tester': <django.forms.fields.BooleanField object at 0x7fcb2e71e438>, 'auto_to_case_owner': <django.forms.fields.BooleanField object at 0x7fcb2e71e3c8>, 'auto_to_plan_author': <django.forms.fields.BooleanField object at 0x7fcb2e71e358>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7fcb2e71e0b8>, 'name': <django.forms.fields.CharField object at 0x7fcb2e81a860>, 'notify_on_case_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e518>, 'notify_on_plan_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e4a8>, 'parent': <django.forms.fields.IntegerField object at 0x7fcb2e71e240>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e716e10>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7fcb2e716d68>, 'tag': <django.forms.fields.CharField object at 0x7fcb2e71e2b0>, 'text': <django.forms.fields.CharField object at 0x7fcb2e716b70>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e716be0>}
clean_tag()[source]
declared_fields = {'auto_to_case_default_tester': <django.forms.fields.BooleanField object at 0x7fcb2e71e438>, 'auto_to_case_owner': <django.forms.fields.BooleanField object at 0x7fcb2e71e3c8>, 'auto_to_plan_author': <django.forms.fields.BooleanField object at 0x7fcb2e71e358>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7fcb2e71e0b8>, 'name': <django.forms.fields.CharField object at 0x7fcb2e81a860>, 'notify_on_case_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e518>, 'notify_on_plan_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e4a8>, 'parent': <django.forms.fields.IntegerField object at 0x7fcb2e71e240>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e716e10>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7fcb2e716d68>, 'tag': <django.forms.fields.CharField object at 0x7fcb2e71e2b0>, 'text': <django.forms.fields.CharField object at 0x7fcb2e716b70>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e716be0>}
media
class tcms.testplans.forms.SearchPlanForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = {'author__email__startswith': <django.forms.fields.CharField object at 0x7fcb2e766080>, 'author__username__startswith': <django.forms.fields.CharField object at 0x7fcb2e71edd8>, 'case__default_tester__username__startswith': <django.forms.fields.CharField object at 0x7fcb2e766128>, 'create_date__gte': <django.forms.fields.DateTimeField object at 0x7fcb2e766320>, 'create_date__lte': <django.forms.fields.DateTimeField object at 0x7fcb2e7663c8>, 'is_active': <django.forms.fields.BooleanField object at 0x7fcb2e766278>, 'name__icontains': <django.forms.fields.CharField object at 0x7fcb2e71ea90>, 'parent__pk': <django.forms.fields.IntegerField object at 0x7fcb2e71e908>, 'pk': <django.forms.fields.IntegerField object at 0x7fcb2e71e7f0>, 'pk__in': <django.forms.fields.CharField object at 0x7fcb2e71e860>, 'plan_id': <django.forms.fields.IntegerField object at 0x7fcb2e71ea20>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e71eb38>, 'search': <django.forms.fields.CharField object at 0x7fcb2e71e978>, 'tag__name__in': <django.forms.fields.CharField object at 0x7fcb2e7661d0>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e71eef0>, 'version': <django.forms.models.ModelChoiceField object at 0x7fcb2e71ec50>}
clean_pk__in()[source]
clean_tag__name__in()[source]
declared_fields = {'author__email__startswith': <django.forms.fields.CharField object at 0x7fcb2e766080>, 'author__username__startswith': <django.forms.fields.CharField object at 0x7fcb2e71edd8>, 'case__default_tester__username__startswith': <django.forms.fields.CharField object at 0x7fcb2e766128>, 'create_date__gte': <django.forms.fields.DateTimeField object at 0x7fcb2e766320>, 'create_date__lte': <django.forms.fields.DateTimeField object at 0x7fcb2e7663c8>, 'is_active': <django.forms.fields.BooleanField object at 0x7fcb2e766278>, 'name__icontains': <django.forms.fields.CharField object at 0x7fcb2e71ea90>, 'parent__pk': <django.forms.fields.IntegerField object at 0x7fcb2e71e908>, 'pk': <django.forms.fields.IntegerField object at 0x7fcb2e71e7f0>, 'pk__in': <django.forms.fields.CharField object at 0x7fcb2e71e860>, 'plan_id': <django.forms.fields.IntegerField object at 0x7fcb2e71ea20>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e71eb38>, 'search': <django.forms.fields.CharField object at 0x7fcb2e71e978>, 'tag__name__in': <django.forms.fields.CharField object at 0x7fcb2e7661d0>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e71eef0>, 'version': <django.forms.models.ModelChoiceField object at 0x7fcb2e71ec50>}
media
populate(product_id=None)[source]
class tcms.testplans.forms.XMLRPCEditPlanForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: tcms.testplans.forms.EditPlanForm

base_fields = {'author': <tcms.core.forms.fields.UserField object at 0x7fcb2e71e5f8>, 'auto_to_case_default_tester': <django.forms.fields.BooleanField object at 0x7fcb2e71e438>, 'auto_to_case_owner': <django.forms.fields.BooleanField object at 0x7fcb2e71e3c8>, 'auto_to_plan_author': <django.forms.fields.BooleanField object at 0x7fcb2e71e358>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7fcb2e71e0b8>, 'is_active': <django.forms.fields.BooleanField object at 0x7fcb2e71e588>, 'name': <django.forms.fields.CharField object at 0x7fcb2e716390>, 'notify_on_case_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e518>, 'notify_on_plan_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e4a8>, 'parent': <django.forms.fields.IntegerField object at 0x7fcb2e71e240>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e766a20>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7fcb2e716438>, 'tag': <django.forms.fields.CharField object at 0x7fcb2e71e2b0>, 'text': <django.forms.fields.CharField object at 0x7fcb2e716b70>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e7164e0>}
declared_fields = {'author': <tcms.core.forms.fields.UserField object at 0x7fcb2e71e5f8>, 'auto_to_case_default_tester': <django.forms.fields.BooleanField object at 0x7fcb2e71e438>, 'auto_to_case_owner': <django.forms.fields.BooleanField object at 0x7fcb2e71e3c8>, 'auto_to_plan_author': <django.forms.fields.BooleanField object at 0x7fcb2e71e358>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7fcb2e71e0b8>, 'is_active': <django.forms.fields.BooleanField object at 0x7fcb2e71e588>, 'name': <django.forms.fields.CharField object at 0x7fcb2e716390>, 'notify_on_case_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e518>, 'notify_on_plan_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e4a8>, 'parent': <django.forms.fields.IntegerField object at 0x7fcb2e71e240>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e766a20>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7fcb2e716438>, 'tag': <django.forms.fields.CharField object at 0x7fcb2e71e2b0>, 'text': <django.forms.fields.CharField object at 0x7fcb2e716b70>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e7164e0>}
media
class tcms.testplans.forms.XMLRPCNewPlanForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: tcms.testplans.forms.EditPlanForm

base_fields = {'author': <tcms.core.forms.fields.UserField object at 0x7fcb2e71e5f8>, 'auto_to_case_default_tester': <django.forms.fields.BooleanField object at 0x7fcb2e71e438>, 'auto_to_case_owner': <django.forms.fields.BooleanField object at 0x7fcb2e71e3c8>, 'auto_to_plan_author': <django.forms.fields.BooleanField object at 0x7fcb2e71e358>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7fcb2e71e0b8>, 'is_active': <django.forms.fields.BooleanField object at 0x7fcb2e71e588>, 'name': <django.forms.fields.CharField object at 0x7fcb2e81a860>, 'notify_on_case_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e518>, 'notify_on_plan_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e4a8>, 'parent': <django.forms.fields.IntegerField object at 0x7fcb2e71e240>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e716e10>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7fcb2e71e630>, 'tag': <django.forms.fields.CharField object at 0x7fcb2e71e2b0>, 'text': <django.forms.fields.CharField object at 0x7fcb2e716630>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e716be0>}
declared_fields = {'author': <tcms.core.forms.fields.UserField object at 0x7fcb2e71e5f8>, 'auto_to_case_default_tester': <django.forms.fields.BooleanField object at 0x7fcb2e71e438>, 'auto_to_case_owner': <django.forms.fields.BooleanField object at 0x7fcb2e71e3c8>, 'auto_to_plan_author': <django.forms.fields.BooleanField object at 0x7fcb2e71e358>, 'extra_link': <tcms.core.forms.fields.StripURLField object at 0x7fcb2e71e0b8>, 'is_active': <django.forms.fields.BooleanField object at 0x7fcb2e71e588>, 'name': <django.forms.fields.CharField object at 0x7fcb2e81a860>, 'notify_on_case_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e518>, 'notify_on_plan_update': <django.forms.fields.BooleanField object at 0x7fcb2e71e4a8>, 'parent': <django.forms.fields.IntegerField object at 0x7fcb2e71e240>, 'product': <django.forms.models.ModelChoiceField object at 0x7fcb2e716e10>, 'product_version': <django.forms.models.ModelChoiceField object at 0x7fcb2e71e630>, 'tag': <django.forms.fields.CharField object at 0x7fcb2e71e2b0>, 'text': <django.forms.fields.CharField object at 0x7fcb2e716630>, 'type': <django.forms.models.ModelChoiceField object at 0x7fcb2e716be0>}
media