Jump to >

reviewboard.reviews.forms

regex_validator(value)[source]

Validates that the specified regular expression is valid.

class DefaultReviewerForm(data=None, initial={}, request=None, *args, **kwargs)[source]

Bases: reviewboard.site.mixins.LocalSiteAwareModelFormMixin, django.forms.models.ModelForm

class Meta[source]
model[source]

alias of reviewboard.reviews.models.default_reviewer.DefaultReviewer

error_messages = {u'groups': {u'invalid_choice': _(u'A group with ID %(value)s was not found.'), u'invalid_pk_value': _(u'"%(pk)s" is an invalid group ID.')}}[source]
fields = u'__all__'[source]
declared_fields = {'file_regex': <django.forms.fields.CharField object at 0x10b3b3d90>, 'name': <django.forms.fields.CharField object at 0x10b3b3c50>, 'people': <django.forms.models.ModelMultipleChoiceField object at 0x10b3a3050>, 'repository': <django.forms.models.ModelMultipleChoiceField object at 0x10b3a34d0>}[source]
class GroupForm(data=None, initial={}, request=None, *args, **kwargs)[source]

Bases: reviewboard.site.mixins.LocalSiteAwareModelFormMixin, django.forms.models.ModelForm

class Meta[source]
model[source]

alias of reviewboard.reviews.models.group.Group

fields = u'__all__'[source]
declared_fields = {'users': <django.forms.models.ModelMultipleChoiceField object at 0x10b3a3d10>}[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]

x.__init__(…) initializes x; see help(type(x)) for signature

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]