Skip to content

Commit ccc11e0

Browse files
author
Richard Jones
committed
more doc updates, not so many TODOs any more
1 parent a5b942e commit ccc11e0

File tree

7 files changed

+42
-36
lines changed

7 files changed

+42
-36
lines changed

TODO.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ This file contains items that need doing before the next release:
22

33
Required:
44
- implementing logging for roundup-server, including command-line switches
5-
- fix documentation referring to configuration (config.ini)
6-
- fix documentation referring to customisation using interfaces.py
7-
- fix admin_guide referring to structure of trackers
8-
- add config.ini section descriptions - DONE?
95
- Security review:
106
- write up security model used in classic tracker
117
- ensure classic template actually implements the model detailed

doc/FAQ.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Roundup FAQ
33
===========
44

5-
:Version: $Revision: 1.19 $
5+
:Version: $Revision: 1.20 $
66

77
.. contents::
88

@@ -34,9 +34,11 @@ How do I put Roundup behind Apache
3434

3535
We have a project (foo) running on ``tracker.example:8080``.
3636
We want ``http://tracker.example/issues`` to use the roundup server, so we
37-
set that up on port 8080 on ``tracker.example`` with the ``config.py`` line::
37+
set that up on port 8080 on ``tracker.example`` with the ``config.ini`` line::
3838

39-
TRACKER_WEB = 'http://tracker.example/issues/'
39+
[tracker]
40+
...
41+
web = 'http://tracker.example/issues/'
4042

4143
We have a "foo_issues" tracker and we run the server with::
4244

@@ -172,8 +174,8 @@ If you're using IE then install Mozilla and try again ;^)
172174
I keep getting logged out
173175
~~~~~~~~~~~~~~~~~~~~~~~~~
174176

175-
Make sure that the TRACKER_WEB setting in your tracker's config.py is set
176-
to the URL of the tracker.
177+
Make sure that the ``tracker`` -> ``web`` setting in your tracker's
178+
config.ini is set to the URL of the tracker.
177179

178180

179181
How is sorting performed, and why does it seem to fail sometimes?

doc/admin_guide.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Administration Guide
33
====================
44

5-
:Version: $Revision: 1.13 $
5+
:Version: $Revision: 1.14 $
66

77
.. contents::
88

@@ -36,28 +36,28 @@ There's two "installations" that we talk about when using Roundup:
3636
"inst" (and "init") commands, you're creating a new Roundup tracker. This
3737
installs configuration files, HTML templates, detector code and a new
3838
database. You have complete control over where this stuff goes through
39-
both choosing your "tracker home" and the DATABASE variable in
40-
config.py.
39+
both choosing your "tracker home" and the ``main`` -> ``database`` variable
40+
in the tracker's config.ini.
4141

4242

4343
Configuring Roundup's Logging of Messages For Sysadmins
4444
=======================================================
4545

46-
You may configure where Roundup logs messages in your tracker's config.py
47-
file. Roundup will use the standard Python logging implementation when
48-
available. If not, then a very basic logging implementation will be used
46+
You may configure where Roundup logs messages in your tracker's config.ini
47+
file. Roundup will use the standard Python (2.3+) logging implementation
48+
when available. If not, then a very basic logging implementation will be used
4949
(see BasicLogging in the roundup.rlog module for details).
5050

51-
Configuration for "logging" module:
51+
Configuration for standard "logging" module:
5252
- tracker configuration file specifies the location of a logging
53-
configration file as ``LOGGING_CONFIG``
53+
configration file as ``logging`` -> ``config``
5454
- ``roundup-server`` specifies the location of a logging configuration
5555
file on the command line
5656
Configuration for "BasicLogging" implementation:
5757
- tracker configuration file specifies the location of a log file
58-
``LOGGING_FILENAME``
58+
``logging`` -> ``filename``
5959
- tracker configuration file specifies the level to log to as
60-
``LOGGING_LEVEL``
60+
``logging`` -> ``level``
6161
- ``roundup-server`` specifies the location of a log file on the command
6262
line
6363
- ``roundup-server`` specifies the level to log to on the command line

doc/customizing.txt

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.157 $
5+
:Version: $Revision: 1.158 $
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
@@ -39,13 +39,15 @@ Trackers have the following structure:
3939
=================== ========================================================
4040
Tracker File Description
4141
=================== ========================================================
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.
4646
db/ Holds the tracker's database
4747
db/files/ Holds the tracker's upload files and messages
48+
db/backend_name Names the database back-end for the tracker
4849
detectors/ Auditors and reactors for this tracker
50+
extensions/ Additional web actions and templating utilities.
4951
html/ Web interface templates, images and style sheets
5052
=================== ========================================================
5153

@@ -1222,8 +1224,8 @@ Default templates
12221224
-----------------
12231225

12241226
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'``.
12271229

12281230
Most customisation of the web view can be done by modifying the
12291231
templates in the tracker ``'html'`` directory. There are several types
@@ -1534,7 +1536,7 @@ The following variables are available to templates.
15341536
The current CGI form information as a mapping of form argument name
15351537
to value
15361538
**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
15381540
file (eg. TRACKER_NAME, etc.)
15391541
**db**
15401542
The current database, used to access arbitrary database items.
@@ -3834,11 +3836,13 @@ First up, we create the new Role and Permission structure in
38343836
db.security.addPermissionToRole('Provisional User', p)
38353837

38363838

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
38383840
users, replacing the existing ``'User'`` values::
38393841

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'
38423846

38433847
Finally we add a new *auditor* to the ``detectors`` directory called
38443848
``provisional_user_auditor.py``::

doc/developers.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Developing Roundup
33
==================
44

5-
:Version: $Revision: 1.13 $
5+
:Version: $Revision: 1.14 $
66

77
.. note::
88
The intended audience of this document is the developers of the core
@@ -122,7 +122,7 @@ of ways, depending on what it is you're testing:
122122
This variable replaces the older HYPERDBDEBUG environment var.
123123

124124
2. If you're testing a particular tracker, then set the logging level in
125-
your tracker's ``config.py``.
125+
your tracker's ``config.ini``.
126126

127127

128128
Internationalization Notes

doc/installation.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,12 @@ mysql Fast Many Needs install/admin (MySQLdb_)
298298
If you are choosing from these two, please select sqlite.
299299
**postgresql**
300300
Backend for popular RDBMS PostgreSQL. You must read doc/postgresql.txt for
301-
additional installation steps and requirements.
301+
additional installation steps and requirements. You must also configure
302+
the ``rdbms`` section of your tracker's ``config.ini``
302303
**mysql**
303304
Backend for popular RDBMS MySQL. You must read doc/mysql.txt for additional
304-
installation steps and requirements.
305+
installation steps and requirements. You must also configure the ``rdbms``
306+
section of your tracker's ``config.ini``
305307

306308
You may defer your decision by setting your tracker up with the anydbm
307309
backend (which is guaranteed to be available) and switching to one of the
@@ -595,7 +597,7 @@ If you're using the mysql or postgresql backend then you'll need to ensure
595597
that the tracker user has appropriate permissions to create/modify the
596598
database. If you're using roundup.cgi, the apache user needs permissions
597599
to modify the database. Alternatively, explicitly specify a database login
598-
in ``POSTRGRESQL_DATABASE`` or ``MYSQL_DATABASE`` in ``config.py``.
600+
in ``rdbms`` -> ``user`` and ``password`` in ``config.ini``.
599601

600602
An alternative to the above is to create a new user who has the sole
601603
responsibility of running roundup. This user:

doc/mysql.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
MySQL Backend
33
=============
44

5-
:version: $Revision: 1.11 $
5+
:version: $Revision: 1.12 $
66

77
This notes detail the MySQL backend for the Roundup issue tracker.
88

@@ -25,6 +25,7 @@ to install:
2525

2626
__ http://bugs.mysql.com/bug.php?id=1810
2727

28+
2829
Running the MySQL tests
2930
=======================
3031

@@ -62,3 +63,4 @@ just::
6263

6364
and all will be better (note that on some systems, ``mysql`` is spelt
6465
``mysqld``).
66+

0 commit comments

Comments
 (0)