Exemplo n.º 1
0
    def get(self):
        if self.view_clears_session:
            session.clear_checker()
        category = request.args.get("category")
        if category == "other":
            category = ""
        category_name = None
        if category:
            category_name = category_id_to_name(category)

        return self.render(category=category, category_name=category_name)
Exemplo n.º 2
0
    def get(self):
        if self.view_clears_session:
            session.clear_checker()
        category = request.args.get("category")
        if category == "other":
            category = ""
        category_name = None
        if category:
            category_name = category_id_to_name(category)

        return self.render(category=category, category_name=category_name)
Exemplo n.º 3
0
    def get(self):
        session.clear_checker()

        confirmation_email = session.get("confirmation_email", None)
        if confirmation_email:
            del session["confirmation_email"]
        if not session.stored.get("case_ref"):
            abort(404)
        return render_template(
            "checker/result/confirmation.html", form=self.form, confirmation_email=confirmation_email
        )
Exemplo n.º 4
0
    def get(self):
        session.clear_checker()

        confirmation_email = session.get("confirmation_email", None)
        if confirmation_email:
            del session["confirmation_email"]
        if not session.stored.get("case_ref"):
            abort(404)
        return render_template(
            "checker/result/confirmation.html", form=self.form, confirmation_email=confirmation_email
        )
    def get(self):
        if self.view_clears_session:
            session.clear_checker()
        category = request.args.get("category")
        if category == "other":
            category = ""
        category_name = None
        if category:
            category_name = category_id_to_name(category)

        return self.render(
            category=category,
            category_name=category_name,
            extra_context=self.get_extra_postcode_context(
                request.args.get("postcode")),
        )
Exemplo n.º 6
0
 def clear_session(self):
     if session.checker:
         session.clear_checker()
 def clear_session(self):
     if session.checker:
         session.clear_checker()
Exemplo n.º 8
0
 def get(self):
     session.clear_checker()
     return render_template("scope/mediation.html")
 def get(self):
     session.clear_checker()
     return render_template("scope/mediation.html")