Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#5372 closed defect (duplicate)

Chicken-egg problem regarding global trac.ini and default values

Reported by: hyuga <hyugaricdeau@…> Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/console Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

In 0.10.4 things worked such that when creating a project, the default trac.ini values were left out of they were overwritten by the global trac.ini file.

However, now that the location of the global trac.ini file needs to be set in the file option in the [inherit] section of each project's trac.ini file, you end up in a situation where there is no trac.ini, and hence no [inherit] section, and no global trac.ini to overwrite the defaults.

I don't know if this is an oversight, or just an annoyance we'll have to live with as a cost of moving to setuptools. I've been thinking about this for a while, but it's hard to think of a one-size-fits-all solution. Maybe an additional argument to trac-admin initenv?

Attachments (0)

Change History (5)

in reply to:  description comment:1 by Christian Boos, 17 years ago

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

Replying to hyuga <hyugaricdeau@gmail.com>:

Maybe an additional argument to trac-admin initenv?

Yes, this is probably the most convenient way, add a -i/--inherit option there.

comment:2 by osimons <simon-code@…>, 17 years ago

This ticket is directly related to #5651 - and could well be solved and closed together:

  • adding an option to trac-admin initenv with documentation
  • changing the Environment.create() logic to actually do the right thing when passing the option (patch available at #5651)

comment:3 by Christian Boos, 17 years ago

Milestone: 0.11.1
Resolution: duplicate
Status: newclosed

Ok, let's take this ticket as a vote for #5651 ;-)

comment:4 by agent209 at yahoo.com, 17 years ago

Resolution: duplicate
Status: closedreopened

It's great you guys closed it for developers, how about users now? I was trying to setup webadmin and got stuck at the point of modifying the global trac.ini which currently doesn't exist on my system. What am I supposed to do? Can you add documentation for this somewhere? Do I have to install the patch? My per-project trac.ini files have settings commented out saying they'll get them from the global trac.ini, so what else may not be working? Now I have no idea if the system is stable, if I should use it at all or what. Some more info for your users would be nice.

in reply to:  4 comment:5 by Hyuga <hyugaricdeau@…>, 17 years ago

Resolution: duplicate
Status: reopenedclosed

Replying to agent209 at yahoo.com:

It's great you guys closed it for developers, how about users now? I was trying to setup webadmin and got stuck at the point of modifying the global trac.ini which currently doesn't exist on my system. What am I supposed to do? Can you add documentation for this somewhere? Do I have to install the patch? My per-project trac.ini files have settings commented out saying they'll get them from the global trac.ini, so what else may not be working? Now I have no idea if the system is stable, if I should use it at all or what. Some more info for your users would be nice.

I think you're a little confused. This ticket does not apply at all to versions ⇐ 0.10.x. It only applies to 0.11. In 0.10.x, depending on your configuration, the global trac.ini should be somewhere like /usr/share/trac/conf/trac.ini. If you want to explicitly set its location, you would do so in trac/siteconfig.py.

Modify Ticket

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