MozReview: Migrate rbbz/forms.py to mozreview/forms.py (Bug 1262548). r?smacleod
authorDavid Walsh <dwalsh@mozilla.com>
Wed, 13 Apr 2016 11:19:19 -0500
changeset 7737 8fc6263dd7879a31285c910d421b4130b3453a78
parent 7736 aa62c8f928491fb2d5cc4ac067f849b1596897d2
child 7738 aa50845df0c45bfa9f0868384ee173b8b41446b6
child 7817 7e2d57d84798497ae35da9880295c439627d3141
child 7834 5312eb875305522efbf0e72099e76161b7f45b97
push id741
push userbmo:dwalsh@mozilla.com
push dateWed, 13 Apr 2016 16:18:37 +0000
reviewerssmacleod
bugs1262548
MozReview: Migrate rbbz/forms.py to mozreview/forms.py (Bug 1262548). r?smacleod MozReview-Commit-ID: Ct5UC27ivYN
pylib/mozreview/mozreview/forms.py
pylib/rbbz/rbbz/auth.py
pylib/rbbz/rbbz/forms.py
--- a/pylib/mozreview/mozreview/forms.py
+++ b/pylib/mozreview/mozreview/forms.py
@@ -1,13 +1,25 @@
 from django import forms
 from django.utils.translation import ugettext as _
 from djblets.extensions.forms import SettingsForm
+from djblets.siteconfig.forms import SiteSettingsForm
 
 import mozreview.extension
 
 
 class MozReviewSettingsForm(SettingsForm):
     config = forms.CharField(
         required=False,
         help_text=_('Configure this extension by editing ' +
                     mozreview.extension.SETTINGS_PATH)
     )
+
+
+class BugzillaAuthSettingsForm(SiteSettingsForm):
+
+    auth_bz_xmlrpc_url = forms.CharField(
+        label="Bugzilla XMLRPC URL",
+        help_text="URL for your Bugzilla installation's XMLRPC interface",
+        required=True)
+
+    class Meta:
+        title = "Bugzilla Backend Settings"
--- a/pylib/rbbz/rbbz/auth.py
+++ b/pylib/rbbz/rbbz/auth.py
@@ -19,17 +19,17 @@ from mozreview.bugzilla.models import (
     BugzillaUserMap,
     get_bugzilla_api_key,
     get_or_create_bugzilla_users,
 )
 from mozreview.errors import (
     BugzillaAPIKeyNeededError,
     WebLoginNeededError,
 )
-from rbbz.forms import BugzillaAuthSettingsForm
+from mozreview.forms import BugzillaAuthSettingsForm
 
 
 logger = logging.getLogger(__name__)
 
 
 class BugzillaBackend(AuthBackend):
     """
     Authenticate a user via Bugzilla XMLRPC.
deleted file mode 100644
--- a/pylib/rbbz/rbbz/forms.py
+++ /dev/null
@@ -1,17 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-from django import forms
-from djblets.siteconfig.forms import SiteSettingsForm
-
-
-class BugzillaAuthSettingsForm(SiteSettingsForm):
-
-    auth_bz_xmlrpc_url = forms.CharField(
-        label="Bugzilla XMLRPC URL",
-        help_text="URL for your Bugzilla installation's XMLRPC interface",
-        required=True)
-
-    class Meta:
-        title = "Bugzilla Backend Settings"