@presentation.render_for(ChangeEmailConfirmation, 'success')
@presentation.render_for(ChangeEmailConfirmation, 'failure')
def render_change_email_confirmation_success(self, h, comp, model):
    with h.body(class_='body-login'):
        h << self.header
        with h.div(class_='title'):
            h << h.h2(_(u'Change email'))

        with h.div(class_='container'):
            with h.h3:
                if model == 'success':
                    h << _("Email change successful!")
                else:
                    h << _("Email change failure!")

            with h.p:
                if model == 'success':
                    h << _("""Your email have been changed successfully.""")
                else:
                    h << _("""Email change failure! Please retry.""")

            with h.form:
                with h.div(class_='actions'):
                    h << h.input(type='submit',
                                 class_='btn btn-primary',
                                 value=_("Ok")).action(lambda: redirect_to(self.redirect_url))

    return h.root
Leases a number of tasks from the Queue for a period of time.
dataset/ETHPy150Open Net-ng/kansha/kansha/authentication/database/forms.py/render_change_email_confirmation_success--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/taskqueue/taskqueue.py/Queue.lease_tasks_by_tag