Commit Graph

233 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 128dcb85a8 Update tests
This is a run of 2to3 over the tests file.

Change-Id: If05cd0bfdfbcd9d3782847024f61e4b79c8f6e38
2021-06-02 06:17:25 +10:00
Ian Wienand 01425fe026 Remove commented out getattr failure
This code goes into a recursive death loop with Python 3.  I'm not
sure what it's doing, and it looks unused.  Remove it.

Change-Id: Ice11c70c91d4d6217a19c302df1867a969535a63
2021-06-02 06:16:52 +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
Ian Wienand eec003e3e3 Switch to setuptools
Apart from just being the modern thing to do, this allows bdist_wheel
to work, which is important for installing with our existing container
python-builder tooling.

Change-Id: Id884f7db1dcb59406e6f08cd9ec904fe3a32d2e9
2021-06-02 06:15:30 +10:00
OpenDev Sysadmins 36a94f9d97 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:26:04 +00: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
Emilien Macchi f56a92a74a manual: fix typo
Replace "halp" by "help" in the manual.

Change-Id: I7bf5854c9c90f3aaaddb684d710d1006f4359b69
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2014-03-05 22:51:57 +01: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
Bob Ball b06edb2517 Fixed test scripts to include a meeting name
Required to make supybot tests pass

Change-Id: I47e1410d5c60334f89cd451a066f36f5c843c95a
2013-07-12 13:39:37 +01:00
Monty Taylor bf953ccb6f Updated .gitreview location
Change-Id: Id4f560ff3209b216d625ac4754718dba3fd8a1b4
2012-12-16 10:41:36 -08:00
Jenkins c4fcd41f5a Merge "Fix initial meeting topic setting" 2012-11-26 17:48:16 +00: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
Garrett Holmstrom 319b5547a8 Fix setup.py package names
It looks like MeetBot's setup.py never got updated when the plugin's
name changed back to MeetBot. The attached patch fixes that so
setup.py starts working correctly again. Fixes bug 1080268.

Change-Id: I76ad5e5c66f1f44aa260c76ed7392887fc610839
2012-11-21 20:35:19 +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
Andrew Hutchings a271bf8b18 Add .gitreview 2012-04-27 16:21:06 +01: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 11dcb55c4b run_test.py - fix up test scripts
Ignore-this: 195d8aa23f913b86508f0662bee5c789
- Make tests work again after the module split.
- Many test changes.
- Fix up some documentation.

darcs-hash:20101227081516-82ea9-b49174ed7ab7eff247ba507f7b77c38cdace4a8c.gz
2010-12-27 00:15:16 -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 4e871bf64c README.txt - fix several Meeting/MeetBot references
Ignore-this: c92f4a74e802bc022e980c1d913a80cc

darcs-hash:20101227080042-82ea9-548c3ec2274cc4f0606cfd3e4a631c524fd0c594.gz
2010-12-27 00:00:42 -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 1e84fdf2cc Change supybot plugin name back to MeetBot
Ignore-this: 393e3be2b8c6643d7830c36f5f274421
- Leaving it at MeetBot preserves compatibility with old configuration
  and is still descriptive enough.

darcs-hash:20101210052334-82ea9-4482b8dcc7b945f5d6e4246f1300587efba0f1ec.gz
2010-12-09 21:23:34 -08:00
Richard Darst 6f1cd7680e MeetBot/__init__.py - change irc nick MrBeige->darst
Ignore-this: c3ad463ac860abb152fd91ce060d34f9

darcs-hash:20101210052255-82ea9-5f52b55c687a507d06b2f0c391e8a8d6b2d91aa1.gz
2010-12-09 21:22:55 -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 64e0be8341 README.txt - update for restructuring
Ignore-this: f574285d71ff63ab7f5075a7f2ccc466

darcs-hash:20101207221652-82ea9-503b0446dd8e4bb131da9ec2feb0603f3882881a.gz
2010-12-07 14:16:52 -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
Richard Darst 2ce038ee34 Update README file for latest dependencies and setup
darcs-hash:20100212175626-82ea9-8f9e27620b837d279ad008d5ac5750fcd058e4a3.gz
2010-02-12 09:56:26 -08:00
Richard Darst d592edb05e add Template writer documentation to the manual
darcs-hash:20100212174524-82ea9-8814832d21579a429b6cabf8e3df7b48489e4d94.gz
2010-02-12 09:45:24 -08:00
Richard Darst 534c6842b1 Add %(channel) replacement to filenames
- Allows configuration of saving on a per-network basis.

darcs-hash:20091125085704-82ea9-6068d1ae3eb521f19447c6e07f8dd46390ad6868.gz
2009-11-25 00:57:04 -08:00
Richard Darst 67e7a2b4f3 Fix case error in "class Config" example
- This is a very bad error, considering people will try to directly
  copy and paste this, and "class" must be lowercase in python (of
  course).

darcs-hash:20091125065414-82ea9-ffb3a36cc91173c79199c721ef59dfc1863ad995.gz
2009-11-24 22:54:14 -08:00
Richard Darst 285254f00a Separate start/endmeeting variables into a replacements method
- The logic of generating replacement variables is only in one spot now.

darcs-hash:20091124071505-82ea9-1e7c37da96e9463c29bfb32ee5eb81c8c5b3acea.gz
2009-11-23 23:15:05 -08:00
Richard Darst 5dc581b0d4 Enable tests for template writers
- With bochecha's latest patches, the template writers pass all
  required tests.

darcs-hash:20091124070331-82ea9-78ec4383cc80c102dc67ce794ea44043dbdc6cb6.gz
2009-11-23 23:03:31 -08:00