Skip to content

Commit 32e2bd0

Browse files
author
Richard Jones
committed
merge from maint-0-5
1 parent 572cb70 commit 32e2bd0

File tree

2 files changed

+69
-17
lines changed

2 files changed

+69
-17
lines changed

doc/customizing.txt

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

5-
:Version: $Revision: 1.51 $
5+
:Version: $Revision: 1.52 $
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
@@ -52,18 +52,43 @@ html/ Web interface templates, images and style sheets
5252
Tracker Configuration
5353
=====================
5454

55-
The config.py located in your tracker home contains the basic
56-
configuration for the web and e-mail components of roundup's interfaces. This
57-
file is a Python module. The configuration variables available are:
55+
The config.py located in your tracker home contains the basic configuration
56+
for the web and e-mail components of roundup's interfaces. As the name
57+
suggests, this file is a Python module. This means that any valid python
58+
expression may be used in the file. Mostly though, you'll be setting the
59+
configuration variables to string values. Python string values must be quoted
60+
with either single or double quotes::
61+
62+
'this is a string'
63+
"this is also a string - use it when you have a 'single quote' in the value"
64+
this is not a string - it's not quoted
65+
66+
Python strings may use formatting that's almost identical to C string
67+
formatting. The ``%`` operator is used to perform the formatting, like so::
68+
69+
'roundup-admin@%s'%MAIL_DOMAIN
70+
71+
this will create a string ``'[email protected]'`` if
72+
MAIL_DOMAIN is set to ``'tracker.domain.example'``.
73+
74+
You'll also note some values are set to::
75+
76+
os.path.join(TRACKER_HOME, 'db')
77+
78+
or similar. This creates a new string which holds the path to the "db"
79+
directory in the TRACKER_HOME directory. This is just a convenience so if the
80+
TRACKER_HOME changes you don't have to edit multiple valoues.
81+
82+
The configuration variables available are:
5883

5984
**TRACKER_HOME** - ``os.path.split(__file__)[0]``
6085
The tracker home directory. The above default code will automatically
61-
determine the tracker home for you.
86+
determine the tracker home for you, so you can just leave it alone.
6287

6388
**MAILHOST** - ``'localhost'``
6489
The SMTP mail host that roundup will use to send e-mail.
6590

66-
**MAIL_DOMAIN** - ``'your.tracker.email.domain.example'``
91+
**MAIL_DOMAIN** - ``'tracker.domain.example'``
6792
The domain name used for email addresses.
6893

6994
**DATABASE** - ``os.path.join(TRACKER_HOME, 'db')``
@@ -1428,18 +1453,38 @@ by activity, arranged in descending order. The filter section shows filters for
14281453
the "status" and "topic" properties, and the table includes columns for the
14291454
"title", "status", and "fixer" properties.
14301455

1431-
Filtering of indexes
1432-
~~~~~~~~~~~~~~~~~~~~
1433-
1434-
TODO
1435-
14361456
Searching Views
14371457
---------------
14381458

14391459
This is one of the class context views. The template used is typically
1440-
"*classname*.search".
1460+
"*classname*.search". The form on this page should have "search" as its
1461+
``:action`` variable. The "search" action:
1462+
1463+
- sets up additional filtering, as well as performing indexed text searching
1464+
- sets the ``:filter`` variable correctly
1465+
- saves the query off if ``:query_name`` is set.
1466+
1467+
The searching page should lay out any fields that you wish to allow the user
1468+
to search one. If your schema contains a large number of properties, you
1469+
should be wary of making all of those properties available for searching, as
1470+
this can cause confusion. If the additional properties are Strings, consider
1471+
having their value indexed, and then they will be searchable using the full
1472+
text indexed search. This is both faster, and more useful for the end user.
1473+
1474+
The two special form values on search pages which are handled by the "search"
1475+
action are:
1476+
1477+
:search_text
1478+
Text to perform a search of the text index with. Results from that search
1479+
will be used to limit the results of other filters (using an intersection
1480+
operation)
1481+
:query_name
1482+
If supplied, the search parameters (including :search_text) will be saved
1483+
off as a the query item and registered against the user's queries property.
1484+
Note that the *classic* template schema has this ability, but the *minimal*
1485+
template schema does not.
1486+
14411487

1442-
TODO
14431488

14441489
Item Views
14451490
----------

doc/installation.txt

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

5-
:Version: $Revision: 1.30 $
5+
:Version: $Revision: 1.31 $
66

77
.. contents::
88

@@ -118,9 +118,14 @@ Basic Installation Steps
118118

119119
You will now be directed to edit the tracker configuration and
120120
initial schema. At a minimum, you must set ``MAILHOST``,
121-
``TRACKER_WEB``, ``MAIL_DOMAIN`` and ``ADMIN_EMAIL``. If you just want
122-
to get set up to test things quickly, you can even just set the
123-
TRACKER_WEB variable to::
121+
``TRACKER_WEB``, ``MAIL_DOMAIN`` and ``ADMIN_EMAIL``. Note that the
122+
configuration file uses Python syntax, so almost every value must be
123+
``'quoted'`` using single or double quotes. If you get stuck, and get
124+
configuration file errors, then see the `tracker configuration`_ section
125+
of the `customisation documentation`_.
126+
127+
If you just want to get set up to test things quickly, you can even
128+
just set the TRACKER_WEB variable to::
124129

125130
TRACKER_WEB = 'http://localhost:8080/support/'
126131

@@ -417,6 +422,8 @@ Next: `Getting Started`_
417422
.. _`table of contents`: index.html
418423
.. _`getting started`: getting_started.html
419424
.. _`roundup specification`: spec.html
425+
.. _`tracker configuration`: customizing.html#tracker-configuration
426+
.. _`customisation documentation`: customizing.html
420427
.. _`customising roundup`: customizing.html
421428
.. _`upgrading document`: upgrading.html
422429
.. _`maintenance documentation`: maintenance.html

0 commit comments

Comments
 (0)