2007-07-16 20:22:38 +00:00
|
|
|
from Page import Page
|
2007-07-20 19:11:22 +00:00
|
|
|
from Tags import Input, Div, Noscript, H2, H4, A
|
2007-07-16 20:22:38 +00:00
|
|
|
from Search_form import Search_form
|
|
|
|
from Link_area import Link_area
|
|
|
|
from Toolbar import Toolbar
|
|
|
|
|
|
|
|
|
|
|
|
class Main_page( Page ):
|
2007-07-31 22:53:57 +00:00
|
|
|
def __init__( self, notebook_id = None, note_id = None, revision = None ):
|
2007-07-16 20:22:38 +00:00
|
|
|
title = None
|
|
|
|
|
|
|
|
Page.__init__(
|
|
|
|
self,
|
|
|
|
title,
|
|
|
|
Input( type = u"hidden", name = u"notebook_id", id = u"notebook_id", value = notebook_id or "" ),
|
2007-07-28 04:22:44 +00:00
|
|
|
Input( type = u"hidden", name = u"note_id", id = u"note_id", value = note_id or "" ),
|
2007-07-31 22:53:57 +00:00
|
|
|
Input( type = u"hidden", name = u"revision", id = u"revision", value = revision or "" ),
|
2007-07-16 20:22:38 +00:00
|
|
|
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(
|
2007-07-16 21:03:39 +00:00
|
|
|
H2( A( u"Luminotes", href = "/" ), class_ = "page_title" ),
|
2007-07-16 20:22:38 +00:00
|
|
|
H4( A( u"personal wiki notebook", href = "/" ), class_ = u"page_title" ),
|
|
|
|
id = u"title_area",
|
|
|
|
),
|
|
|
|
id = u"top_area",
|
|
|
|
),
|
|
|
|
Div(
|
2007-08-28 20:36:33 +00:00
|
|
|
id = u"notebook_header_area",
|
|
|
|
class_ = u"current_notebook_name",
|
|
|
|
),
|
|
|
|
Div(
|
|
|
|
Div(
|
|
|
|
Div(
|
|
|
|
id = u"notes",
|
|
|
|
),
|
|
|
|
id = u"notebook_background",
|
|
|
|
),
|
|
|
|
id = u"notebook_border",
|
|
|
|
class_ = u"current_notebook_name",
|
2007-07-16 20:22:38 +00:00
|
|
|
),
|
2007-07-20 19:11:22 +00:00
|
|
|
Noscript(
|
2007-08-01 20:46:26 +00:00
|
|
|
Div( file( u"static/html/about.html" ).read() ),
|
|
|
|
Div( file( u"static/html/features.html" ).read().replace( u"href=", u"disabled=" ) ),
|
|
|
|
Div( file( u"static/html/no javascript.html" ).read() ),
|
2007-07-20 19:11:22 +00:00
|
|
|
),
|
2007-07-16 20:22:38 +00:00
|
|
|
id = u"center_area",
|
|
|
|
),
|
|
|
|
id = u"center_and_toolbar_area",
|
|
|
|
),
|
|
|
|
)
|