Skip to content

Commit 7bb31e0

Browse files
author
Richard Jones
committed
bugfix, added some doc
1 parent 7201709 commit 7bb31e0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

roundup/cgi/templating.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,11 @@ def hasPermission(self, role, classname=_marker):
591591
class HTMLProperty:
592592
''' String, Number, Date, Interval HTMLProperty
593593
594+
Hase useful attributes:
595+
596+
_name the name of the property
597+
_value the value of the property if any
598+
594599
A wrapper object which may be stringified for the plain() behaviour.
595600
'''
596601
def __init__(self, client, nodeid, prop, name, value):
@@ -642,7 +647,7 @@ def multiline(self, escape=0, rows=5, cols=40):
642647

643648
def email(self, escape=1):
644649
''' fudge email '''
645-
if self.value is None: value = ''
650+
if self._value is None: value = ''
646651
else: value = str(self._value)
647652
value = value.replace('@', ' at ')
648653
value = value.replace('.', ' ')

0 commit comments

Comments
 (0)