icalendar.prop.org module#
The ORG property from RFC 6350.
- class icalendar.prop.org.vOrg(fields, /, params=None)[source]#
Bases:
objectvCard ORG (Organization) structured property per RFC 6350 Section 6.6.4.
The ORG property specifies the organizational name and units associated with the vCard.
Its value is a structured type consisting of components separated by semicolons. The components are the organization name, followed by zero or more levels of organizational unit names.
organization-name; organizational-unit-1; organizational-unit-2; ...
Semicolons are field separators and are NOT escaped. Commas and backslashes within field values ARE escaped per RFC 6350.
- Parameters:
Examples
A property value consisting of an organizational name, organizational unit #1 name, and organizational unit #2 name.
ORG:ABC\, Inc.;North American Division;Marketing
The same example in icalendar.
>>> from icalendar.prop import vOrg >>> org = vOrg(("ABC, Inc.", "North American Division", "Marketing")) >>> org.to_ical() b'ABC\\, Inc.;North American Division;Marketing' >>> vOrg.from_ical(r"ABC\, Inc.;North American Division;Marketing") ('ABC, Inc.', 'North American Division', 'Marketing')
- classmethod from_jcal(jcal_property)[source]#
Parse jCal from RFC 7265.
- Parameters:
jcal_property (
list) – The jCal property to parse.- Raises:
JCalParsingError – If the provided jCal is invalid.
- Return type:
- params: Parameters#