![Dan Helfman](/assets/img/avatar_default.png)
* model.Note has a deleted_from member to indicate the notebook id it was deleted from (if any) * controller.Notebooks sets the deleted_from member and makes all deleted notes startup notes in the trash * new controller.Notebooks.undelete_note() method * split up the idea of UI messages into errors and informational messages, with separate CSS * updated Editor and Wiki UI code to deal with new deleted_from variable * added "undelete" button when viewing a deleted note, and "delete" changes to "delete forever" * added a "trash" link to the notebook links * reorganized responsibilities for displaying notebook/user links among Wiki.populate() and Wiki.display_user() * when deleting messages in a notebook with a trash, displaying "The note has been moved to the trash"... with a working undo button! * tweaked focusing logic in display_search_results(), which has been renamed to display_loaded_notes()
15 lines
236 B
Python
15 lines
236 B
Python
from Tags import Div, H3, A
|
|
|
|
|
|
class Link_area( Div ):
|
|
def __init__( self, notebook_id ):
|
|
Div.__init__(
|
|
self,
|
|
Div(
|
|
id = u"notebook_area",
|
|
),
|
|
Div(
|
|
id = u"other_notebooks_area",
|
|
),
|
|
)
|