[Trac] Re: Custom default trac.ini
> New feature in 0.11. There is no good way to do this in 0.10. I was able to setup a global conf in 10.4. I couldn't get the [inherit] file='global.ini' directive to work in the site's ini file, but I found that if you put your global options in $PREFIX/share/trac/conf/trac.ini they will be inherited by default, without yu having to specify anything. Also, when you create a new site with 'trac-admin initenv' it will automatically read this file and replace any of the normal lines in the default trac.ini with something like: # smtp_from = Wherever appropriate. > It was still unclear that does it copy content of that in file... Sadly no. That would be a bit more useful, so that you could see and change your default settings without referring back to the global.ini, but then any changes to the global config would not be reflected in the site specific config, which would have all the values loaded as they were at the time of creation. Sort of messy. Hope that helps... On Apr 22, 1:16 am, Jani Tiainen <[EMAIL PROTECTED]> wrote: > Noah Kantrowitz kirjoitti: > > > > > > > Jani Tiainen wrote: > > >> On Apr 21, 7:56 am, Olaf Meeuwissen <[EMAIL PROTECTED]> wrote: > >>> Jani Tiainen <[EMAIL PROTECTED]> writes: > Is there way to provide custom default trac.ini that would be used > every > time I setup new environment? > >>> Create that default trac.ini as your global ini file and use the > >>> --inherit option to trac-admin. See: > > >>> http://trac.edgewall.com/wiki/TracIni#GlobalConfiguration > > Mostly I would like to setup default logo, url, smtp and few other > options that would be used to new environments as well. > >>> Hope this helps, > > >> Can't get this working (Using Trac 0.10.4). > > >> There isn't any helpful information in Trac manual nor site about > >> location of this option. > > > New feature in 0.11. There is no good way to do this in 0.10. > > Good to know. It would be a bit more helpful to mark in that particular > wikipage like some other option "since 0.11" to avoid confusion. > > It was still unclear that does it copy content of that in file, so if I > provide option or does it merely add [inherit] section to generated > trac.ini with given path? > > Because what I would like to do is something like this: > > [notification] > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > And later on replace occurences of '$myprefix$' by with some arbitary > piece of text. > > -- > Jani Tiainen- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Custom default trac.ini
Noah Kantrowitz kirjoitti: > Jani Tiainen wrote: >> >> >> On Apr 21, 7:56 am, Olaf Meeuwissen <[EMAIL PROTECTED]> wrote: >>> Jani Tiainen <[EMAIL PROTECTED]> writes: Is there way to provide custom default trac.ini that would be used every time I setup new environment? >>> Create that default trac.ini as your global ini file and use the >>> --inherit option to trac-admin. See: >>> >>> http://trac.edgewall.com/wiki/TracIni#GlobalConfiguration >>> Mostly I would like to setup default logo, url, smtp and few other options that would be used to new environments as well. >>> Hope this helps, >> >> Can't get this working (Using Trac 0.10.4). >> >> There isn't any helpful information in Trac manual nor site about >> location of this option. > > New feature in 0.11. There is no good way to do this in 0.10. Good to know. It would be a bit more helpful to mark in that particular wikipage like some other option "since 0.11" to avoid confusion. It was still unclear that does it copy content of that in file, so if I provide option or does it merely add [inherit] section to generated trac.ini with given path? Because what I would like to do is something like this: [notification] [EMAIL PROTECTED] [EMAIL PROTECTED] And later on replace occurences of '$myprefix$' by with some arbitary piece of text. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Custom default trac.ini
Jani Tiainen wrote: On Apr 21, 7:56 am, Olaf Meeuwissen <[EMAIL PROTECTED]> wrote: Jani Tiainen <[EMAIL PROTECTED]> writes: Is there way to provide custom default trac.ini that would be used every time I setup new environment? Create that default trac.ini as your global ini file and use the --inherit option to trac-admin. See: http://trac.edgewall.com/wiki/TracIni#GlobalConfiguration Mostly I would like to setup default logo, url, smtp and few other options that would be used to new environments as well. Hope this helps, Can't get this working (Using Trac 0.10.4). There isn't any helpful information in Trac manual nor site about location of this option. New feature in 0.11. There is no good way to do this in 0.10. --Noah signature.asc Description: OpenPGP digital signature
[Trac] Re: Custom default trac.ini
On Apr 21, 7:56 am, Olaf Meeuwissen <[EMAIL PROTECTED]> wrote: > Jani Tiainen <[EMAIL PROTECTED]> writes: > > Is there way to provide custom default trac.ini that would be used every > > time I setup new environment? > > Create that default trac.ini as your global ini file and use the > --inherit option to trac-admin. See: > > http://trac.edgewall.com/wiki/TracIni#GlobalConfiguration > > > Mostly I would like to setup default logo, url, smtp and few other > > options that would be used to new environments as well. > > Hope this helps, Can't get this working (Using Trac 0.10.4). There isn't any helpful information in Trac manual nor site about location of this option. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Custom default trac.ini
Jani Tiainen <[EMAIL PROTECTED]> writes: > Is there way to provide custom default trac.ini that would be used every > time I setup new environment? Create that default trac.ini as your global ini file and use the --inherit option to trac-admin. See: http://trac.edgewall.com/wiki/TracIni#GlobalConfiguration > Mostly I would like to setup default logo, url, smtp and few other > options that would be used to new environments as well. Hope this helps, -- Olaf Meeuwissen FLOSS Engineer -- AVASYS Corporation FSF Associate Member #1962 sign up at http://member.fsf.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---