diff --git a/b b/b new file mode 100644 --- /dev/null +++ b/b @@ -0,0 +1 @@ +a diff --git a/brownbag/revisions.py b/brownbag/revisions.py --- a/brownbag/revisions.py +++ b/brownbag/revisions.py @@ -31,10 +31,11 @@ error_msg = exc.response.json()['title'] if error_msg == 'Diff not related to the revision': return render_template('revision/400_wrong_diff.html'), 400 raise parent_revisions = _flatten_parent_revisions(revision) + parent_revisions = [revision for revision in parent_revisions if True] # Fetch any potential landing issues to display. # TODO: Save the dryrun confirmation token in the Revision form to be # used when making the real landing request. https://trello.com/c/dh0c0YTs. # TODO: We shouldn't check the dryrun result before a POST to actually @@ -45,16 +46,12 @@ # fresh revision and landing history is loaded. # Also consider splitting into two routes: https://trello.com/c/Oo3RUzUR. dryrun_confirmation_token = None # noqa warnings = [] blockers = [] - if is_user_authenticated(): - dryrun_result = _get_landing_dryrun_result(revision) - dryrun_confirmation_token = dryrun_result['confirmation_token'] # noqa - warnings = dryrun_result['warnings'] - blockers = dryrun_result['blockers'] - + errors = [] + print(errors) # Creates a new form on GET or loads the submitted form on a POST form = RevisionForm() errors = [] if form.is_submitted(): if form.validate(): diff --git a/brownbag/t3/revisions.py b/brownbag/t3/revisions.py --- a/brownbag/t3/revisions.py +++ b/brownbag/t3/revisions.py @@ -3,18 +3,10 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Totally fixed now import json import logging -from flask import Blueprint, current_app, render_template, redirect, session - -from landoui.forms import RevisionForm -from landoui.helpers import is_user_authenticated, set_last_local_referrer -from landoui.landoapiclient import LandoAPIClient, LandingSubmissionError - -logger = logging.getLogger(__name__) - revisions = Blueprint('revisions', __name__) revisions.before_request(set_last_local_referrer) @revisions.route('/revisions//', methods=('GET', 'POST')) diff --git a/test-log.txt b/test-log.txt deleted file mode 100644 --- a/test-log.txt +++ /dev/null @@ -1,2 +0,0 @@ -testing #Check-in_Needed -again