Simplify multiple installations with shared environments (#43)

see Plan Env Inheritance for an overview

Switching between several trac versions should be simplified, even if those are pulled from the SVN.

After installing trac, the shared directories are entered within

/trac/siteconfig.py

__default_conf_dir__ = 'D:\\trac\\conf'
__default_templates_dir__ = 'D:\\trac\\templates'
__default_htdocs_dir__ = 'D:\\trac\\htdocs'
__default_wiki_dir__ = 'D:\\trac\\wiki-default'
__default_macros_dir__ = 'D:\\trac\\wiki-macros'
__default_plugins_dir__ = 'D:\\trac\\plugins'

It would be simpler to declare just one entry:

shared_dir = 'D:
trac'

and to derive the other entries from this.

specific entries can still exist, in order to point to a different location:

default_plugins_dir = 'E:
trac
somewhere
plugins'

The shared_dir should be by default set to '..\', which would be the first step to make an svn co to work immediately without further steps.

Implementation:

  • RFC on trac.devel  see thread
  • Provide patch against 0.11dev
    • shared_dir default should be hardcoded

Change History

Changed 5 years ago by lazaridis_com

  • status changed from new to closed
  • resolution set to wontfix

Changed 5 years ago by lazaridis_com

  • milestone changed from release 0.1 to env-inheritance

Changed 5 years ago by lazaridis_com

  • milestone changed from <trac.ticket.model.Milestone object at 0x427e47ac> to release 0.1

Changed 5 years ago by lazaridis_com

  • milestone changed from rework to <trac.ticket.model.Milestone object at 0x427e47ac>

Milestone rework deleted

Changed 5 years ago by lazaridis_com

  • description modified (diff)

Changed 5 years ago by lazaridis_com

Changed 5 years ago by lazaridis_com

  • description modified (diff)

Changed 5 years ago by lazaridis_com

remaining issue:

Only the shared-dir should be configured and written to the siteconfig.py

__shared_dir__ = 'D:\\trac'

This way changing to another shared-directory needs only a change to 1 line, instead of similar 6 lines (redundancy).

Changed 5 years ago by lazaridis_com

trac default behaviour covers already the needs:

if no "siteconfig.py" is available, shared dirs are assumed within '../' (hardcoded), see within  source

Quick Comment
Clarity
Quality
Indentifying

lazaridis_com - 5 years ago

  • status changed from new to closed
  • resolution set to wontfix

lazaridis_com - 5 years ago

  • milestone changed from release 0.1 to env-inheritance

lazaridis_com - 5 years ago

  • milestone changed from <trac.ticket.model.Milestone object at 0x427e47ac> to release 0.1

lazaridis_com - 5 years ago

  • milestone changed from rework to <trac.ticket.model.Milestone object at 0x427e47ac>

Milestone rework deleted

lazaridis_com - 5 years ago

  • description modified (diff)

lazaridis_com - 5 years ago

lazaridis_com - 5 years ago

  • description modified (diff)

lazaridis_com - 5 years ago

remaining issue:

Only the shared-dir should be configured and written to the siteconfig.py

__shared_dir__ = 'D:\\trac'

This way changing to another shared-directory needs only a change to 1 line, instead of similar 6 lines (redundancy).

lazaridis_com - 5 years ago

trac default behaviour covers already the needs:

if no "siteconfig.py" is available, shared dirs are assumed within '../' (hardcoded), see within  source

By Doc Manager
Label
Parent Id
Menu Position
Menu Delimiter
Title
Root Id
private
By Team
Φάση
Προτεραιότητα
Keywords
Διαχειριστής
Next Actor
Last Actor
By Reporter
Αναφορέας
Τύπος
Τομέας
Έκδοση
Action
as closed