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-07-07 20:06:21 (GMT)
committer Richard Darst <rkd@zgib.net>2009-07-07 20:06:21 (GMT)
commitaded36e115745c500c23ae06cfd283298dbddf3a (patch)
tree874aa0a0a8c890ccbd05a0b3d7f4ca93f6ee7f98 /meeting.py
parentcf146c429e093b7cb324fc401016df6551ea87a8 (diff)
Improve mechanisms of encoding
- we now let writers return already-encoded text, this helps in a few cases. darcs-hash:20090707200621-82ea9-e012cd62add13db0c62016414585846a6ed817f7.gz
Diffstat (limited to 'meeting.py')
-rw-r--r--meeting.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meeting.py b/meeting.py
index 34e7e58..02a22f5 100644
--- a/meeting.py
+++ b/meeting.py
@@ -158,8 +158,10 @@ class Config(object):
# If it doesn't, then it's assumed that the write took
# care of writing (or publishing or emailing or wikifying)
# it itself.
+ if isinstance(text, unicode):
+ text = self.enc(text)
if isinstance(text, (str, unicode)):
- self.writeToFile(self.enc(text), rawname+extension)
+ self.writeToFile(text, rawname+extension)
def writeToFile(self, string, filename):
"""Write a given string to a file"""
# The reason we have this method just for this is to proxy