[telepathy-gabble/master] Make the senders and description argument to Content optional
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Wed Dec 23 05:04:58 PST 2009
---
tests/twisted/jingle/jingletest2.py | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/tests/twisted/jingle/jingletest2.py b/tests/twisted/jingle/jingletest2.py
index 13d5165..8e69591 100644
--- a/tests/twisted/jingle/jingletest2.py
+++ b/tests/twisted/jingle/jingletest2.py
@@ -237,7 +237,8 @@ class GtalkProtocol03(JingleProtocol):
return p
# Gtalk has only one content, and <content> node is implicit
- def Content(self, name, creator, senders, description=None, transport=None):
+ def Content(self, name, creator, senders=None,
+ description=None, transport=None):
# Normally <content> has <description> and <transport>, but we only
# use <description> unless <transport> has candidates.
assert description != None
@@ -325,7 +326,8 @@ class GtalkProtocol04(JingleProtocol):
{ 'type': action, 'initiator': initiator, 'id': sid }, children)
# hacky: parent Jingle node should just pick up our children
- def Content(self, name, creator, senders, description=None, transport=None):
+ def Content(self, name, creator, senders=None,
+ description=None, transport=None):
return ('dummy-content', None, {},
[node for node in [description, transport] if node != None])
@@ -358,7 +360,8 @@ class JingleProtocol015(JingleProtocol):
{ 'action': action, 'initiator': initiator, 'sid': sid }, children)
# Note: senders weren't mandatory in this dialect
- def Content(self, name, creator, senders, description=None, transport=None):
+ def Content(self, name, creator, senders = None,
+ description=None, transport=None):
attribs = { 'name': name, 'creator': creator }
if senders:
attribs['senders'] = senders
@@ -415,7 +418,8 @@ class JingleProtocol031(JingleProtocol):
return ('jingle', ns.JINGLE,
{ 'action': action, 'initiator': initiator, 'sid': sid }, children)
- def Content(self, name, creator, senders, description=None, transport=None):
+ def Content(self, name, creator, senders=None,
+ description=None, transport=None):
if not senders:
senders = 'both'
return ('content', None,
--
1.5.6.5
More information about the telepathy-commits
mailing list