Changeset 1585 for trunk/pylucid/PyLucid/index.py
- Timestamp:
- 05/23/08 16:33:49 (22 months ago)
- Files:
-
- 1 modified
-
trunk/pylucid/PyLucid/index.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid/PyLucid/index.py
r1583 r1585 98 98 context = RequestContext(request) 99 99 100 context["page_msg"]= PageMessages(context)100 request.page_msg = PageMessages(context) 101 101 102 102 # Redirect every "warning" messages into the page_msg: 103 redirect_warnings(context["page_msg"]) 103 # redirect_warnings(request.page_msg) 104 redirect_warnings(request.page_msg) 104 105 105 106 context["PAGE"] = current_page_obj … … 122 123 123 124 # Add the context to the reponse object. 124 # Used in PyLucid .middlewares.additional_content125 # Used in PyLucid middlewares 125 126 request.CONTEXT = context 127 128 # TODO: remove Backwards-incompatible changes in >v0.8.5 129 msg = ( 130 'Error, see: <a href="' 131 'http://www.pylucid.org/_goto/121/changes/#20-05-2008-page_msg' 132 '">pylucid.org - Backwards-incompatible changes - page_msg</a>' 133 ) 134 context["messages"] = [mark_safe(msg)] 126 135 127 136 return context