Hi All,

I was wondering whether we could improve the base_url option in trac.ini.
It has becomed a (almost?) mandatory setting, but trac-admin never
sets it and trac never reports an error (not even a warning in the log
message) when it is not defined.

When this parameter is not defined, some weird issues can occur and it
can be tricky to find that the root cause comes from a missing or
invalid base_url value.

I'm not sure to understand *when* this setting is actually needed, or
as another way to say it, on which kind of environments it is
mandatory or optional.

I'm not sure to understand how it is related to other similar settings
such as the TracUriRoot option in mod_python configuration.

Anyway, would it make sense to add some sanity checks to validate that
at least one option that defines the base URL is set; the best option
would be to have a single option to define the base URL, whichever the
way Trac is run (tracd, mod_python, CGI, etc.).

As a subsidiary question, what is the best way to retrieve the base
URL in a plugin (in Trac 0.11)?

Thanks,
Manu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to