Emmanuel Gil Peyrot
|
79a4cc8937
|
config: Cast Path to str() before passing it to copy2.
|
2018-07-21 14:27:29 +02:00 |
|
Emmanuel Gil Peyrot
|
c1bc46cb2c
|
config: Try to create the logs directory before setting up error logs.
|
2018-07-19 12:03:40 +02:00 |
|
Emmanuel Gil Peyrot
|
31ec0564e7
|
Fix custom theme loading under Python 3.5.
|
2018-07-16 02:01:30 +02:00 |
|
Emmanuel Gil Peyrot
|
13b90fb10b
|
Remove extraneous ", " in Message.__repr__.
|
2018-07-14 17:15:55 +02:00 |
|
Emmanuel Gil Peyrot
|
20ebea1c89
|
Stop making classes inherit from object.
|
2018-07-14 16:25:09 +02:00 |
|
Emmanuel Gil Peyrot
|
3acfd83c24
|
common: Simplify get_os_info() using pathlib.Path().
|
2018-07-10 12:07:08 +02:00 |
|
Emmanuel Gil Peyrot
|
8fbbe701f2
|
common: Remove unused get_base64_from_file() function.
|
2018-07-10 12:07:05 +02:00 |
|
Emmanuel Gil Peyrot
|
59f12b761d
|
xhtml: Add forgotten import of Path.
|
2018-07-09 12:01:32 +02:00 |
|
|
f35b3d16a3
|
Also reload plugins configuration on /reload
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2018-07-08 23:21:09 +02:00 |
|
Emmanuel Gil Peyrot
|
07e13a1220
|
Fix loading plugins.
|
2018-07-08 11:02:17 +02:00 |
|
Emmanuel Gil Peyrot
|
19cc6229a2
|
logger: Use pathlib.Path.open() instead of open().
|
2018-07-08 10:58:00 +02:00 |
|
Emmanuel Gil Peyrot
|
cabc8fcd94
|
config: Use pathlib.Path.open() instead of open().
|
2018-07-08 10:56:59 +02:00 |
|
Emmanuel Gil Peyrot
|
b3a944c76b
|
config: Replace the config file with its new version, rather than copy2/remove.
|
2018-07-08 10:56:45 +02:00 |
|
Emmanuel Gil Peyrot
|
1707b14691
|
tabs.rostertab: Use Path for file completion.
|
2018-07-08 09:53:15 +02:00 |
|
Emmanuel Gil Peyrot
|
150feda3f0
|
core.commands: Remove implicit conversion from Path to str in /set.
|
2018-07-08 09:52:28 +02:00 |
|
Emmanuel Gil Peyrot
|
78d41b4989
|
plugin: Use the provided pathlib.Path.
|
2018-07-08 09:23:52 +02:00 |
|
Emmanuel Gil Peyrot
|
fe6c8041a1
|
Add some more str() on Paths…
|
2018-07-08 09:18:36 +02:00 |
|
Emmanuel Gil Peyrot
|
9dd38bd840
|
Add a few more str() on pathlib.Path objects.
|
2018-07-05 16:32:38 +02:00 |
|
Emmanuel Gil Peyrot
|
fcaaa6ef49
|
Add a bunch of str() to convert pathlib.Path into str.
|
2018-07-05 16:28:44 +02:00 |
|
Emmanuel Gil Peyrot
|
142180204b
|
logger: Fix a typo when creating the logs directory.
|
2018-07-05 16:21:13 +02:00 |
|
Emmanuel Gil Peyrot
|
91d22aacba
|
core.handlers: Correctly import get_image_cache() from poezio.config.
|
2018-07-05 16:19:03 +02:00 |
|
Emmanuel Gil Peyrot
|
c66ae524be
|
config: Pass a str rather than a Path to RawConfigParser, fixes Python 3.5 support.
|
2018-07-05 12:25:39 +02:00 |
|
Emmanuel Gil Peyrot
|
5c1dc0006f
|
config: Stop using os.path to split pathlib.Path objects.
|
2018-07-05 12:24:36 +02:00 |
|
Emmanuel Gil Peyrot
|
60f21c0df4
|
Factorise FIFO filename creation.
|
2018-07-04 13:30:32 +02:00 |
|
Emmanuel Gil Peyrot
|
1da74a9636
|
Simplify plugins path changes.
|
2018-07-04 13:28:13 +02:00 |
|
Emmanuel Gil Peyrot
|
c162596f00
|
plugin_manager: Add back forgotten self.
|
2018-07-04 13:15:23 +02:00 |
|
Emmanuel Gil Peyrot
|
ccb2ea0ea4
|
config: remove check_create_log_dir().
|
2018-07-04 13:14:17 +02:00 |
|
Emmanuel Gil Peyrot
|
c4d9dd48ed
|
logger: Use LOG_DIR being a pathlib.Path rather than a string, remove os.
|
2018-07-04 13:11:24 +02:00 |
|
Emmanuel Gil Peyrot
|
09dbd9f5f2
|
Remove the data_dir option, and replace it with XDG_DATA_HOME.
|
2018-07-04 13:07:04 +02:00 |
|
Emmanuel Gil Peyrot
|
d41bfa1c57
|
Replace config.CACHE_DIR with xdg.CACHE_HOME.
|
2018-07-04 12:47:02 +02:00 |
|
Emmanuel Gil Peyrot
|
35495fba60
|
a
|
2018-07-04 12:43:46 +02:00 |
|
Emmanuel Gil Peyrot
|
84107bdd77
|
Factorise retrieving tmp_image_dir.
|
2018-07-04 12:33:38 +02:00 |
|
Emmanuel Gil Peyrot
|
60ba8308fa
|
xhtml: Simplify tmp_dir/extract_images into a single Option<str> parameter.
|
2018-07-04 12:25:41 +02:00 |
|
Emmanuel Gil Peyrot
|
f0ad4b348b
|
Use pathlib.Path and poezio.xdg to load themes.
|
2018-07-04 12:07:31 +02:00 |
|
Emmanuel Gil Peyrot
|
7b8871b651
|
Use pathlib.Path and poezio.xdg to complete themes.
|
2018-07-04 12:07:31 +02:00 |
|
Emmanuel Gil Peyrot
|
da12fe7d6a
|
Move XDG basedir functions to the poezio.xdg module.
|
2018-07-04 12:07:31 +02:00 |
|
Emmanuel Gil Peyrot
|
7978481edf
|
Use the new config.get_default_config_dir() in plugin_manager.
|
2018-07-03 12:41:02 +02:00 |
|
Emmanuel Gil Peyrot
|
b80bb2fcfc
|
Only create the config dir after parsing the CLI args.
This also switches to pathlib.Path instead of os.path for path
manipulation.
|
2018-07-03 12:32:37 +02:00 |
|
Emmanuel Gil Peyrot
|
5483cd40ee
|
Switch from @asyncio.coroutine to async def everywhere.
|
2018-07-02 01:55:34 +02:00 |
|
Link Mauve
|
29b10b6c2b
|
Merge branch 'information_popup' into 'master'
Replace information_popup_type_filter occurences with correct naming
See merge request poezio/poezio!4
|
2018-07-01 18:30:15 +02:00 |
|
|
b072c1390b
|
Replace information_popup_type_filter occurences with correct naming
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2018-07-01 01:09:45 +01:00 |
|
Emmanuel Gil Peyrot
|
01a4920bc8
|
Factorise code in logger.
|
2018-06-28 16:48:38 +02:00 |
|
Emmanuel Gil Peyrot
|
fbe376b6db
|
Reintroduce the concept of resource, but named device_id and generated.
|
2018-06-28 15:09:02 +02:00 |
|
Emmanuel Gil Peyrot
|
7b3a116d76
|
Replace the '%s' % var pattern with str(var).
|
2018-06-28 14:49:54 +02:00 |
|
Emmanuel Gil Peyrot
|
e846825fc8
|
Add a check for Unicode support.
This makes poezio refuse to run if the environment is known broken.
|
2018-06-07 14:42:14 +02:00 |
|
Georg Lukas
|
0319ce5079
|
MUC-PM: bare-JID messages can't be PMs
|
2018-05-31 23:46:58 +02:00 |
|
louiz’
|
25df5ef410
|
Merge remote-tracking branch 'lab/master'
|
2018-05-23 19:40:40 +02:00 |
|
Emmanuel Gil Peyrot
|
76b6d414e5
|
Fix traceback introduced in aa816640a8 .
|
2018-05-22 12:01:39 +02:00 |
|
Emmanuel Gil Peyrot
|
aa816640a8
|
Cancel a paused chatstate after 30s.
|
2018-05-16 14:00:52 +02:00 |
|
|
a1c3656788
|
config: Add DATA_DIR global constant
|
2018-05-14 16:40:13 +02:00 |
|
Emmanuel Gil Peyrot
|
9753b302c1
|
config: Reject relative XDG basedir paths.
|
2018-05-14 13:08:32 +02:00 |
|
Emmanuel Gil Peyrot
|
e9cd559cf0
|
config: Use lowercase for local variables.
|
2018-05-14 13:02:32 +02:00 |
|
|
a402bcefd3
|
Fetch all MUC history on first join
|
2018-04-25 12:03:26 +02:00 |
|
Georg Lukas
|
b7e1db4879
|
Sent Carbon: handle MUC-PMs properly. Fix #3294
|
2018-04-01 11:06:25 +02:00 |
|
Georg Lukas
|
4e9f8e2edb
|
MUC-PM handler: support 'sent' messages (for Carbons)
|
2018-04-01 11:06:25 +02:00 |
|
Emmanuel Gil Peyrot
|
4e5a1c6581
|
Remove unused import.
|
2018-03-31 01:00:59 +02:00 |
|
Emmanuel Gil Peyrot
|
a2ad4af79a
|
Use slixmpp’s new cache module for avatars too.
|
2018-03-31 00:47:24 +02:00 |
|
Emmanuel Gil Peyrot
|
b03a92e7ea
|
Use the new slixmpp filesystem cache to store caps.
|
2018-03-31 00:28:09 +02:00 |
|
Emmanuel Gil Peyrot
|
326de0f161
|
Factorise the /version callback and make it handle errors
Fixes #3376.
|
2018-03-14 17:18:46 +01:00 |
|
Emmanuel Gil Peyrot
|
ae172f84dd
|
Add a “name” column to /bookmarks.
|
2018-03-12 08:33:31 +01:00 |
|
Emmanuel Gil Peyrot
|
a468e16140
|
Add HTTP File Upload support.
|
2018-03-08 15:04:59 +01:00 |
|
mathieui
|
ac6adbf21b
|
Update documentation (& formatting)
- nick colors are not random by default
- /close is a useful command
|
2018-02-20 21:52:55 +01:00 |
|
mathieui
|
87ed4aff12
|
Fix the nick conflict code
also yapf -rip
|
2018-02-11 19:53:38 +01:00 |
|
mathieui
|
957ee8084d
|
Remove the """smart""" command completion
|
2018-02-11 17:58:00 +01:00 |
|
Emmanuel Gil Peyrot
|
a9e2a0177b
|
Use refresh_input in core.information() to avoid traceback.
|
2018-01-25 21:37:40 +01:00 |
|
Emmanuel Gil Peyrot
|
25898e9ee7
|
Check that avatar sha1 is consistent with the hash.
|
2018-01-25 16:00:33 +01:00 |
|
Emmanuel Gil Peyrot
|
4c2eee6a13
|
Fix caching newer avatars.
|
2018-01-25 15:42:51 +01:00 |
|
Emmanuel Gil Peyrot
|
e61d5fd947
|
Optimise the half-block codepath slightly.
|
2018-01-25 15:02:40 +01:00 |
|
Emmanuel Gil Peyrot
|
8076c1d094
|
Fix blinking in ImageWin.
Also display the border according to the theme.
|
2018-01-25 14:51:18 +01:00 |
|
Emmanuel Gil Peyrot
|
5feb718706
|
Use full-blocks by default for images.
This prevents bugs in some terminals.
|
2018-01-25 14:50:35 +01:00 |
|
|
3e3793b701
|
Use refresh_input in process_presence_buffer to avoid traceback
|
2018-01-16 11:52:09 +01:00 |
|
mathieui
|
322e10d1bd
|
yapf -rip
|
2018-01-16 00:10:35 +01:00 |
|
mathieui
|
323b77c2f4
|
Current tab input is refreshed on kick/ban even when it does not exist
leading to tracebacks and shenanigans
|
2018-01-16 00:05:02 +01:00 |
|
mathieui
|
020c7db1ae
|
Fix binary opening
|
2018-01-14 23:16:25 +01:00 |
|
mathieui
|
12ede4d301
|
yapf -ir
|
2018-01-13 15:33:19 +01:00 |
|
mathieui
|
6fe2f20833
|
Enforce HOME, TERM, and PATH env vars when running
Instead of showing an ugly traceback
|
2018-01-13 15:31:10 +01:00 |
|
mathieui
|
391eb27964
|
Open and write logs and config files in utf-8
|
2018-01-13 15:29:23 +01:00 |
|
Emmanuel Gil Peyrot
|
b981327df5
|
Fix typos, thanks codespell !
|
2018-01-10 02:13:35 +01:00 |
|
mathieui
|
15c5d7822a
|
Fix #3354 (wrong formatting for /code messages)
Acks were asked for and received, but /xhtml was bad
|
2017-12-27 20:37:52 +01:00 |
|
mathieui
|
fbb0f8d8a6
|
Fix #3361 (/correct [tab][tab] breaks the line)
|
2017-12-27 20:28:29 +01:00 |
|
mathieui
|
03a2e21ed7
|
Do not show a message as bounced if it was acked by a client
Fixes #3365
|
2017-12-27 20:16:50 +01:00 |
|
mathieui
|
dd33ce58dc
|
Set bookmark_on_join default value to false
too many pitfalls
|
2017-12-20 19:04:48 +01:00 |
|
mathieui
|
1a1164b9b1
|
Do not use the /join interface on nickname conflict
Therefore do not add bookmarks while doing this, it is wrong.
|
2017-11-28 22:29:37 +01:00 |
|
Jonas Wielicki
|
4edf40c3bb
|
XEP-0392 MUC: re-color users on nickname change
|
2017-11-28 19:03:12 +01:00 |
|
Jonas Wielicki
|
2ac65137aa
|
XEP-0392 MUC: Base User color solely on nickname
|
2017-11-26 13:36:00 +01:00 |
|
Emmanuel Gil Peyrot
|
1edabb0c77
|
Remove bogus checks for resource features.
|
2017-11-24 03:28:02 +00:00 |
|
Emmanuel Gil Peyrot
|
068aa591e3
|
config: Switch the default for show_muc_jid from True to False.
|
2017-11-24 03:07:17 +00:00 |
|
Emmanuel Gil Peyrot
|
e629cb5f94
|
bookmarks: Set the bookmark name to the localpart.
|
2017-11-24 03:06:56 +00:00 |
|
Emmanuel Gil Peyrot
|
b355098b4b
|
muctab: Display the bookmark name when available, instead of the localpart.
|
2017-11-24 03:06:22 +00:00 |
|
Emmanuel Gil Peyrot
|
eae2692647
|
Update the documentation to reflect the removal of features.
|
2017-11-23 20:11:14 +00:00 |
|
Emmanuel Gil Peyrot
|
304d1cc1ab
|
Remove all remote_wants_chatstates logic, keep the stubs.
|
2017-11-23 20:05:31 +00:00 |
|
Emmanuel Gil Peyrot
|
d9129c9ced
|
Remove resource locking in DynamicConversationTab.
|
2017-11-23 20:00:22 +00:00 |
|
Emmanuel Gil Peyrot
|
3bc33935d2
|
Include MUCs in /presence autocompletion.
Fixes #3347.
|
2017-11-23 18:29:06 +00:00 |
|
Emmanuel Gil Peyrot
|
b705aba4e2
|
Add an autojoined bookmark on /join.
|
2017-11-23 17:55:54 +00:00 |
|
mathieui
|
5f5cc186dc
|
Fix the case when we receive an unavailable presence while joining
|
2017-11-22 21:19:27 +01:00 |
|
mathieui
|
057f7ac9f5
|
Refactor logger.py to make it more testable
Also fixes:
- release the message log mmap when we are done with it
- Write the right character in log lines
|
2017-11-21 22:40:43 +01:00 |
|
mathieui
|
156d170d13
|
Make italics work
|
2017-11-14 19:23:35 +01:00 |
|
Emmanuel Gil Peyrot
|
bd7b52988c
|
yapf -ir
|
2017-11-14 12:13:03 +00:00 |
|
Georg Lukas
|
395435c68d
|
self-ping: add 'timeout' option for ping response
|
2017-11-14 11:55:54 +00:00 |
|
Georg Lukas
|
0ee4bb6129
|
self-ping: rename option from 'delay' to 'interval'
|
2017-11-14 11:55:11 +00:00 |
|