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-27 11:20:48 +0400
committerJacek Konieczny <jajcus@jajcus.net>2007-06-27 11:20:48 +0400
commitb0d0c7311ebf3215d0bd1e5df105b1c3d9bee02c (patch)
treecb2a95549b0cf60cc7ef47bd21db7cff2528fb2d /pyxmpp
parent61e57fc2532dda60509bd5ec49502b61576b429a (diff)
- RFC2425 parsing of VCardImage and attribute initialization fix (closes #13)
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 e21bde8..5bdefa1 100644
--- a/pyxmpp/jabber/vcard.py
+++ b/pyxmpp/jabber/vcard.py
@@ -367,8 +367,8 @@ class VCardImage(VCardField):
VCardField.__init__(self,name)
if not rfc2425parameters:
rfc2425parameters={}
+ self.uri,self.type,self.image=[None]*3
if isinstance(value,libxml2.xmlNode):
- self.uri,self.type,self.image=[None]*3
n=value.children
vns=get_node_ns(value)
while n:
@@ -1070,7 +1070,7 @@ class VCardSound(VCardField):
if (not self.phonetic and not self.uri and not self.sound):
raise Empty,"Bad SOUND value in vcard"
else:
- if rfc2425parameters.get("value").lower()=="uri":
+ if rfc2425parameters.get("value", "").lower()=="uri":
self.uri=value
self.sound=None
self.phonetic=None