Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Custom default trac.ini

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


redetin at gmail

Apr 20, 2008, 9:37 PM

Post #1 of 6 (170 views)
Permalink
Custom default trac.ini

Is there way to provide custom default trac.ini that would be used every
time I setup new environment?

Mostly I would like to setup default logo, url, smtp and few other
options that would be used to new environments as well.

--
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[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


olaf.meeuwissen at avasys

Apr 20, 2008, 9:56 PM

Post #2 of 6 (160 views)
Permalink
Re: Custom default trac.ini [In reply to]

Jani Tiainen <redetin[at]gmail.com> 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[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


redetin at gmail

Apr 21, 2008, 11:00 PM

Post #3 of 6 (146 views)
Permalink
Re: Custom default trac.ini [In reply to]

On Apr 21, 7:56 am, Olaf Meeuwissen <olaf.meeuwis...@avasys.jp> wrote:
> Jani Tiainen <rede...@gmail.com> 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[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


kantrn at rpi

Apr 21, 2008, 11:08 PM

Post #4 of 6 (146 views)
Permalink
Re: Custom default trac.ini [In reply to]

Jani Tiainen wrote:
>
>
> On Apr 21, 7:56 am, Olaf Meeuwissen <olaf.meeuwis...@avasys.jp> wrote:
>> Jani Tiainen <rede...@gmail.com> 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
Attachments: signature.asc (0.24 KB)


redetin at gmail

Apr 21, 2008, 11:16 PM

Post #5 of 6 (146 views)
Permalink
Re: Custom default trac.ini [In reply to]

Noah Kantrowitz kirjoitti:
> Jani Tiainen wrote:
>>
>>
>> On Apr 21, 7:56 am, Olaf Meeuwissen <olaf.meeuwis...@avasys.jp> wrote:
>>> Jani Tiainen <rede...@gmail.com> 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]
smtp_from=$myprefix$-trac[at]example.com
smtp_replyto=$myprefix$-trac[at]example.com

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[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


JustinBouldin at gmail

May 15, 2008, 8:38 AM

Post #6 of 6 (70 views)
Permalink
Re: Custom default trac.ini [In reply to]

> 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 = <set in global trac.ini>

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 <rede...@gmail.com> wrote:
> Noah Kantrowitz kirjoitti:
>
>
>
>
>
> > Jani Tiainen wrote:
>
> >> On Apr 21, 7:56 am, Olaf Meeuwissen <olaf.meeuwis...@avasys.jp> wrote:
> >>> Jani Tiainen <rede...@gmail.com> 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]
> smtp_from=$myprefix$-t...@example.com
> smtp_replyto=$myprefix$-t...@example.com
>
> 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[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.