reviewboard.hostingsvcs.forms¶
The base hosting service class and associated definitions.
This is pending deprecation. Consumers should update their imports to use
the classes in reviewboard.hostingsvcs.base.forms.
- class HostingServiceAuthForm(*args, hosting_account: reviewboard.hostingsvcs.models.HostingServiceAccount | None = None, **kwargs)[source]¶
Bases:
BaseHostingServiceAuthFormBase form for handling authentication information for a hosting account.
Deprecated since version 8.0: This has been moved to
reviewboard.hostingsvcs.base.forms. BaseHostingServiceAuthForm. The legacy import will be removed in Review Board 10.- __deprecated__ = '`reviewboard.hostingsvcs.forms.HostingServiceAuthForm` has moved to `reviewboard.hostingsvcs.base.forms.BaseHostingServiceAuthForm`. The old class name is deprecated and will be removed in Review Board 10.'¶
- __init_subclass__()¶
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- static __new__(*args, **kwargs)¶
- declared_fields = {'hosting_account_password': <django.forms.fields.CharField object>, 'hosting_account_two_factor_auth_code': <django.forms.fields.CharField object>, 'hosting_account_username': <django.forms.fields.CharField object>, 'hosting_url': <django.forms.fields.CharField object>}¶
- class HostingServiceForm(*args, hosting_service_cls: type[BaseHostingService], **kwargs)[source]¶
Bases:
BaseHostingServiceRepositoryFormBase form for collecting information for a hosting service repository.
Deprecated since version 8.0: This has been moved to
reviewboard.hostingsvcs.base.forms. BaseHostingServiceRepositoryForm. The legacy import will be removed in Review Board 10.- __deprecated__ = '`reviewboard.hostingsvcs.forms.HostingServiceForm` has moved to `reviewboard.hostingsvcs.base.forms.BaseHostingServiceRepositoryForm`. The old class name is deprecated and will be removed in Review Board 10.'¶
- __init_subclass__()¶
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- static __new__(*args, **kwargs)¶
- declared_fields = {}¶