|
2 | 2 | Customising Roundup |
3 | 3 | =================== |
4 | 4 |
|
5 | | -:Version: $Revision: 1.157 $ |
| 5 | +:Version: $Revision: 1.158 $ |
6 | 6 |
|
7 | 7 | .. This document borrows from the ZopeBook section on ZPT. The original is at: |
8 | 8 | http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx |
@@ -39,13 +39,15 @@ Trackers have the following structure: |
39 | 39 | =================== ======================================================== |
40 | 40 | Tracker File Description |
41 | 41 | =================== ======================================================== |
42 | | -config.py Holds the basic `tracker configuration`_ |
43 | | -dbinit.py Holds the `tracker schema`_ |
44 | | -interfaces.py Defines the Web and E-Mail interfaces for the tracker |
45 | | -select_db.py Selects the database back-end for the tracker |
| 42 | +config.ini Holds the basic `tracker configuration`_ |
| 43 | +schema.py Holds the `tracker schema`_ |
| 44 | +initial_data.py Holds any data to be entered into the database when the |
| 45 | + tracker is initialised. |
46 | 46 | db/ Holds the tracker's database |
47 | 47 | db/files/ Holds the tracker's upload files and messages |
| 48 | +db/backend_name Names the database back-end for the tracker |
48 | 49 | detectors/ Auditors and reactors for this tracker |
| 50 | +extensions/ Additional web actions and templating utilities. |
49 | 51 | html/ Web interface templates, images and style sheets |
50 | 52 | =================== ======================================================== |
51 | 53 |
|
@@ -1222,8 +1224,8 @@ Default templates |
1222 | 1224 | ----------------- |
1223 | 1225 |
|
1224 | 1226 | The default templates are html4 compliant. If you wish to change them to be |
1225 | | -xhtml compliant, you'll need to change the ``HTML_VERSION`` configuration |
1226 | | -variable in ``config.py`` to ``'xhtml'`` instead of ``'html4'``. |
| 1227 | +xhtml compliant, you'll need to change the ``html_version`` configuration |
| 1228 | +variable in ``config.ini`` to ``'xhtml'`` instead of ``'html4'``. |
1227 | 1229 |
|
1228 | 1230 | Most customisation of the web view can be done by modifying the |
1229 | 1231 | templates in the tracker ``'html'`` directory. There are several types |
@@ -1534,7 +1536,7 @@ The following variables are available to templates. |
1534 | 1536 | The current CGI form information as a mapping of form argument name |
1535 | 1537 | to value |
1536 | 1538 | **config** |
1537 | | - This variable holds all the values defined in the tracker config.py |
| 1539 | + This variable holds all the values defined in the tracker config.ini |
1538 | 1540 | file (eg. TRACKER_NAME, etc.) |
1539 | 1541 | **db** |
1540 | 1542 | The current database, used to access arbitrary database items. |
@@ -3834,11 +3836,13 @@ First up, we create the new Role and Permission structure in |
3834 | 3836 | db.security.addPermissionToRole('Provisional User', p) |
3835 | 3837 |
|
3836 | 3838 |
|
3837 | | -Then in the ``config.py`` we change the Role assigned to newly-registered |
| 3839 | +Then in the ``config.ini`` we change the Role assigned to newly-registered |
3838 | 3840 | users, replacing the existing ``'User'`` values:: |
3839 | 3841 |
|
3840 | | - NEW_WEB_USER_ROLES = 'Provisional User' |
3841 | | - NEW_EMAIL_USER_ROLES = 'Provisional User' |
| 3842 | + [main] |
| 3843 | + ... |
| 3844 | + new_web_user_roles = 'Provisional User' |
| 3845 | + new_email_user_roles = 'Provisional User' |
3842 | 3846 |
|
3843 | 3847 | Finally we add a new *auditor* to the ``detectors`` directory called |
3844 | 3848 | ``provisional_user_auditor.py``:: |
|
0 commit comments