Modify

Opened 16 years ago

Closed 15 years ago

Last modified 13 years ago

#4011 closed defect (duplicate)

revision for wiki pages

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

Description (last modified by Ryan J Ollos)

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 traceability completely.

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)

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by Steffen Hoffmann

Keywords: revision added
Resolution: duplicate
Status: newclosed

a duplicate of #3620, but I'll will publish the proposed solution there, so this may still lead to fixing this sooner, thanks

comment:2 Changed 13 years ago by Ryan J Ollos

Description: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.