From 3a30f92e6a9244dbf9e60cafe12833e6ca4bcfc0 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 9 Sep 2002 06:28:25 +0000 Subject: [PATCH] bugfix, added some doc git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1099 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/templating.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 9292c49..eaeb6de 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -591,6 +591,11 @@ class HTMLUser(HTMLItem): class HTMLProperty: ''' String, Number, Date, Interval HTMLProperty + Hase useful attributes: + + _name the name of the property + _value the value of the property if any + A wrapper object which may be stringified for the plain() behaviour. ''' def __init__(self, client, nodeid, prop, name, value): @@ -642,7 +647,7 @@ class StringHTMLProperty(HTMLProperty): def email(self, escape=1): ''' fudge email ''' - if self.value is None: value = '' + if self._value is None: value = '' else: value = str(self._value) value = value.replace('@', ' at ') value = value.replace('.', ' ') -- 2.30.2