Jump to >

reviewboard.reviews.forms

regex_validator(value)[source]

Validates that the specified regular expression is valid.

class DefaultReviewerForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

__init__(*args, **kwargs)[source]
clean()[source]
class Meta[source]
model[source]

alias of DefaultReviewer

declared_fields = {‘name’: <django.forms.fields.CharField object>, ‘file_regex’: <django.forms.fields.CharField object>, ‘people’: <django.forms.models.ModelMultipleChoiceField object>, ‘repository’: <django.forms.models.ModelMultipleChoiceField object>}[source]
class GroupForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

__init__(*args, **kwargs)[source]
clean()[source]
class Meta[source]
model[source]

alias of Group

declared_fields = {‘users’: <django.forms.models.ModelMultipleChoiceField object>}[source]
class UploadDiffForm(review_request, data=None, *args, **kwargs)[source]

Bases: reviewboard.diffviewer.forms.UploadDiffForm

A specialized UploadDiffForm that knows how to interact with review requests.

__init__(review_request, data=None, *args, **kwargs)[source]
create(diff_file, parent_diff_file=None, attach_to_history=False)[source]
class UploadScreenshotForm(data=None, files=None, auto_id=u’id_%s’, prefix=None, initial=None, error_class=<class ‘django.forms.util.ErrorList’>, label_suffix=None, empty_permitted=False)[source]

Bases: django.forms.forms.Form

A form that handles uploading of new screenshots. A screenshot takes a path argument and optionally a caption.

create(file, review_request)[source]