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

martin.v.loewis python-checkins at python.org
Sun Mar 15 23:03:50 CET 2009


Author: martin.v.loewis
Date: Sun Mar 15 23:03:50 2009
New Revision: 70401

Log:
Reapply r62493:
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	Sun Mar 15 23:03:50 2009
@@ -1347,14 +1347,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