Module vcard
[show private | hide private]
[frames | no frames]

Module vcard

Code for reading and writing Vcard

VCARD is defined in RFC 2425 and 2426
Classes
VCard A single vcard
VCards Understands vcards in a vfile
VFile  

Exceptions
VFileException  

Function Summary
  format_binary(value)
Return base 64 encoded string
  format_stringv2(value)
Return a vCard v2 string.
  format_stringv3(value)
Return a vCard v3 string.
  myqpencodestring(value)
My own routine to do qouted printable since the builtin one doesn't encode CR or NL!
  out_adr(vals, formatter)
  out_adr_scp6600(vals, formatter)
  out_categories(vals, formatter, field)
  out_categories_apple(vals, formatter)
  out_email_scp6600(vals, formatter)
  out_emails(vals, formatter)
  out_eu(vals, formatter, field, bpkey)
  out_line(name, attributes, value, formatter, join_char)
Returns a single field correctly formatted and encoded (including trailing newline)
  out_names(vals, formatter, limit)
  out_note(vals, formatter, limit)
  out_tel(vals, formatter)
  out_tel_scp6600(vals, formatter)
  out_url_scp660(vals, formatter)
  out_urls(vals, formatter)
  output_entry(entry, profile, limit_fields)

Function Details

format_binary(value)

Return base 64 encoded string

format_stringv2(value)

Return a vCard v2 string. Any embedded commas or semi-colons are removed.

format_stringv3(value)

Return a vCard v3 string. Embedded commas and semi-colons are backslash quoted

myqpencodestring(value)

My own routine to do qouted printable since the builtin one doesn't encode CR or NL!

out_line(name, attributes, value, formatter, join_char=';')

Returns a single field correctly formatted and encoded (including trailing newline)
Parameters:
name - The field name
attributes - A list of string attributes (eg "TYPE=intl,post" ). Usually empty except for TEL and ADR. You can also pass in None.
value - The field value. You can also pass in a list of components which will be joined with join_char such as the 6 components of N
formatter - The function that formats the value/components. See the various format_ functions. They will automatically ensure that ENCODING=foo attributes are added if appropriate

Generated by Epydoc 2.1 on Fri Aug 15 18:58:34 2008 http://epydoc.sf.net