[Vobject] newbie question
Jeff Edwards
jeffedwa at gmail.com
Thu Jan 26 07:00:33 CST 2012
Thanks for your answer. It however does not seem to be a solution.
Do you have any other ideas?
Many thanks,
Jeff
this:
def _tag_email(self,tag,data):
if data:
for k,v in data.items():
print k,v
temp = self.j.add('email')
temp.value = v
temp.type_param = 'INTERNET'
produces:
email jeffsmith at me.com
email jeffsmith at mac.com
VCARD
ADR: 32 Smith Waters Rd
Kincumber, 2251
Australia
BDAY: 1961-10-21
N: Jeff G. Smith
VERSION: 3.0
TEL: 02 4332 0368
params for TEL:
HOME ['HOME']
TEL:
NICKNAME: Eddie
EMAIL: jeffsmith at me.com
params for EMAIL:
TYPE ['INTERNET']
EMAIL: jeffsmith at mac.com
params for EMAIL:
TYPE ['INTERNET']
FN: Jeff Smith
On 26/01/2012, at 11:36 PM, Adam Tauno Williams wrote:
> On Thu, 2012-01-26 at 22:49 +1100, Jeff Edwards wrote:
>> The problem I have is that the second email or phone shows as empty
>> when pretty printed
>
>> for k,v in data.items():
>> self.j.add('email')
>> self.j.email.value = v
>> self.j.email.type_param = 'INTERNET'
>
> try -
>
> for k,v in data.items():
> tmp = self.j.add('email')
> tmp.value = v
> tmp.type_param = 'INTERNET'
>
>
> --
> Adam Tauno Williams <http://www.whitemiceconsulting.com>
> System Administrator, OpenGroupware Developer, LPI / CNA
> Fingerprint 8C08 209A FBE3 C41A DD2F A270 2D17 8FA4 D95E D383
> _______________________________________________
> VObject mailing list
> VObject at lists.skyhouseconsulting.com
> http://lists.skyhouseconsulting.com/mailman/listinfo/vobject
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.skyhouseconsulting.com/pipermail/vobject/attachments/20120127/cf40fda3/attachment.htm>
More information about the VObject
mailing list