Commit Graph

29 Commits

Author SHA1 Message Date
Ian Wienand 48ff9a79c2 Remove encode/decode wrappers
This is causing string/binary issues with Python 3.  Everything seems
happy with (Python3 unicode) strings, so remove these wrappers.

Change-Id: I264c1bdae4acda671021bc7055ade099509fcbd1
2021-06-02 06:18:13 +10:00
Ian Wienand 79d7c6e5f3 Fix old file() alias for open()
Change-Id: Icebfa5b2fb0c972be0324d18824523ba0e30aaab
2021-06-02 06:17:55 +10:00
Ian Wienand 1a35647ad5 Update to Python 3 / Limnoria plugin
This is a run of "2to3" over these files, and minor updates to the
MeetBot/__init__.py that make it work with Limnoria.

Change-Id: I1083cdf095814af3d84b294dc9ca9a63eb97ac3c
2021-06-02 06:15:58 +10:00
Jenkins 01e051648c Merge "Make timestamps link to their own anchors" 2017-02-21 17:57:11 +00:00
John L. Villalovos 96962ddccc Add __str__() method to GenericItem class
This will make the #undo message more useful when undoing:
    #accepted
    #action
    #agreed
    #help
    #info
    #idea
    #rejected

Change-Id: I3ffac7a9917d2652247d65dde6f9e1e91b6c0637
2016-12-20 12:03:53 -08:00
John L. Villalovos d628b590f2 Provide __str__ method for Topic and Link
When doing an #undo operation have the message be more helpful.

Before it would do an output like:
  Removing item from minutes: <ircmeeting.items.Link object at
  0x7fbb93c8f550>

Now it will output something like:
  Removing item from minutes: #link http://www.openstack.org/

Change-Id: I925ef47798eb9a86dc3dd35bb4e3601b4b70a08b
2016-11-29 11:55:52 -08:00
Tim Burke 685975aef4 Make timestamps link to their own anchors
This is similar to the line-number links in cgit, or the timestamp
links in os-loganalyze.

Change-Id: I45494010f88614a36d1e87a4f55eb3f28ee87836
2016-01-26 12:34:37 -08:00
Shane Wang da7747b61f Fix misspellings in meetbot
Fix misspellings detected by:
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: I47e29fd1186aef9dda3c0f5e772f62729304af57
Closes-Bug: #1257295
2014-02-08 10:42:18 +08:00
Bob Ball 5f8bdbeef1 Adding ability for a non-chair to end a meeting after time
This is particularly useful if the chair forgot to end the meeting
or has been net split out and the nick is no longer useable.

Change-Id: Id5c0c11ec94898f3a79ac253a9d804baec79a85d
2013-07-12 14:15:31 +01:00
Garrett Holmstrom 11fe412f6d Fix initial meeting topic setting
Commit 9254a4ae caused meeting topics that are supplied to
meetingtopic action, which means meeting topics won't actually be
set unless someone explicitly sets one later. This commit makes it
perform both actions. Fixes bug 1080269.

Change-Id: Ide4115eef4341450a6641bc490f00f705b208112
2012-11-21 20:39:23 +00:00
Clark Boylan a306d7c1dc Add better #startvote error responses.
Add error responses for the three #startvote error states.
1. Person running #startvote is not the meeting chair.
2. A vote is already in progress.
3. The vote topic and options were not understood.

Change-Id: I9d86671179ceea1067f0641213eb5398d933d405
2012-10-31 15:14:18 -07:00
James E. Blair 283507daf6 Be paranoid about meeting names.
Change-Id: Ib1708844a0141fef3f70d8748222595ee4d7324a
2012-08-22 18:09:38 +00:00
James E. Blair 9254a4ae1e Make 'meetingname' a required argument of startmeeting.
The meetingname can be used in the filename of the meeting logs.

Change-Id: I8a72f292a6a995e517114350373507c20ca4ce7e
2012-08-21 21:15:30 +00:00
Clark Boylan 620ed19d2e Make voting case insensitive.
MeetBot has been called too picky about case. Make voting case
insensitive. If the vote options are "Yes, No" then "YES" or "no"
are both valid options now.

Change-Id: Ibb5cc9ea024ca8bdb1c1c603a6b9d9dbb56718fd
2012-06-19 15:34:47 -07:00
Clark Boylan c64076250a Tweak #startvote parsing.
Seems like everyone wants to use '+1, +0, -1' as their startvote
options. Made a slight change to the RE that splits options to allow
+1, etc to be used. This change should also prevent splitting up
hyphenated options.

Change-Id: I7679f8bc1cfb505e1f88f2df7425bf12a0519acc
2012-05-11 10:38:14 -07:00
Clark Boylan b13a316a8d Adds basic voting support to meetbot.
Fixes bug #902948.

Add new commands (#startvote, #endvote, #vote, and #showvote) to
meetbot to facilitate basic voting support and results logging.
Basic usage would be:
foo #startmeeting
foo #startvote What color should we use? blue, red, green
bar #vote blue
foo #endvote
foo #endmeeting

Change-Id: I0ff70da8e7df66d420203eb20366c8943d0d5113
2012-04-30 14:54:22 -07:00
Richard Darst 9758d001d2 Bug fix: #rejected aliased to #reject
Ignore-this: e6219ddc1d9eea41f44107e2a217c8f0
- #rejected was supposed to be aliased to #reject, but was not
  due to a name error.  Fixed now.

darcs-hash:20101229060734-82ea9-e437fc1b7a19a799ab0152bb8a0ec998b4e1df36.gz
2010-12-28 22:07:34 -08:00
Richard Darst a7c62223ea Make link URL matching smarter
Ignore-this: bff39c43073f3576e31bda52b7383e6b
- Link URL matching no longer requires the URL to be at the
  beginningfront of the line
- Includes test case and documentation fix.

darcs-hash:20101227093449-82ea9-727739b99ac86256216350b90dc3e710ea181f51.gz
2010-12-27 01:34:49 -08:00
Richard Darst 95526e8d5b writers.py - fix MediaWiki uploading
Ignore-this: f7c95d5482f4077fbeef93ed72ed1c96

darcs-hash:20101227080108-82ea9-75c594beef8e268f3c606551bc9b063eeb2cd432.gz
2010-12-27 00:01:08 -08:00
Richard Darst 0ade14ad3a writers.py - more properly detect nicknames in lines
Ignore-this: 3c2adc52abbece612f594d18cc83862c
- This patch makes "Action items, per person" search for nicks
  limited to full words.  For example, the nick 'jon' will no longer
  be assigned lines containing 'jonathan'.
- Includes a unit test

darcs-hash:20101227075058-82ea9-2b37054e5fed11f6c46a239a4a669efd1293cb5c.gz
2010-12-26 23:50:58 -08:00
Richard Darst 7816aa1d45 meeting.py - add missing filename= line in Config.save
Ignore-this: f6b958ca8b6632f7eeeacbef9c256cd9
- Fixes bug relatetd to partial commit

darcs-hash:20101227064813-82ea9-2afb8e3da3405b48e58a8d2f9d9eb0fe971f412e.gz
2010-12-26 22:48:13 -08:00
Richard Darst 85b33eb4a8 ircmeeting/writers.py - add mediawiki upload patch from David Narvaez
Ignore-this: 9044e960dbc799ff5b27af8780da4e77
- This allows the MediaWiki writer to upload directly to a MediaWiki
  instance.
- Configuration is via the extension-kwargs mechanism:
  .mw|mwsite=blah|mwpath=blah|mwusername=blah|mwpassword=blah
- Patch contributed by David Narvaez - thanks very much!

darcs-hash:20101210094715-82ea9-f7f1ca46508789049a5a7e5cc952b0446fa16723.gz
2010-12-10 01:47:15 -08:00
Richard Darst 0790138e94 ircmeeting/meeting.py - update to ".none" extension
Ignore-this: eed5f98634527f0cd67d4dd654df3b35
- Because of the way python dictionaries work, it is only possible to
  have unique extensions.  To get around this for not writing files,
  any extension that begins in ".none" will not have files written.
- Thus, use ".none1", ".none2", etc, for multiple writers that should
  not be written.

darcs-hash:20101210081246-82ea9-6a4c8f61270f89a1414584b0af01669d7cb51f5e.gz
2010-12-10 00:12:46 -08:00
Richard Darst 64f57ddf74 ircmeeting/meeting.py - ".none" extension prevents writing files
Ignore-this: cb3a6066ac65f30924cfc87cce164921
- This provides a way to make a writer not write _any_ files.
  Examples of when this would be useful would be when you use the
  MediaWiki writer and upload directly instead of saving to a file.

darcs-hash:20101210073412-82ea9-83b5efe12af594a5ff17d3268ef7b69c118c2197.gz
2010-12-09 23:34:12 -08:00
Richard Darst ee695be444 supybotconfig/writers - fix kwargs parsing for writers
Ignore-this: 33766800fdcf08e51fd4e331a327b0ee
- Fix .ext|arg1=val1|arg2=val2 parsing for arguments which have a colon.
- Add documentation to how to use this system.

darcs-hash:20101210063346-82ea9-50c452663ce543ed46fc7c90137e60a9cb7ed20a.gz
2010-12-09 22:33:46 -08:00
Richard Darst 601bd9a394 ircmeeting/meeting.py - add `basename` replacement variable
Ignore-this: 23f96aded1e64bb8c5d292014af258da
- This is the value of os.path.basename(config.filename())
- This can be used in, for example, startMeetingMessage or
  endMeetingMessage.

darcs-hash:20101210062205-82ea9-1c74f6e45de1c259874bb61b04e6139eabcaf445.gz
2010-12-09 22:22:05 -08:00
Richard Darst 9fe9ab8376 supybotconfig - fix __init__ order
Ignore-this: 684574bdf546a62ee97c3fbd8ac5f637
- This fixes a problem where writer_map was not properly being read
  from the supybot config system.  It was caused by __init__ in the
  Config class not being able to get data from the supybot config
  proxy.
- This patch rebinds __init__ to use the supybot config proxy
  __getattr__ scheme.
- As part of fixing this, I had to add code to rebind
  descriptors/properties to use the config proxy, too.

darcs-hash:20101210055924-82ea9-e10c282c4803cb987f6dd423838b474b686d9c50.gz
2010-12-09 21:59:24 -08:00
Richard Darst 9fdcb3bb47 meeting.py - update meetingLocalConfig.py locating logic
Ignore-this: f9f1faa18de17fce6ff5fa7ba2492f1
- Will now look in these places:
  - $PYTHONPATH (via 'import meetingLocalConfig')
  - alongside `meeting.py` in the `ircmeeting/` module directory.
  - $CWD

darcs-hash:20101207221721-82ea9-c9ed44b5cb896d2d4dace9a3811985bda65000df.gz
2010-12-07 14:17:21 -08:00
Richard Darst 7c094f8ef8 Big rename and split into python modules
Ignore-this: 68006fd9b6602ad039904427e7b33daf
* Rename the supybot plugin: MeetBot -> Meeting
* Split the non-supybot specif parts into the `ircmeeting` Python
  module.
* Code changes to support these changes.
* This is a big change so it's expected to be a little bit messy.
  This patch may depend on others until things get sorted out.

darcs-hash:20101129040316-82ea9-e8ce7671c5b765551b98444dc082a9be6011dc4f.gz
2010-11-28 20:03:16 -08:00