[[PageOutline(2-5,Contents,pullout)]] = Settings Plugin for easy handling of a bunch of configuration data = == Description == Provides extension for `trac-admin` for easy removing unneeded milestones, components, etc. and setting a bunch of config options from a file. Extends command `trac-admin` with some more commands: - `component removeall `: Remove all components with a specific pattern - `permission removeall `: Remove all permissions with a specific pattern for users - `milestone removeall `: Remove all milestones with a specific pattern - `version removeall `: Remove all versions with a specific pattern - `ticket_type removeall ;`: Remove all ticket_types with a specific pattern - `priority removeall ;`: Remove all priorities with a specific pattern - `config setall `: Set all config options from file to `trac.ini` - `plugin replace `: 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 before `11036` to Trac revision after that Pattern can have wildcards (%). == Bugs/Feature Requests == Existing bugs and feature requests for SettingsPlugin are [report:9?COMPONENT=SettingsPlugin here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=SettingsPlugin&owner=framay new ticket]. == Download == Download the zipped source from [download:settingsplugin here]. Or download precompiled [raw-attachment:SettingsPlugin-0.5.a2-py2.6.egg python egg]. == Source == You can check out SettingsPlugin from [http://trac-hacks.org/svn/settingsplugin here] using Subversion, or [source:settingsplugin browse the source] with Trac. == Example == Examples usage of commands: {{{ # removes all components starting with component trac-admin component removeall component% # removes ALL (!) versions trac-admin version removeall % # overrides and creates all config entries from `company.ini` trac-admin config setall company.ini # replaces plugin TracAccountManager trac-admin plugin replace TracAccountManager # removes all plugins (and made a backup) # then copies all plugin of current directory into plugins-directory trac-admin plugin replaceall }}} == Recent Changes == [[ChangeLog(settingsplugin, 3)]] == Author/Contributors == '''Author:''' [wiki:framay] [[BR]] '''Maintainer:''' [wiki:framay] [[BR]] '''Contributors:'''