Opened 17 years ago
Closed 17 years ago
#5372 closed defect (duplicate)
Chicken-egg problem regarding global trac.ini and default values
Reported by: | 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)
comment:1 by , 17 years ago
Component: | general → trac-admin |
---|---|
Owner: | changed from | to
comment:2 by , 17 years ago
comment:3 by , 17 years ago
Milestone: | 0.11.1 |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Ok, let's take this ticket as a vote for #5651 ;-)
follow-up: 5 comment:4 by , 17 years ago
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
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.
comment:5 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
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
.
Replying to hyuga <hyugaricdeau@gmail.com>:
Yes, this is probably the most convenient way, add a
-i/--inherit
option there.