Skip to content
Snippets Groups Projects
Commit 716f0774 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

bugfix in vcard publish

parent cdaee537
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ class vcard_information_window:
def add_to_vcard(self, vcard, entry, txt):
"""Add an information to the vCard dictionary"""
entries = '_'.split(entry)
entries = entry.split('_')
loc = vcard
while len(entries) > 1:
if not loc.has_key(entries[0]):
......@@ -139,7 +139,6 @@ class vcard_information_window:
for e in entries:
txt = self.xml.get_widget(e+'_entry').get_text()
if txt != '':
print 'text:', txt
vcard = self.add_to_vcard(vcard, e, txt)
buffer = self.xml.get_widget('DESC_textview').get_buffer()
start_iter = buffer.get_start_iter()
......@@ -161,7 +160,6 @@ class vcard_information_window:
nick = self.plugin.accounts[self.account]['name']
self.plugin.nicks[self.account] = nick
self.plugin.send('VCARD', self.account, vcard)
print 'finished with vcard'
def on_retrieve_button_clicked(self, widget):
if self.plugin.connected[self.account] > 1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment