louiz’
d65ad614b3
Replace the %date% output with Year-Month-Day
...
Instead of some locale-specific format
2019-11-19 14:38:51 +01:00
louiz’
47765d0d40
Merge pull request #6 from poezio/pull-request-template
...
Create a pull request template
2019-11-03 18:38:08 +01:00
louiz’
3e8ce77048
Create a pull request template
...
To redirect people on gitlab.
2019-11-03 16:35:48 +01:00
mathieui
33ef0331e9
Add testing for python 3.7
...
since python:3 is now 3.8
2019-10-27 20:05:00 +01:00
mathieui
8499f1cbc9
Fix syntax warnings (thanks python 3.8)
2019-10-27 20:04:11 +01:00
mathieui
5928f02bfc
Disable pylint on lines dedicated to mypy
...
Pylint doesn’t read the typeshed.
2019-10-27 20:02:13 +01:00
mathieui
abe1941abf
CI: add a linting stage, and put mypy in there
...
Obviously failing at the moment.
2019-10-27 14:51:27 +01:00
mathieui
80a7babc0c
Type curses windows
2019-10-27 14:48:27 +01:00
mathieui
2f4651d036
Make global objects not Optional
...
This reflects reality, despite the default values of the code.
We still need a better solution (singleton?).
2019-10-27 14:48:00 +01:00
mathieui
c0b9211941
Fix missing typing import
2019-10-26 21:48:07 +02:00
mathieui
2ba504ae9a
Fix a bug when removing an event handler
2019-10-26 21:44:17 +02:00
mathieui
5e3f2ab19f
Fix #3511 (fix traceback on first bookmark added)
2019-10-26 21:37:06 +02:00
4703c8506a
Bookmark: Change jid property to getter/setter to ensure it stays a JID
...
It's not like static-type checking was a thing in Python nowadays..
(mypy I'm looking at you)
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-26 00:57:20 +02:00
ea1ab71f02
BookmarksTab: Remove safeJID call
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-26 00:41:22 +02:00
86621d59fc
bookmarks: Bookmark.name should be an str
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-26 00:40:50 +02:00
mathieui
4820062b40
Revert "Disable the pylint CI test until upstream's bug is fixed"
...
This reverts commit 791d44f1b9
.
2019-10-18 23:17:40 +02:00
mathieui
0ba31f877c
Fix pylint errors
...
- wrong command path
- pylint bug regarding slots
2019-10-18 23:16:52 +02:00
mathieui
9c6f7246d7
CI Doc generation: install sphinx inside the venv
2019-10-18 21:46:30 +02:00
mathieui
494feac441
Specifically install aiohttp 3 in python 3.5 CI
...
I hope it can fix the issue without further tinkering.
2019-10-18 21:27:51 +02:00
mathieui
73a953b644
Fix aiohttp requirement for python < 3.6
2019-10-18 19:27:24 +02:00
8ee9abdd69
basetabs: return a copy of ChatTab.jid to prevent nasty (mutability) side-effects
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-14 15:43:56 +02:00
7587b954e3
basetabs: reorganise imports
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-14 15:43:02 +02:00
b2cf7c0ce8
plugins/ping: Remove safeJID call
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-14 15:03:09 +02:00
2ff5fdf347
bookmarks: use str where str is expected
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-14 13:47:48 +02:00
1e45e265a1
windows/bookmark_forms: Convert JID objects to str so that comparison succeeds
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-13 13:54:05 +02:00
a66e3903df
MUC-PMs: correctly loop through bookmarks
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-10 14:58:50 +02:00
d62a2170e1
bookmarks: Convert specified jid to JID object if possible
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-10 14:58:44 +02:00
01bca5cccd
core/handlers: Add typing annotations
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-10 14:58:30 +02:00
Georg Lukas
d4d05aec03
MUC-PM: centralize and improve PM detection in all code paths
2019-10-10 14:57:19 +02:00
5032905f96
plugins/lastlog: Display time and nickname
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-10 13:45:09 +02:00
Emmanuel Gil Peyrot
4fa30ca764
data/doap.xml: mention MAM support, since !36
2019-09-22 23:13:33 +02:00
Emmanuel Gil Peyrot
df287adfbe
data/doap.xml: mention avatar support
2019-09-22 23:13:12 +02:00
mathieui
41e4c95636
Prevent the logging module from vomiting all over stderr on OSError
...
it is unreadable and not very useful.
2019-09-19 23:14:55 +02:00
Emmanuel Gil Peyrot
31c605528c
data/doap.xml: update to the latest schema.
2019-09-19 13:28:44 +02:00
472e4371b1
plugins/embed: use tab.jid instead of .name
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-15 12:26:50 +02:00
root
a399e59e46
Corrected the functionality of query_status
2019-09-13 04:24:26 +05:30
31751bcb61
poezio/mam: Remove superfluous time format conversions and fix parameter type
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-11 02:30:54 +02:00
055dcdd1d1
mam: Fix comment in on_scroll_up
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 23:54:58 +02:00
2417b115d2
mam: Only fetched mam when the buffer is running low in messages
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 23:49:59 +02:00
4137d8161a
tabs/basetabs: Document self.query_status
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 18:26:39 +02:00
faa3b22265
poezio/mam: add_messages_to_buffer returns a bool not None
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 18:26:21 +02:00
d1c239999c
poezio/mam: style fixes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 18:25:52 +02:00
bf37cf5f5a
poezio/mam: remove unused imports, add missing md5 import
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 17:59:51 +02:00
73292f7f5e
Merge remote-tracking branch 'origin/mr/46'
...
MAM refactoring!
2019-09-10 17:53:29 +02:00
e9a6ea7a59
Revert "tabs/privatetab: Fixes #3491 : Add MUC <x/> marker in MUC-PMs. Thanks Ge0rG."
...
This reverts commit 0bf8727a92
.
It doesn't actually work yet.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 17:53:08 +02:00
0bf8727a92
tabs/privatetab: Fixes #3491 : Add MUC <x/> marker in MUC-PMs. Thanks Ge0rG.
...
From [XEP-0045 §7.5](https://xmpp.org/extensions/xep-0045.html#privatemessage ):
> To allow for proper synchronization of these messages to the user's
> other clients by Message Carbons (XEP-0280) [19], the sending client
> SHOULD add an element qualified by the
> 'http://jabber.org/protocol/muc#user ' namespace to the message.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-07 21:07:02 +02:00
2373015273
tabs/privatetab: Remove unused safeJID import
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-07 21:06:41 +02:00
root
17e7f0768a
Reorganize MAM
2019-09-05 17:42:27 +05:30
root
5e81fe2760
Removed error messages on startup.
2019-09-05 17:42:27 +05:30
root
81d9c267d3
Moved scroll_up code back to basetabs, added amount parameter to change no. of msgs per query.
2019-09-05 17:42:27 +05:30