Jppy: mass-VCARD export
Nicholas Piper
nick at nickpiper.co.uk
Fri Mar 16 11:07:43 GMT 2007
Martin,
On Thu, 15 Mar 2007, martin f krafft wrote:
> is it somehow possible to export all contacts VCARDs? Or better yet,
A small python script:
import jppy
book = jppy.addressBook()
f = open("/tmp/export.vcf","w")
[f.write(r.vcard()) for r in book.records()]
(that last line is clearer written as:
for record in book.records():
f.write(record.vcard())
If you just want a smaller card with less info, try record.vcard(minimal=True)
> to synchronise jppy contacts with a single file of many vcards?
No, as there is no vcard import yet.
Please create a ticket at http://jppy.zanu.org.uk/trac/newticket if
you would like this.
Nick
--
Nick Piper, Developer, LogicaCMG http://www.nickpiper.co.uk/
GPG Encrypted mail welcome! 1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty & suffering !
More information about the Jppy
mailing list