Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 1254:77920c42aeb9
Expose the tracker config as a variable for templating
Homogenise newlines in CGI text submissions [SF#614072]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 09 Oct 2002 01:00:41 +0000 |
| parents | 8dd4f736370b |
| children | de0f879f995d |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Tue Oct 08 07:28:34 2002 +0000 +++ b/roundup/cgi/templating.py Wed Oct 09 01:00:41 2002 +0000 @@ -126,10 +126,10 @@ - methods for easy filterspec link generation - *user*, the current user node as an HTMLItem instance - *form*, the current CGI form information as a FieldStorage - *tracker* - The current tracker + *config* + The current tracker config. *db* - The current database, through which db.config may be reached. + The current database, used to access arbitrary database items. ''' def getContext(self, client, classname, request): c = { @@ -137,6 +137,7 @@ 'nothing': None, 'request': request, 'db': HTMLDatabase(client), + 'config': client.instance.config, 'tracker': client.instance, 'utils': TemplatingUtils(client), 'templates': Templates(client.instance.config.TEMPLATES),
