Ticket #4011 (closed defect: duplicate)

Opened 5 years ago

Last modified 1 year ago

revision for wiki pages

Reported by: anonymous Assigned to: coderanger
Priority: normal Component: IncludeMacro
Severity: normal Keywords: revision
Cc: Trac Release: 0.11

Description (Last modified by rjollos)

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

Change History

03/15/10 01:17:03 changed by hasienda

  • status changed from new to closed.
  • keywords set to revision.
  • resolution set to duplicate.

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

06/06/12 08:24:18 changed by rjollos

  • description changed.

Add/Change #4011 (revision for wiki pages)




Change Properties
Action