Edgewall Software

Changes between Initial Version and Version 1 of Ticket #11648, comment 3


Ignore:
Timestamp:
Jul 25, 2014, 11:41:27 AM (8 years ago)
Author:
Ryan J Ollos

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11648, comment 3

    initial v1  
    11The `WikiPage` class has some unique behavior that presents a complication for these changes. When the version is not specified when creating the object (e.g. `page = WikiPage(self.env, name)`), `page.version` will contain the latest version of the page, but `page.resource.version` will be `None`.
    22
    3 The behavior is utilized when rendering the wiki page to determine whether a versioned page should be rendered, or just the standard HEAD view of the page: [browser:/trunk/trac/wiki/web_ui.py@13003:582,630#L581]. For example, if there are 3 versions of `WikiStart` the page displayed when the URL is `/wiki/WikiStart?version=3` will differ slightly from the page displayed when the URL is `/wiki/WikiStart`.  Specifically, the following is displayed at the top of the versioned page:
     3The behavior is utilized when rendering the wiki page to determine whether a versioned page or just the standard HEAD view of the page should be rendered: [browser:/trunk/trac/wiki/web_ui.py@13003:582,630#L581]. For example, if there are 3 versions of `WikiStart` the page displayed when the URL is `/wiki/WikiStart?version=3` will differ slightly from the page displayed when the URL is `/wiki/WikiStart`.  Specifically, the following is displayed at the top of the versioned page:
    44
    55{{{#!html