[Python-checkins] r62493 - tracker/roundup-src/roundup/cgi/templating.py

martin.v.loewis python-checkins at python.org
Fri Apr 25 08:38:31 CEST 2008


Author: martin.v.loewis
Date: Fri Apr 25 08:38:31 2008
New Revision: 62493
Log:
Add support for unchecked display of properties.
Modified:
 tracker/roundup-src/roundup/cgi/templating.py
Modified: tracker/roundup-src/roundup/cgi/templating.py
==============================================================================
--- tracker/roundup-src/roundup/cgi/templating.py	(original)
+++ tracker/roundup-src/roundup/cgi/templating.py	Fri Apr 25 08:38:31 2008
@@ -1283,14 +1283,14 @@
 """ Render a "hyperlinked" version of the text """
 return self.plain(hyperlink=1)
 
- def plain(self, escape=0, hyperlink=0):
+ def plain(self, escape=0, hyperlink=0, unchecked=0):
 """Render a "plain" representation of the property
 
 - "escape" turns on/off HTML quoting
 - "hyperlink" turns on/off in-text hyperlinking of URLs, email
 addresses and designators
 """
- if not self.is_view_ok():
+ if not self.is_view_ok() and not unchecked:
 return self._('[hidden]')
 
 if self._value is None:


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /