conduit r1575 - in trunk: . conduit/datatypes
- From: johncarr svn gnome org
- To: svn-commits-list gnome org
- Subject: conduit r1575 - in trunk: . conduit/datatypes
- Date: Thu, 17 Jul 2008 12:53:31 +0000 (UTC)
Author: johncarr
Date: Thu Jul 17 12:53:31 2008
New Revision: 1575
URL: http://svn.gnome.org/viewvc/conduit?rev=1575&view=rev
Log:
Make sure that vcard always has a FN and a N (Fixes #528221)
Modified:
trunk/ (props changed)
trunk/ChangeLog
trunk/conduit/datatypes/Contact.py
Modified: trunk/conduit/datatypes/Contact.py
==============================================================================
--- trunk/conduit/datatypes/Contact.py (original)
+++ trunk/conduit/datatypes/Contact.py Thu Jul 17 12:53:31 2008
@@ -26,6 +26,9 @@
self.vcard = vobject.readOne(string)
def get_vcard_string(self, version=2.1):
+ for prop in ('fn', 'n'):
+ if prop not in self.vcard.contents:
+ self.vcard.add(prop)
return self.vcard.serialize()
def get_emails(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]