Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/meeting.py
diff options
context:
space:
mode:
authorRichard Darst <rkd@zgib.net>2009-06-16 00:59:53 (GMT)
committer Richard Darst <rkd@zgib.net>2009-06-16 00:59:53 (GMT)
commit323b06f7b643b0ad5b84e7028d23dcbe04c6b78d (patch)
tree9479000cf53c7bb77c7e9bcbebc020762e20af7a /meeting.py
parent704abf655c6cf0d049514046ee15abaadf4ac10a (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.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/meeting.py b/meeting.py
index 090f0c8..2512d66 100644
--- a/meeting.py
+++ b/meeting.py
@@ -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