Archived
1
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/Main_page.py
Dan Helfman f23fcdde21 * Can now click on revision timestamps to open up the contents of previous note revisions with a small timestamp at the top.
* Revisions can be opened either in the current page or in a new window/tab.
 * Added ability for a read-write notebook to contain read-only notes. This supports showing read-only revisions.
 * Fixed updatedb.py to properly load the anonymous user.
 * Updated initdb.py and updatedb.py to deadl with new-style /notebooks/notebookid?note_id=noteid wiki links.
 * Made Persistent copy the revisions_list on each revision update so different revisions don't share lists.
 * Prevented Note from updating its revision twice upon construction. Now it's only updated once.
 * Work-around for nasty urlparse() caching bug related to unicode strings that cherrypy barfs on.
 * Added optional revision flag to various controller.Notebooks methods to allow opening of a notebook with a particular note revision displayed.
2007-07-31 22:53:57 +00:00

61 lines
1.8 KiB
Python

from Page import Page
from Tags import Input, Div, Noscript, H2, H4, A
from Search_form import Search_form
from Link_area import Link_area
from Toolbar import Toolbar
class Main_page( Page ):
def __init__( self, notebook_id = None, note_id = None, revision = None ):
title = None
Page.__init__(
self,
title,
Input( type = u"hidden", name = u"notebook_id", id = u"notebook_id", value = notebook_id or "" ),
Input( type = u"hidden", name = u"note_id", id = u"note_id", value = note_id or "" ),
Input( type = u"hidden", name = u"revision", id = u"revision", value = revision or "" ),
Div(
id = u"status_area",
),
Div(
Link_area( notebook_id ),
id = u"link_area",
),
Div(
Toolbar(),
Div(
Div(
Div(
Div(
id = u"user_area",
),
Div(
Search_form(),
id = u"search_area",
),
id = u"search_and_user_area",
),
Div(
H2( A( u"Luminotes", href = "/" ), class_ = "page_title" ),
H4( A( u"personal wiki notebook", href = "/" ), class_ = u"page_title" ),
id = u"title_area",
),
id = u"top_area",
),
Div(
id = u"notes",
),
Noscript(
u"""
Luminotes is a personal wiki notebook for organizing your notes and ideas. It also
happens to require Javascript. So if you'd like to check out this site, please enable
Javascript in your web browser. Sorry for the inconvenience.
""",
),
id = u"center_area",
),
id = u"center_and_toolbar_area",
),
)