[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819
Sebastian Krzyszkowiak
seba.dos1 at gmail.com
Sat Aug 6 08:18:33 UTC 2011
The following commit has been merged in the debian branch:
commit 31f32b3b7fd670f7d5a1de4d2194ae6eb1c5878c
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date: Sat Sep 26 16:17:47 2009 +0200
opimd: VCard-Contacts: fix local variable 'value' reference before assignment
diff --git a/framework/subsystems/opimd/pimb_vcard_contacts.py b/framework/subsystems/opimd/pimb_vcard_contacts.py
index 679f050..d112c28 100644
--- a/framework/subsystems/opimd/pimb_vcard_contacts.py
+++ b/framework/subsystems/opimd/pimb_vcard_contacts.py
@@ -47,9 +47,9 @@ _VCARD_FILE_NAME = 'vcard-contacts.vcf'
#----------------------------------------------------------------------------#
-class VCARDContactBackend(Backend):
+class VCardContactBackend(Backend):
#----------------------------------------------------------------------------#
- name = 'VCARD-Contacts'
+ name = 'VCard-Contacts'
properties = [PIMB_CAN_ADD_ENTRY, PIMB_CAN_DEL_ENTRY, PIMB_CAN_UPD_ENTRY, PIMB_CAN_UPD_ENTRY_WITH_NEW_FIELD, PIMB_NEEDS_SYNC]
_domain_handlers = None # Map of the domain handler objects we support
@@ -57,7 +57,7 @@ class VCARDContactBackend(Backend):
#----------------------------------------------------------------------------#
def __init__(self):
- super(VCARDContactBackend, self).__init__()
+ super(VCardContactBackend, self).__init__()
self._domain_handlers = {}
self._entry_ids = []
@@ -144,9 +144,9 @@ class VCARDContactBackend(Backend):
card.add('email').value = value
logger.error("vcard done")
else:
- if (field_name == "Name"): card.add('fn').value = value
- elif (field_name == "Phone"): card.add('tel').value = value
- elif (field_name == "E-mail"): card.add('email').value = value
+ if (field_name == "Name"): card.add('fn').value = field_data
+ elif (field_name == "Phone"): card.add('tel').value = field_data
+ elif (field_name == "E-mail"): card.add('email').value = field_data
file.write(card.serialize())
file.close()
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list