diff options
author | Richard Darst <rkd@zgib.net> | 2009-06-16 00:59:53 (GMT) |
---|---|---|
committer | Richard Darst <rkd@zgib.net> | 2009-06-16 00:59:53 (GMT) |
commit | 323b06f7b643b0ad5b84e7028d23dcbe04c6b78d (patch) | |
tree | 9479000cf53c7bb77c7e9bcbebc020762e20af7a /meeting.py | |
parent | 704abf655c6cf0d049514046ee15abaadf4ac10a (diff) |
BUGFIX - fix code to markup minutes-items.
- relying on the various __dict__ objects was unreliable. I created
my own dict and manually updated it.
darcs-hash:20090616005953-82ea9-2a46fb4eb39e1df9f1c9e603ef28f48e519900dd.gz
Diffstat (limited to 'meeting.py')
-rw-r--r-- | meeting.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -530,8 +530,10 @@ class GenericItem: self.link = os.path.basename(M.logFilename()) self.line = html(self.line) self.anchor = 'l-'+str(self.linenum) - replacements = self.__class__.__dict__ - replacements.update(self.__dict__) + replacements = { } + for name in dir(self): + if name[0] == "_": continue + replacements[name] = getattr(self, name) return """<tr><td><a href='%(link)s#%(anchor)s'>%(time)s</a></td> <td>%(itemtype)s</td><td>%(nick)s</td><td>%(start)s%(line)s%(end)s</td> </tr>"""%replacements |