From 60d8a8e9b38b8c2e79fa12fccd06a57f9fcfe20b Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 30 Oct 2005 16:46:50 +0000 Subject: [PATCH] save vcard when we get it --- src/common/connection.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/connection.py b/src/common/connection.py index 4f9311e96..8203ac68e 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -227,6 +227,10 @@ class Connection: return if vc.getTag('vCard').getNamespace() == common.xmpp.NS_VCARD: card = vc.getChildren()[0] + path_to_file = os.path.join(gajim.VCARDPATH, frm) + fil = open(path_to_file, 'w') + fil.write(str(card)) + fil.close() for info in card.getChildren(): name = info.getName() if name in ('ADR', 'TEL', 'EMAIL'): # we can have several