Mercurial > libervia-backend
comparison src/bridge/bridge_constructor/bridge_template.ini @ 2013:b536dd121da1
backend (memory), frontends: improved history filtering:
a "filters" dictionnary is now use to filter, it can have, for now, filtering on:
- "body": filter only on the body (equivalent to former "search" parameter, but not case sensitive)
- "search": fitler on body + source resource
- "types": allowed types
- "not_types": forbidden types
primitivus now do searching using "search", i.e. source resource is now taken into account (and search is now case insensitive)
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 18 Jul 2016 00:52:02 +0200 |
parents | a2bc5089c2eb |
children | c0ff84243650 |
comparison
equal
deleted
inserted
replaced
2012:53587e738aca | 2013:b536dd121da1 |
---|---|
589 | 589 |
590 [historyGet] | 590 [historyGet] |
591 async= | 591 async= |
592 type=method | 592 type=method |
593 category=core | 593 category=core |
594 sig_in=ssibss | 594 sig_in=ssiba{ss}s |
595 sig_out=a(sdssa{ss}a{ss}sa{ss}) | 595 sig_out=a(sdssa{ss}a{ss}sa{ss}) |
596 param_3_default=True | 596 param_3_default=True |
597 param_4_default='' | 597 param_4_default='' |
598 param_5_default="@NONE@" | 598 param_5_default="@NONE@" |
599 doc=Get history of a communication between two entities | 599 doc=Get history of a communication between two entities |
600 doc_param_0=from_jid: source JID (bare jid for catch all, full jid else) | 600 doc_param_0=from_jid: source JID (bare jid for catch all, full jid else) |
601 doc_param_1=to_jid: dest JID (bare jid for catch all, full jid else) | 601 doc_param_1=to_jid: dest JID (bare jid for catch all, full jid else) |
602 doc_param_2=limit: max number of history elements to get (0 for the whole history) | 602 doc_param_2=limit: max number of history elements to get (0 for the whole history) |
603 doc_param_3=between: True if we want history between the two jids (in both direction), False if we only want messages from from_jid to to_jid | 603 doc_param_3=between: True if we want history between the two jids (in both direction), False if we only want messages from from_jid to to_jid |
604 doc_param_4=search: pattern to filter the history results | 604 doc_param_4=filters: patterns to filter the history results, can be: |
605 - body: pattern must be in message body | |
606 - search: pattern must be in message body or source resource | |
607 - types: type must one of those, values are separated by spaces | |
608 - not_types: type must not be one of those, values are separated by spaces | |
605 doc_param_5=%(doc_profile)s | 609 doc_param_5=%(doc_profile)s |
606 doc_return=Ordered list (by timestamp) of data as in [messageNew] (without final profile) | 610 doc_return=Ordered list (by timestamp) of data as in [messageNew] (without final profile) |
607 | 611 |
608 [addContact] | 612 [addContact] |
609 type=method | 613 type=method |