Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Jajcus/pyxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pyxmpp
diff options
context:
space:
mode:
authorJacek Konieczny <jajcus@jajcus.net>2007-06-28 12:36:17 +0400
committerJacek Konieczny <jajcus@jajcus.net>2007-06-28 12:36:17 +0400
commit6560fbcf4900a7ede466b0f07b37831cc5b55f83 (patch)
tree803407f3c02451441b6a6769de3e134318e97cf1 /pyxmpp
parentb0d0c7311ebf3215d0bd1e5df105b1c3d9bee02c (diff)
- last fix applied to two other occurences of the buf (closes #13, again)
Diffstat (limited to 'pyxmpp')
-rw-r--r--pyxmpp/jabber/vcard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyxmpp/jabber/vcard.py b/pyxmpp/jabber/vcard.py
index 5bdefa1..027a912 100644
--- a/pyxmpp/jabber/vcard.py
+++ b/pyxmpp/jabber/vcard.py
@@ -391,7 +391,7 @@ class VCardImage(VCardField):
if (not self.uri and not self.image):
raise Empty,"Bad %s value in vcard" % (name,)
else:
- if rfc2425parameters.get("value").lower()=="uri":
+ if rfc2425parameters.get("value", "").lower()=="uri":
self.uri=value
self.type=None
else:
@@ -1042,8 +1042,8 @@ class VCardSound(VCardField):
VCardField.__init__(self,name)
if not rfc2425parameters:
rfc2425parameters={}
+ self.uri,self.sound,self.phonetic=[None]*3
if isinstance(value,libxml2.xmlNode):
- self.uri,self.sound,self.phonetic=[None]*3
n=value.children
vns=get_node_ns(value)
while n: