Commit graph

2976 commits

Author SHA1 Message Date
Eijebong
c702fb147b Fix daemon.py shebang. 2016-07-13 18:51:08 +02:00
mathieui
a548e2ff6d Improve refresh performance in big rooms
going through a list with more than 1000 elements, one at a time, can be
a bit tedious. Especially if you go through it every time you receive
one of those elements.
2016-07-12 21:05:46 +02:00
Emmanuel Gil Peyrot
d19f53c3e9 Remove unused SizeManager argument, and simplify its import. 2016-07-07 21:34:10 +01:00
mathieui
968ed665f6 Fix the configure and bookmark tab 2016-07-07 20:09:37 +02:00
mathieui
dae641412e Fix a circular import introduced in 409b1513
It breaks python 3.4 which is touchy about them, https://bugs.python.org/issue17636
2016-07-07 19:51:53 +02:00
louiz’
3dcb04992d Don't use a list (that we modify) as a default argument 2016-07-06 10:08:23 +02:00
louiz’
96a9fb699f Refactor a little thing in /version code 2016-07-06 10:01:07 +02:00
louiz’
059799bb2d Remove some unused things 2016-07-06 09:52:19 +02:00
louiz’
e397f38b47 Merge remote-tracking branch 'linkmauve/big-performances-improvement' 2016-07-06 09:26:03 +02:00
Emmanuel Gil Peyrot
69b4480e9e Make UserList.refresh_if_possible not hyper dumb.
This function was actually calling refresh for every single item that
was different from the cached version.
2016-07-06 04:32:23 +01:00
Emmanuel Gil Peyrot
a47e18e873 Cache results in poezio.theming.to_curses_attr.
This increases performances a *lot* compared to the previous uncached
version.
2016-07-06 04:32:15 +01:00
Emmanuel Gil Peyrot
409b1513ce Move Win._tab_win into poezio.windows.TAB_WIN. 2016-07-06 00:25:13 +01:00
Emmanuel Gil Peyrot
4ffe32ac64 Always use the same argument name in Input.do_command. 2016-07-06 00:25:12 +01:00
Emmanuel Gil Peyrot
14aec23206 Rename a private method with an underscore. 2016-07-06 00:25:12 +01:00
Emmanuel Gil Peyrot
84ee9c7afb Add missing return values in boolean functions. 2016-07-06 00:25:12 +01:00
Emmanuel Gil Peyrot
521159c599 Always import Win from base_wins. 2016-07-06 00:25:12 +01:00
mathieui
0276f2adf7 Fix the dice plugin config 2016-07-05 01:39:17 +02:00
mathieui
d55ce5b996 Fix #3197 (add a dice plugin)
also add some doc for the marquee plugin
2016-07-05 01:15:04 +02:00
mathieui
43d7b029f8 Refactor the /join command
Fix subtle bugs hopefully without introducing new ones
2016-07-04 22:03:37 +02:00
louiz’
64647e3fe8 Correctly set the MucListTab name to a string and not a JID
Fix a traceback on /w, and many other places, when a MucListTab is open
2016-07-04 14:16:39 +02:00
mathieui
d039da7b2c RIP gmail.com
If by change a user manages to connect to gmail, they won’t be able to
join another server that has MUCs, so that code is useless.
2016-07-03 02:27:21 +02:00
mathieui
7607140b71 Fix plugin loading when installed 2016-07-03 02:22:55 +02:00
mathieui
2e988af4d8 Fix launch.sh
We want to be able to run "python -m poezio" AND have a poezio entry
point.
2016-07-03 02:13:24 +02:00
mathieui
401048aba1 Make the entry point a function
otherwise it breaks the generated entry point loader, which will work
but display a traceback on exit
2016-07-03 01:59:05 +02:00
mathieui
8f1f877c96 Add /save_order to the reorder plugin
And fix a breakage due to the recent change in tab creation.
2016-07-01 19:51:34 +02:00
Emmanuel Gil Peyrot
b685df501a Remove every now-useless usage of the Singleton function. 2016-06-30 23:29:51 +01:00
mathieui
d636d57df4 Fix dynamic/static conversation tab 2016-07-01 00:24:15 +02:00
mathieui
3e2839f74e Only import "Command" instead of "core" when possible 2016-06-30 23:58:42 +02:00
mathieui
8383f77341 Use a "core" parameter for each tab object instead of a singleton
fixes the circular import issue
2016-06-30 23:57:12 +02:00
mathieui
8f7be37a70 Absolute imports everywhere 2016-06-30 23:36:25 +02:00
mathieui
945035fc18 Update the entry point again 2016-06-30 23:05:55 +02:00
mathieui
ab86e79918 Use absolute imports instead of relative ones
All this crap is very brittle due to circular deps and python handling
them badly. This appears to be fixing some stuff, at the very least.

This is sed, so cleanup of imports (which can now be grouped together)
is not done yet.
2016-06-30 22:56:24 +02:00
mathieui
5680d1584c Fix /nick 2016-06-28 21:01:04 +02:00
Emmanuel Gil Peyrot
15cb47d18c Simplify Tab.core to remove class variables. 2016-06-28 00:48:42 +01:00
Emmanuel Gil Peyrot
29ac9ec597 Import Singleton instead of its module, and remove unused imports. 2016-06-28 00:25:01 +01:00
Emmanuel Gil Peyrot
36377f78ba Add missing import in __main__ module. 2016-06-28 00:21:59 +01:00
Emmanuel Gil Peyrot
3a24d88353 Make plugins import from the absolute poezio package. 2016-06-28 00:10:52 +01:00
Emmanuel Gil Peyrot
a210303b01 Fix a typo. 2016-06-27 23:55:51 +01:00
Emmanuel Gil Peyrot
6a1bd5f9b9 Make all relative imports explicit. 2016-06-27 23:54:50 +01:00
Emmanuel Gil Peyrot
7e51947f47 Launch poezio as a module package. 2016-06-27 23:54:50 +01:00
mathieui
0447188eac Limit 0184 receipts to one-to-one tabs
Instead of chat tabs, which include MUC which doesn’t implement that.
2016-06-24 21:17:29 +02:00
mathieui
158bb8c3f3 Fix #3198 (no highlight in corrections)
broken since bc6ee8d due to using timestamps
2016-06-24 20:20:36 +02:00
mathieui
3c90ac838f Always send a presence-unavailable on command /part
(even if we thought we were already disconnected)
2016-06-24 19:41:59 +02:00
mathieui
76a890acc7 Fix #3203 (indent contact and resources in the roster) 2016-06-24 19:34:23 +02:00
mathieui
633d023a6c Fix the alias plugin
(broken during linkmauve refactoring)
2016-06-24 19:14:14 +02:00
mathieui
db47dbbc46 Fix a traceback on adhoc 2016-06-22 01:16:03 +02:00
mathieui
ce915a86c1 Increase ping timeout delays (now that the ping actually works) 2016-06-12 21:46:46 +02:00
mathieui
aa79acb7d9 Disable smacks by default 2016-06-12 21:45:04 +02:00
mathieui
3de3dbd7fc Add back the entrypoint
It’s needed for proper installation
2016-06-12 17:00:54 +02:00
mathieui
2994a8e1e9 Update tests 2016-06-12 16:56:18 +02:00