Personal wiki notebook (not under development)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Processing_download_note.py 857B

1234567891011121314151617181920212223242526272829303132
  1. from Tags import Html, Head, Meta, H3, P
  2. class Processing_download_note( Html ):
  3. def __init__( self, access_id = None, tx = None, retry_count = None ):
  4. if not retry_count:
  5. retry_count = 0
  6. retry_count += 1
  7. if tx:
  8. meta_content = u"2; URL=/users/thanks_download?tx=%s&retry_count=%s" % ( tx, retry_count )
  9. elif access_id:
  10. meta_content = u"2; URL=/users/thanks_download?access_id=%s&retry_count=%s" % ( access_id, retry_count )
  11. else:
  12. raise Exception( u"either tx or access_id required" )
  13. Html.__init__(
  14. self,
  15. Head(
  16. Meta(
  17. http_equiv = u"Refresh",
  18. content = meta_content,
  19. ),
  20. ),
  21. H3( u"processing..." ),
  22. P(
  23. """
  24. Your payment is being processed. This shouldn't take more than a minute. Please wait...
  25. """,
  26. ),
  27. )