[Telepathy-commits] [telepathy-gabble/master] new buddy random view protocol
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Mon Oct 13 08:39:26 PDT 2008
---
src/olpc-buddy-view.c | 4 +---
tests/twisted/olpc/olpc-buddy-search.py | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/olpc-buddy-view.c b/src/olpc-buddy-view.c
index 2397b0c..f5d9bd1 100644
--- a/src/olpc-buddy-view.c
+++ b/src/olpc-buddy-view.c
@@ -312,9 +312,7 @@ gabble_olpc_buddy_view_send_request (GabbleOlpcView *view,
'(', "view", "",
'@', "xmlns", NS_OLPC_BUDDY,
'@', "id", id_str,
- '(', "random", "",
- '@', "max", max_str,
- ')',
+ '@', "size", max_str,
')',
NULL);
}
diff --git a/tests/twisted/olpc/olpc-buddy-search.py b/tests/twisted/olpc/olpc-buddy-search.py
index e6d7892..0540dbf 100644
--- a/tests/twisted/olpc/olpc-buddy-search.py
+++ b/tests/twisted/olpc/olpc-buddy-search.py
@@ -126,9 +126,7 @@ def test(q, bus, conn, stream):
view = iq_event.stanza.firstChildElement()
assert view.name == 'view'
assert view['id'] == '1'
- random = xpath.queryForNodes('/iq/view/random', iq_event.stanza)
- assert len(random) == 1
- assert random[0]['max'] == '3'
+ assert view['size'] == '3'
# reply to random query
reply = make_result_iq(stream, iq_event.stanza)
--
1.5.6.5
More information about the Telepathy-commits
mailing list