diff roundup/cgi/templating.py @ 1080:24c9e81fce85

bugfix, added some doc
author Richard Jones <richard@users.sourceforge.net>
date Mon, 09 Sep 2002 06:28:25 +0000
parents 04b44df7af1d
children fa7df238e2d4
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Mon Sep 09 05:28:48 2002 +0000
+++ b/roundup/cgi/templating.py	Mon Sep 09 06:28:25 2002 +0000
@@ -591,6 +591,11 @@
 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 @@
 
     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('.', ' ')

Roundup Issue Tracker: http://roundup-tracker.org/