Mercurial > p > roundup > code
comparison roundup/cgi/templating.py @ 4466:f1fe6fd0aa61
Multilinks can be filtered by combining elements with AND, OR and NOT now.
A javascript gui was added for "keywords", see issue2550648.
Developed by Sascha Teichmann; funded by Intevation. (Bernhard Reiter)
| author | Bernhard Reiter <Bernhard.Reiter@intevation.de> |
|---|---|
| date | Mon, 08 Nov 2010 16:21:02 +0000 |
| parents | 1bd86e82422b |
| children | 9bbf3758c16a |
comparison
equal
deleted
inserted
replaced
| 4465:605f31a596b8 | 4466:f1fe6fd0aa61 |
|---|---|
| 24 import calendar, textwrap | 24 import calendar, textwrap |
| 25 | 25 |
| 26 from roundup import hyperdb, date, support | 26 from roundup import hyperdb, date, support |
| 27 from roundup import i18n | 27 from roundup import i18n |
| 28 from roundup.i18n import _ | 28 from roundup.i18n import _ |
| 29 | |
| 30 from KeywordsExpr import render_keywords_expression_editor | |
| 29 | 31 |
| 30 try: | 32 try: |
| 31 import cPickle as pickle | 33 import cPickle as pickle |
| 32 except ImportError: | 34 except ImportError: |
| 33 import pickle | 35 import pickle |
| 2861 raise AttributeError, name | 2863 raise AttributeError, name |
| 2862 if not self.client.instance.templating_utils.has_key(name): | 2864 if not self.client.instance.templating_utils.has_key(name): |
| 2863 raise AttributeError, name | 2865 raise AttributeError, name |
| 2864 return self.client.instance.templating_utils[name] | 2866 return self.client.instance.templating_utils[name] |
| 2865 | 2867 |
| 2868 def keywords_expressions(self, request): | |
| 2869 return render_keywords_expression_editor(request) | |
| 2870 | |
| 2866 def html_calendar(self, request): | 2871 def html_calendar(self, request): |
| 2867 """Generate a HTML calendar. | 2872 """Generate a HTML calendar. |
| 2868 | 2873 |
| 2869 `request` the roundup.request object | 2874 `request` the roundup.request object |
| 2870 - @template : name of the template | 2875 - @template : name of the template |
