Exemplo n.º 1
0
 def __init__(self):
     Span.__init__(
         self,
         H3(u"thank you"),
         P(
             u"""
     Thank you for upgrading your Luminotes account!
     """, ),
         P(
             u"""
     Luminotes has not yet received confirmation of your subscription. If your
     account is not automatically upgraded within the next few minutes, please
     """,
             A(u"contact support", href=u"/contact_info", target="_top"),
             u"""
     for assistance.
     """,
         ),
         P(
             u"""
     Note: You can check the current status of your account by refreshing the
     """, A(u"upgrade", href=u"/pricing", target="_top"), u"""
     page while logged in.
     """),
     )
Exemplo n.º 2
0
    def __init__(self, download_url):
        news_url = u"http://luminotes.com/hg/luminotes/file/%s/NEWS" % VERSION

        Span.__init__(
            self,
            H3(u"thank you"),
            P(
                u"""
        Thank you for purchasing Luminotes Desktop! Your payment has been received,
        and a receipt for your purchase has been emailed to you.
        """, ),
            P(
                A(u"Download Luminotes Desktop version %s" % VERSION,
                  href=download_url), ),
            P(
                A("What's new in this release", href=news_url, target="_new"),
                class_=u"small_text",
            ),
            P(
                u"""
        It's a good idea to bookmark this page so that you can download
        Luminotes Desktop or upgrade to new versions as they are released.
        """, ),
            P(
                u"""
        If you have any questions about Luminotes Desktop or your purchase, please
        """,
                A(u"contact support", href=u"/contact_info", target="_top"),
                u"""
        for assistance.
        """,
            ),
        )
Exemplo n.º 3
0
    def __init__(self, access_id=None, tx=None, retry_count=None):
        if not retry_count:
            retry_count = 0

        retry_count += 1

        if tx:
            meta_content = u"2; URL=/users/thanks_download?tx=%s&retry_count=%s" % (
                tx, retry_count)
        elif access_id:
            meta_content = u"2; URL=/users/thanks_download?access_id=%s&retry_count=%s" % (
                access_id, retry_count)
        else:
            raise Exception(u"either tx or access_id required")

        Html.__init__(
            self,
            Head(Meta(
                http_equiv=u"Refresh",
                content=meta_content,
            ), ),
            H3(u"processing..."),
            P(
                """
        Your payment is being processed. This shouldn't take more than a minute. Please wait...
        """, ),
        )
Exemplo n.º 4
0
 def __init__(self, password_reset_id, users):
     Span.__init__(
         self,
         H3(u"complete your password reset"),
         P("""
     Below is a list of Luminotes users matching your email address. You can reset
     the passwords of any of these users. If you just needed a username reminder and
     you already know your password, then click the login link above without performing
     a password reset.
     """),
         Form(
             [
                 Span(
                     P(
                         Div(Strong(u"%s: new password" % user.username)),
                         Input(type=u"password",
                               name=user.object_id,
                               size=30,
                               maxlength=30,
                               class_=u"text_field"),
                     ),
                     P(
                         Div(
                             Strong(u"%s: new password (again)" %
                                    user.username)),
                         Input(type=u"password",
                               name=user.object_id,
                               size=30,
                               maxlength=30,
                               class_=u"text_field"),
                     ),
                 ) for user in users
             ],
             P(
                 Input(type=u"hidden",
                       id=u"password_reset_id",
                       name=u"password_reset_id",
                       value=password_reset_id),
                 Input(type=u"submit",
                       name=u"reset_button",
                       id=u"reset_button",
                       class_=u"button",
                       value=(len(users) > 1) and u"reset passwords"
                       or u"reset password"),
             ),
             id="reset_form",
             target="/users/reset_password",
         ),
         P(
             Strong(u"tip:"),
             u"""
     When you submit this form, you'll be redirected to the front page where you can login with
     your new password.
     """,
         ),
     )
Exemplo n.º 5
0
 def __init__(self, invite, notebook):
     Span.__init__(
         self,
         H3(notebook.name),
         P(
             u"You are just seconds away from viewing \"%s\"." %
             notebook.name, ),
         P(
             u"If you already have a Luminotes account, then simply ",
             A(u"login",
               href=u"/login?invite_id=%s" % invite.object_id,
               target="_top"), u" to your account."),
         P(
             u"Otherwise, please ",
             A(u"sign up",
               href=u"/sign_up?invite_id=%s" % invite.object_id,
               target="_top"), u" for a free account."),
     )
Exemplo n.º 6
0
  def __init__( self, rate_plan, retry_count ):
    if not retry_count:
      retry_count = 0

    retry_count += 1

    Html.__init__(
      self,
      Head(
        Meta(
          http_equiv = u"Refresh",
          content = u"2; URL=/users/thanks?item_number=%s&retry_count=%s" % ( rate_plan, retry_count ),
        ),
      ),
      H3( u"processing..." ),
      P(
        """
        Your subscription is being processed. This shouldn't take more than a minute. Please wait...
        """,
      ),
    )
 def __init__(self):
     Span.__init__(
         self,
         H3(u"thank you"),
         P(
             u"""
     Thank you for purchasing Luminotes Desktop!
     """, ),
         P(u"""
     Luminotes has not yet received confirmation of your payment. Please
     check back in a few minutes by refreshing this page, or check your
     email for a Luminotes Desktop download message. You will also receive
     a separate email receipt for this purchase.
     """),
         P(
             """
     If your payment is not received within the next few minutes, please
     """,
             A(u"contact support", href=u"/contact_info", target="_top"),
             u"""
     for assistance.
     """,
         ),
     )
Exemplo n.º 8
0
 def __init__(self, rate_plan_name=None):
     Span.__init__(
         self,
         H3(u"thank you"),
         P(
             u"""
     Thank you for upgrading your Luminotes account! 
     """, ),
         P(
             u"""
     You are now subscribed to Luminotes%s. Please click on one of your
     notebooks to the left to get started with your newly upgraded wiki.
     """ % (rate_plan_name and u" %s" % rate_plan_name or u""), ),
         P(
             u"""
     If you have any questions about your upgraded wiki or your Luminotes
     account, please
     """,
             A(u"contact support", href=u"/contact_info", target="_top"),
             u"""
     for assistance.
     """,
         ),
     )