Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#5165 closed enhancement (fixed)

Allow wildcard for wiki page deletion in trac-admin

Reported by: Emmanuel Blot Owned by: Emmanuel Blot
Priority: lowest Milestone: 0.11
Component: admin/console Version: devel
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

It would be nice if trac-admin would allow to remove multiple pages at once.

For example, it could be used to remove all Wiki* pages or all Trac* pages on a system where the admin does not want to keep the default help pages.

Attachments (1)

5165.diff (1.5 KB ) - added by Emmanuel Blot 18 years ago.
New version, implementing the requested changes

Download all attachments as: .zip

Change History (6)

comment:1 by Christian Boos, 18 years ago

Component: generaltrac-admin
Milestone: 0.11
Owner: changed from Jonas Borgström to Christopher Lenz

2 quick comments:

  • a for loop is more consistent with our general programming style than using map
  • as we're using a wildcard, it would be good to print out the actual name of the page that is being deleted

comment:2 by Christian Boos, 18 years ago

Owner: changed from Christopher Lenz to Emmanuel Blot

by Emmanuel Blot, 18 years ago

Attachment: 5165.diff added

New version, implementing the requested changes

comment:3 by Emmanuel Blot, 18 years ago

I've added a new version of the patch. Let me know if it's ok.

comment:4 by Christian Boos, 18 years ago

Yes, it works fine. Running the patch, I noticed that there were anyway [DEBUG] and [INFO] logging lines for each removed page, so printing out that listing is not as important as I originally thought.

But it's nice to have anyway, as it's more readable and compact than the log and is the only output when the log isn't directed to the console.

comment:5 by Emmanuel Blot, 18 years ago

Resolution: fixed
Status: newclosed

Applied in [5223].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Emmanuel Blot.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Emmanuel Blot to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.