Skip to content

Commit a2d60f0

Browse files
author
Richard Jones
committed
document the STATIC_FILES config var
1 parent d2a8bfd commit a2d60f0

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Fixed:
3030
- fixed RDBMS filter() for no matches from full-text search (sf bug 990778)
3131
- fixed DateHTMLProperty for invalid date entry (sf bug 986538)
3232
- fixed external password source example (sf bug 986601)
33+
- document the STATIC_FILES config var
3334

3435

3536
2004-06-24 0.7.5

doc/customizing.txt

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

5-
:Version: $Revision: 1.143 $
5+
:Version: $Revision: 1.144 $
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
@@ -118,6 +118,11 @@ The configuration variables available are:
118118
This is the directory that the HTML templates reside in. By default they are
119119
in the tracker home.
120120

121+
**STATIC_FILES** - e.g. ``os.path.join(TRACKER_HOME, 'files')``
122+
This *optional* variable defines the directory that static files are served
123+
from (files with the URL ``/@@file/<filename>``). If this is not defined,
124+
then static files are served from the TEMPLATES directory.
125+
121126
**TRACKER_NAME** - ``'Roundup issue tracker'``
122127
A descriptive name for your roundup tracker. This is sent out in e-mails and
123128
appears in the heading of CGI pages.
@@ -243,6 +248,11 @@ tracker is attempted.::
243248
# This is the directory that the HTML templates reside in
244249
TEMPLATES = os.path.join(TRACKER_HOME, 'html')
245250

251+
# Optional: the directory that static files are served from (files with
252+
# the URL /@@file/<filename>). If this is not defined, then static files
253+
# are served from the TEMPLATES directory.
254+
# STATIC_FILES = os.path.join(TRACKER_HOME, 'files')
255+
246256
# A descriptive name for your roundup tracker
247257
TRACKER_NAME = 'Roundup issue tracker'
248258

templates/classic/config.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: config.py,v 1.9 2004-06-08 05:29:18 richard Exp $
18+
# $Id: config.py,v 1.10 2004-07-20 00:15:23 richard Exp $
1919

2020
import os
2121

@@ -48,6 +48,11 @@
4848
# This is the directory that the HTML templates reside in
4949
TEMPLATES = os.path.join(TRACKER_HOME, 'html')
5050

51+
# Optional: the directory that static files are served from (files with the
52+
# URL /@@file/<filename>). If this is not defined, then static files are
53+
# served from the TEMPLATES directory.
54+
# STATIC_FILES = os.path.join(TRACKER_HOME, 'files')
55+
5156
# A descriptive name for your roundup instance
5257
TRACKER_NAME = 'Roundup issue tracker'
5358

templates/minimal/config.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: config.py,v 1.7 2004-06-08 05:29:18 richard Exp $
18+
# $Id: config.py,v 1.8 2004-07-20 00:15:23 richard Exp $
1919

2020
import os
2121

@@ -48,6 +48,11 @@
4848
# This is the directory that the HTML templates reside in
4949
TEMPLATES = os.path.join(TRACKER_HOME, 'html')
5050

51+
# Optional: the directory that static files are served from (files with the
52+
# URL /@@file/<filename>). If this is not defined, then static files are
53+
# served from the TEMPLATES directory.
54+
# STATIC_FILES = os.path.join(TRACKER_HOME, 'files')
55+
5156
# A descriptive name for your roundup instance
5257
TRACKER_NAME = 'Roundup issue tracker'
5358

0 commit comments

Comments
 (0)