Example #1
0
 def GET(self):
     """"""
     view.destroyCookie()
     return render.base(
         """<p>Votre session est maintenant terminé. Vérifier vos courriels pour votre confirmation d'inscription.</p>
     <p>Pour toutes questions, contactez <a href="mailto:[email protected]">[email protected]</a>"""
     )
Example #2
0
    def GET(self, action, badge_id):
        cart_id = view.getCookie()
        if not cart_id:
            raise web.seeother(config.make_url("/"))
        elif "status" in db.getCart(cart_id):
            view.destroyCookie()
            raise web.seeother(config.make_url("/"))

        return render.base(view.cartListing(cart_id, (action, badge_id)))
Example #3
0
    def GET(self, action, badge_id):
        cart_id = view.getCookie()
        if not cart_id:
            raise web.seeother(config.make_url("/"))
        elif "status" in db.getCart(cart_id):
            view.destroyCookie()
            raise web.seeother(config.make_url("/"))

        return render.base(view.cartListing(cart_id, (action, badge_id)))
Example #4
0
    def GET(self):
        """Display the cart listing"""
        cart_id = web.cookies().get(config.cookieName)
        if not cart_id:
            cart_number = view.generateCartNumber()
            cart_id = db.newCart(cart_number)
            view.saveCookie(cart_id)
        elif "status" in db.getCart(cart_id):
            view.destroyCookie()
            cart_number = view.generateCartNumber()
            cart_id = db.newCart(cart_number)
            view.saveCookie(cart_id)

        return render.base(view.cartListing(cart_id))
Example #5
0
    def GET(self):
        """Display the cart listing"""
        cart_id = web.cookies().get(config.cookieName)
        if not cart_id:
            cart_number = view.generateCartNumber()
            cart_id = db.newCart(cart_number)
            view.saveCookie(cart_id)
        elif "status" in db.getCart(cart_id):
            view.destroyCookie()
            cart_number = view.generateCartNumber()
            cart_id = db.newCart(cart_number)
            view.saveCookie(cart_id)

        return render.base(view.cartListing(cart_id))
Example #6
0
 def GET(self):
     """"""
     view.destroyCookie()
     return render.base("""<p>Votre session est maintenant terminé. Vérifier vos courriels pour votre confirmation d'inscription.</p>
     <p>Pour toutes questions, contactez <a href="mailto:[email protected]">[email protected]</a>""")