[Trac-tickets] [The Trac Project] #2300: wiki.page_name is unset in
HDF when generating page previews
The Trac Project
noreply at edgewall.com
Wed Nov 2 17:34:36 CST 2005
#2300: wiki.page_name is unset in HDF when generating page previews
----------------------------+-----------------------------------------------
Reporter: mcivor at iit.edu | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: wiki | Version: 0.9b2
Severity: major | Keywords: wiki macro |
----------------------------+-----------------------------------------------
When previewing page edits, macros which rely on ''wiki.page_name'' are
either broken or default to !StartPage, depending on the implementation.
This occurs because `WikiModule.process_request()` invokes
`WikiModule._render_editor()` before setting ''wiki.page_name'' and
''wiki.current_href''.
The fix is simple: move these two assignments so they occur before the big
`if/elif` loop that dispatches on the method and action in
`process_request()`.
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2300>
The Trac Project <http://trac.edgewall.com/>
More information about the Trac-Tickets
mailing list