Personal wiki notebook (not under development)

Update_link_page.py 789B

1234567891011121314151617181920212223242526272829
  1. from Tags import Html, Head, Title, Body, A
  2. class Update_link_page( Html ):
  3. def __init__( self, notebook_id, notebook_name, note_id, https_url ):
  4. if notebook_name == u"Luminotes":
  5. notebook_path = u"/"
  6. elif notebook_name == u"Luminotes user guide":
  7. notebook_path = u"/guide"
  8. elif notebook_name == u"Luminotes blog":
  9. notebook_path = u"/blog"
  10. else:
  11. notebook_path = u"/notebooks/%s" % notebook_id
  12. notebook_path = https_url + notebook_path
  13. Html.__init__(
  14. self,
  15. Head(
  16. Title( "Note updated" ),
  17. ),
  18. Body(
  19. u"A note in ",
  20. A( u"this notebook", href = notebook_path ),
  21. u"has been updated.",
  22. A( u"View the note.", href = u"%s?note_id=%s" % ( notebook_path, note_id ) ),
  23. ),
  24. )