summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d371cef)
raw | patch | inline | side by side (parent: d371cef)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 9 Sep 2002 06:28:25 +0000 (06:28 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 9 Sep 2002 06:28:25 +0000 (06:28 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1099 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/templating.py | patch | blob | history |
index 9292c49f194433f66a3d12bd28ef7dfbe4d35205..eaeb6de51f79f1aa98d531edc05f3e72a8050a4f 100644 (file)
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):
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('.', ' ')