witten
/
luminotes
Archived
1
0
Fork 0
This repository has been archived on 2023-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
luminotes/view/Processing_download_note.py

33 lines
857 B
Python

from Tags import Html, Head, Meta, H3, P
class Processing_download_note( Html ):
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...
""",
),
)