comparison doc/customizing.txt @ 3768:ef5da136cdc5

document extending config
author Richard Jones <richard@users.sourceforge.net>
date Sat, 25 Nov 2006 00:52:18 +0000
parents 9f4dd27ae843
children d41ee0fdae71
comparison
equal deleted inserted replaced
3767:9d93653f8dcb 3768:ef5da136cdc5
1 =================== 1 ===================
2 Customising Roundup 2 Customising Roundup
3 =================== 3 ===================
4 4
5 :Version: $Revision: 1.212 $ 5 :Version: $Revision: 1.213 $
6 6
7 .. This document borrows from the ZopeBook section on ZPT. The original is at: 7 .. This document borrows from the ZopeBook section on ZPT. The original is at:
8 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx 8 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
9 9
10 .. contents:: 10 .. contents::
344 344
345 Configuration variables may be referred to in lower or upper case. In code, 345 Configuration variables may be referred to in lower or upper case. In code,
346 variables not in the "main" section are referred to using their section and 346 variables not in the "main" section are referred to using their section and
347 name, so "domain" in the section "mail" becomes MAIL_DOMAIN. The 347 name, so "domain" in the section "mail" becomes MAIL_DOMAIN. The
348 configuration variables available are: 348 configuration variables available are:
349
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@example.com
365
366 is accessible as::
367
368 db.config.detectors['QA_RECIPIENTS']
349 369
350 370
351 Tracker Schema 371 Tracker Schema
352 ============== 372 ==============
353 373

Roundup Issue Tracker: http://roundup-tracker.org/