Opened 16 years ago

Last modified 12 years ago

#4011 closed defect

revision for wiki pages — at Initial Version

Reported by: anonymous Owned by: Noah Kantrowitz
Priority: normal Component: IncludeMacro
Severity: normal Keywords: revision
Cc: Trac Release: 0.11

Description

Sometimes it is needed to include wiki pages of a special revision e.g. forms. It is needed because old already closed tickets gets changed if you update a form. This would destroy the tracability completly.

try:

source_format, source_obj = source.split('#', 1)

except ValueError: # If no : is present, assume its a wiki page

source_format, source_obj = 'wiki', source

try:

source_obj, source_ver = source_obj.split(':', 1)

except ValueError: # If no : is present, assume its a wiki page

source_ver, source_obj = None, source_obj

. . .

page = WikiPage(self.env, source_obj, version=source_ver)

Change History (0)

Note: See TracTickets for help on using tickets.