Skip to content

Commit 2ad1b13

Browse files
author
Richard Jones
committed
document extending config
1 parent cba5e7b commit 2ad1b13

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

doc/customizing.txt

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.212 $
5+
:Version: $Revision: 1.213 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -347,6 +347,26 @@ variables not in the "main" section are referred to using their section and
347347
name, so "domain" in the section "mail" becomes MAIL_DOMAIN. The
348348
configuration variables available are:
349349

350+
Extending the configuration file
351+
--------------------------------
352+
353+
You can't add new variables to the config.ini file in the tracker home but
354+
you can add two new config.ini files:
355+
356+
- a config.ini in the ``extensions`` directory will be loaded and attached
357+
to the config variable as "ext".
358+
- a config.ini in the ``detectors`` directory will be loaded and attached
359+
to the config variable as "detectors".
360+
361+
For example, the following in ``detectors/config.ini``::
362+
363+
[main]
364+
qa_recipients = [email protected]
365+
366+
is accessible as::
367+
368+
db.config.detectors['QA_RECIPIENTS']
369+
350370

351371
Tracker Schema
352372
==============

0 commit comments

Comments
 (0)