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 04:11:10 (GMT)
committer Richard Darst <rkd@zgib.net>2009-06-16 04:11:10 (GMT)
commit520f50d94e0911522d28ddbd4edf81feabeddc49 (patch)
treee889bd8d6f57e433fbeca7bdb3d34771b8e72f32 /meeting.py
parentda1c19009597c112a2a049e9034bd88c7ee56fce (diff)
add #meetingname command
- This provides an extra variable to use in filename templating. darcs-hash:20090616041110-82ea9-e1d99bcddc123a4b291277ae3dcbcf7359c02cde.gz
Diffstat (limited to 'meeting.py')
-rw-r--r--meeting.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/meeting.py b/meeting.py
index 327cff0..6dcc3ee 100644
--- a/meeting.py
+++ b/meeting.py
@@ -208,6 +208,13 @@ class MeetingCommands(object):
"""Do interact in the channel."""
if not self.isChair(nick): return
self._lurk = False
+ def do_meetingname(self, nick, time_, line, **kwargs):
+ """Set the variable (meetingname) which can be used in save.
+
+ If this isn't set, it defaults to the channel name."""
+ meetingname = line.strip().lower().replace(" ", "")
+ self._meetingname = meetingname
+ self.reply("The meeting name has been set to '%s'"%meetingname)
# Commands for Anyone:
def do_action(self, **kwargs):
"""Add action item to the minutes.
@@ -269,6 +276,7 @@ class Meeting(MeetingCommands, object):
self.chairs = { }
self._writeRawLog = writeRawLog
self._meetingTopic = None
+ self._meetingname = ""
self._meetingIsOver = False
if filename:
self._filename = filename
@@ -487,6 +495,10 @@ class Meeting(MeetingCommands, object):
else:
pattern = filenamePattern
channel = self.channel.strip('# ')
+ if self._meetingname:
+ meetingname = self._meetingname
+ else:
+ meetingname = channel
path = pattern%locals()
path = time.strftime(path, self.starttime)
# If we want the URL name, append URL prefix and return