Edgewall Software

Opened 6 years ago

Last modified 6 years ago

#12987 closed defect

trac-admin load/import should preserve read-only flag of wiki pages — at Version 2

Reported by: korn-edgewall.org@… Owned by: Jun Omae
Priority: normal Milestone: 1.0.17
Component: wiki system Version: 1.2
Severity: normal Keywords: trac-admin read-only
Cc: Branch:
Release Notes:

WikiAdmin.import_page preserves readonly of wiki pages

API Changes:
Internal Changes:

Description

trac-admin can import wiki pages from files, but in doing so, clears their read-only flag. This is inconvenient because I have some pages I auto-generate outside Trac and then load via trac-admin; I'd like to discourage people from editing them manually by setting the read-only flag.

Please change trac-admin wiki load (and trac-admin wiki import) so that if a loaded/imported page was read-only before, it stays read-only after the load/import.

Change History (2)

comment:1 by Jun Omae, 6 years ago

Component: admin/consolewiki system
Keywords: wiki removed
Milestone: 1.0.17
Owner: set to Jun Omae
Status: newassigned

wiki upgrade command also clears readonly of wiki page. I agree the readonly flag should be kept by wiki upgrade, wiki import and wiki load.

comment:2 by Jun Omae, 6 years ago

Release Notes: modified (diff)

Proposed changes in [f434611b3/jomae.git] (jomae.git@t12987).

Note: See TracTickets for help on using tickets.