Commit graph

2,065 commits

Author SHA1 Message Date
Goffi
89cfefbacf quick frontend (contact list): better handling of cache with full jid:
- get_cache has a new argument "bare_default"
    - value of resource is returned if full jid is used. None is returned if not found and bare_default is False, bare jid value is returned if not found and bare_default is True
2016-09-09 23:54:33 +02:00
Goffi
4f26367e7a plugin XEP-0054: fix use of full jid for room occupants 2016-09-09 23:54:33 +02:00
Goffi
48871f96cc quick frontend (chat): recreateArgs implementation 2016-09-09 23:54:33 +02:00
Goffi
2808312c77 quick fronten (widgets): if a widget is recreated, "recreateArgs" method can be implemented to specify arguments to clone it correctly 2016-09-09 23:54:33 +02:00
Goffi
f992739212 quick frontend (contat list/cache): workaround for avatar issue in MUC. Need to be reworked properly in the future (TODO) 2016-09-09 23:54:33 +02:00
Goffi
b97038f281 plugin XEP-0054: renamed isInRoom to isRoom as the method only tell if the entity belong to a MUC 2016-09-09 23:54:33 +02:00
Goffi
1b01409238 quick app(app): call entityDataUpdateHandler on profile plug instead of setCache directly 2016-09-09 23:54:33 +02:00
Goffi
d80d9ae0d4 plugin XEP-0045: minor docstring fix 2016-09-09 23:54:32 +02:00
Goffi
619f892de0 quick frontend (chat): added helping properties avatar and contact_list 2016-08-29 01:21:47 +02:00
Goffi
948c569dfe quick frontend(QuickApp): added getDefaultAvatar method:
this method (not implemented in quick frontend) should facilitate handling of entities without avatar
2016-08-29 01:21:45 +02:00
Goffi
eb1dd1d177 plugin XEP-0245: removed plugin XEP-0245:
at the end it adds complications to handle XEP-0245 in backend (because edge cases must be handled: info type with group chat, history when message is info but for a group chat, etc) while it's trivial to handle it in frontend.
    So /me detection is handled in QuickFrontend and cmd_me is back into plugin_misc_text_commands, it is the choice of the frontend to display or not the "/me" (for frontends based on QuickFrontend it remains automatic).
2016-08-28 21:00:53 +02:00
Goffi
f378675f78 bridge (bridge_template.ini): minor doc fix 2016-08-28 20:24:25 +02:00
Goffi
710e243d08 jp (debug): method callback now handles methods without return value 2016-08-28 20:10:04 +02:00
Goffi
7ad14f2252 core: line feed (\n) are now forbidden in profile names 2016-08-28 20:09:09 +02:00
Goffi
dcab42b1d7 quick_frontend (chat): fixed hash generation, tuple was causing trouble when used with unicode() because of dbus.String 2016-08-28 19:42:48 +02:00
Goffi
55357178ef core, bridge, frontends: removed deprecated bridge method askConfirmation, confirmationAnswer, actionResult, actionResultExt and getWaitingConf 2016-08-28 19:23:58 +02:00
Goffi
fb827ad023 quick frontend (app): avatar filename is not requested anymore if value is empty 2016-08-28 18:24:45 +02:00
Goffi
ddcb938332 quick frontend (chat): fixed getWidgetHash 2016-08-28 18:23:55 +02:00
Goffi
4785af58c6 quick_frontend(quick_widgets): deleteWidget can use additional arguments which will be passed to onDelete 2016-08-28 18:22:46 +02:00
Goffi
0de4df1051 plugin XEP-0045, XEP-0054, XEP-0096: deprecated bridge method are not used anymore 2016-08-28 18:20:55 +02:00
Goffi
faf645d589 plugin XEP-0249: some modernisation, don't use anymore deprecated methods, invite bridge method use a single param for room jid 2016-08-28 18:18:10 +02:00
Goffi
527e561a3e core (xmlui): added a quickNote method to easily send notes 2016-08-28 18:16:03 +02:00
Goffi
5347f89dd4 quick frontend (widgets): a deletion with onDelete can now be cancelled if onDelete return False 2016-08-22 20:56:51 +02:00
Goffi
c9c15849d7 quick frontend (quick_app): fixed user_action from action coming from backend 2016-08-21 20:39:43 +02:00
Goffi
371dd6134c jp (debug/bridge): fixed unicode handling of arguments 2016-08-21 18:57:56 +02:00
Goffi
caaa753d80 quick frontend (chat): fixed messageNew signal dispatching when several widgets are handling the target 2016-08-21 17:04:33 +02:00
Goffi
8a7029b549 quick frontend (quick_widget): getWidgets can now filter on hash (using target), handling recreated widgets too 2016-08-21 17:03:18 +02:00
Goffi
93c860a443 jp: added jp/debug commands:
jp/debug hierarchy contain commands useful for developping and debugging.
    first commands are jp/debug/bridge:
        - "method" allows to call a bridge method, args are parsed as python arguments (using eval).
        - "signal" do the same to send a signal from backend, using the new debug plugin.
2016-08-21 12:27:19 +02:00
Goffi
3142e4fee6 plugin debug: first draft:
this plugin implement some helper tools/bridge method to make development and debugging easier.
The first implemented bridge method, debugFakeSignal, allow to send a signal from the backend, simulating some events in the frontends.
2016-08-21 12:23:09 +02:00
Goffi
0c83d13b7c frontends (xmlui): added a user_action attribute:
this attribute indicate if the data is a result of a user interaction or an event from the backend (in the later case, the frontend can choose to avoid interrupting the user).
Internally (in XMLUI), "FROM_BACKEND" is added to XMLUI.flags if the UI result from a backend event.
2016-08-21 12:07:31 +02:00
Goffi
a1d5ee167c core (constants): added XMLUI_DATA_LVLS constants which group all available levels 2016-08-21 12:03:34 +02:00
Goffi
4518afa0fb quick frontend (app): fixed regression in groups handling 2016-08-10 23:23:48 +02:00
Goffi
cc17c2869f quick frontend (chat): added a getlocale method and changed self.day_change calculation for pyjamas compatibility 2016-08-09 01:11:22 +02:00
Goffi
40b71e6f80 quick frontend (contact): fixed roster and roster_connected in handler + add a next function for pyjamas compatibility 2016-08-09 01:10:09 +02:00
Goffi
3f83911645 quick frontend (QuickApp): unicode string fix 2016-08-09 01:08:59 +02:00
Goffi
e73c573d78 misc: fixed 0.6.1 tag 2016-08-08 21:32:21 +02:00
Goffi
56211b33c6 primitivus, quick frontend (chat): moved time text generation to QuickChat 2016-08-08 21:05:04 +02:00
Goffi
ae50946479 plugin XEP-0045: fixed options parameter handling in bridge callback 2016-08-08 00:50:01 +02:00
Goffi
21bdd2cbca quick frontend (widget): minor profiles check on widget creation 2016-08-08 00:49:17 +02:00
Goffi
c7e84506dd quick frontend(chat): fixed traceback in log message 2016-08-08 00:48:22 +02:00
Goffi
6c697b6ea5 misc: updated Chteufleur contributions in README 2016-08-02 23:21:13 +02:00
Goffi
2d468f9e94 quick frontends, primitivus: messageState signal handling 2016-08-02 23:11:44 +02:00
Geoffrey POUZET
3f5a26f273 plugin XEP-0184: Implementation of XEP-0184 (Message Delivery Receipts) 2016-07-28 19:11:31 +02:00
Goffi
c0e4960c55 primitivus (chat): added :topic (and :subject and :title aliases) to change subject with a dialog (/!\ urwid SàText need to be updated) 2016-07-24 19:00:50 +02:00
Goffi
b148722b4d plugin XEP-0045: added bridge method to change subject 2016-07-24 18:59:02 +02:00
Goffi
82a12186ea quick frontend, primitivus (chat, contact_list): fixed MUC private messages handling:
- occupants can be clicked again
    - QuickChat.Occupant now keep room jid and real jid if available
    - history messages are filtered correctly when requesting history for MUC room or private conversation
2016-07-24 18:07:45 +02:00
Goffi
60c8f2fc3d quick_frontend(chat): better handling of cached signals when initialising widget 2016-07-24 18:02:34 +02:00
Goffi
9f853cd774 quick_frontend, primitivus (chat): fixed widget bad locking + don't send notification when locked 2016-07-24 17:59:24 +02:00
Goffi
9456417949 quick_frontend, primitivus (contact_list): ContactList widget must now call postInit() when ready, to avoid being registered before being constructed 2016-07-24 17:56:18 +02:00
Goffi
e32bd443a3 quick_frontend, primitivus: better notifications handling 2016-07-24 17:56:14 +02:00