freebsd-ports/www/trac-keywords/files/patch-web_ui.py
Martin Wilke a0716f66e3 This plugin allows for validating custom fields as dates in tickets.
WWW: http://trac-hacks.org/wiki/DateFieldPlugin

PR:		ports/150215
Submitted by:	Eygene Ryabinkin <rea-fbsd at codelabs.ru>
2010-09-11 11:23:24 +00:00

12 lines
474 B
Python

--- trackeywords/web_ui.py.orig 2009-09-09 17:18:34.000000000 +0400
+++ trackeywords/web_ui.py 2010-04-05 11:32:50.000000000 +0400
@@ -80,7 +80,8 @@
# changed to Genshi signature
def post_process_request(self, req, template, data, content_type):
- data['keywords'] = self._get_keywords()
+ if data is not None:
+ data['keywords'] = self._get_keywords()
return (template, data, content_type)
### ITemplateProvider methods