Opened 20 years ago
Closed 18 years ago
#911 closed enhancement (wontfix)
Permissions template
Reported by: | ikolev | Owned by: | daniel |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | admin/console | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
This is almost the same as #910.
When someone needs to install several trac env's (for several Svn repos), it would be easier to set default permissions in advance. A template file with permissions (like the template wiki pages) would help a lot. Currently one has to modify db_default.py.
Of course, a possible fully web-based installation (or web-based administration) would handle this much better…
Attachments (0)
Change History (5)
comment:1 by , 19 years ago
comment:2 by , 18 years ago
have you guys take a look at python paste? this will help into setting defaults.
comment:3 by , 18 years ago
This is doable through the TracForge plugin. Specifically look at the central permissions and roles system.
follow-up: 5 comment:4 by , 18 years ago
And you can always write a simple command line script that uses trac-admin to do this… propose to close as wontfix.
comment:5 by , 18 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Replying to sid:
And you can always write a simple command line script that uses trac-admin to do this… propose to close as wontfix.
I agree, it's trivial to make a file listing trac-admin commands to set up your new project and pipe it in, and this gives you complete control over anything you can do in trac-admin, not just permissions.
For example save this to "trac-commands.txt":
initenv permission remove anonymous TICKET_MODIFY permission add me TRAC_ADMIN priority rename blocker extreme
Then on the command line:
trac-admin my-new-project < trac-commands.txt
Using "<" to pipe the contents of a file into trac-admin works on both Windows and *nix shells.
Hi,
I'd like to vote for this enhancement. I too would like to have custom permissions created when the project is created.
One possible way to achieve this would be to set the permissions using a post-install script which reads the permissions from a file.
I have a similar issue with trac.ini, i.e. I always make the same changes to trac.ini after installation.
R.