Example #1
0
    def get(self):
        from recaptcha.client import captcha
        captcha_error_code = self.get_argument('captcha_error', None)

        captcha_html = captcha.displayhtml(
            public_key = configuration.RECAPTCHA_PUBLIC_KEY,
            use_ssl = False,
            error = captcha_error_code
            )
        from models import LegalTerms
        legal_terms_list = LegalTerms.get_all()

        self.render('suppliers.html', legal_terms_list=legal_terms_list, captcha_html=captcha_html)
Example #2
0
 def get(self, slug):
     legal_terms = LegalTerms.get_by_slug(slug)
     self.render('terms.html', legal_terms=legal_terms)