Edgewall Software
Modify

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 robin-trac@…, 19 years ago

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.

comment:2 by Jorge <jorge.vargas@…>, 18 years ago

have you guys take a look at python paste? this will help into setting defaults.

comment:3 by Noah Kantrowitz (coderanger) <coderanger@…>, 18 years ago

This is doable through the TracForge plugin. Specifically look at the central permissions and roles system.

comment:4 by sid, 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.

in reply to:  4 comment:5 by Matthew Good, 18 years ago

Resolution: wontfix
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel 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.