Version 9 (modified by 10 years ago) (diff) | ,
---|
Contents
Settings Plugin for easy handling of a bunch of configuration data
Description
Provides extension for trac-admin
for easy removal of unneeded milestones, components, etc., and setting configuration options from a file.
Extends command trac-admin
with some more commands:
component removeall <pattern>
: Remove all components with a specific patternpermission removeall <user_pattern>
: Remove all permissions with a specific pattern for usersmilestone removeall <pattern>
: Remove all milestones with a specific patternversion removeall <pattern>
: Remove all versions with a specific patternticket_type removeall <pattern>;
: Remove all ticket_types with a specific patternpriority removeall <pattern>;
: Remove all priorities with a specific patternconfig setall <path/to/file>
: Set all config options from file totrac.ini
plugin replace <plugin_name>
: Replaces plugin(s) with plugin name (without version)plugin replaceall
: Replaces all (!) plugins (dangerous!)attachment unused
: Removes unused attachments (dangerous!); options: [list | remove]- option
list
only lists unused attachments - option
remove
backups attachments into$PROJECT_ENV/backup_unused_attachments.zip
and removes unused attachments; this could be useful when upgrading Trac from revision before11036
to Trac revision after that
- option
Pattern can have wildcards (%).
Bugs/Feature Requests
Existing bugs and feature requests for SettingsPlugin are here.
If you have any issues, create a new ticket.
task |
0 / 1 |
---|
Download
Download the zipped source from [download:settingsplugin here].
Or download precompiled python egg.
Source
You can check out SettingsPlugin from here using Subversion, or browse the source with Trac.
Example
Examples usage of commands:
# removes all components starting with component trac-admin </path/to/projenv> component removeall component% # removes ALL (!) versions trac-admin </path/to/projenv> version removeall % # overrides and creates all config entries from `company.ini` trac-admin </path/to/projenv> config setall company.ini # replaces plugin TracAccountManager trac-admin </path/to/projenv> plugin replace TracAccountManager # removes all plugins (and made a backup) # then copies all plugin of current directory into plugins-directory trac-admin </path/to/projenv> plugin replaceall
Recent Changes
- 16398 by rjollos on 2017-03-25 09:48:50
-
Remove
dist
directories
- 16394 by rjollos on 2017-03-25 09:20:58
-
Remove eggs
- 11543 by framay on 2012-05-10 08:32:26
-
adding additional command
attachment unused
, which lists or removes unused attachments; when callingattachment unused list
the output could be piped and afterwards opened byOpenOffice Calc
by using separator ":"
Example:
trac-admin $TRAC_ENV attachment unused list > attachments.txt trac-admin $TRAC_ENV attachment unused remove > attachments.txt
see http://trac.edgewall.org/ticket/10313 for details
(more)