ECal.Component¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class ECal.Component(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
A newly-created calendar component object.
- Return type:
Creates a new empty calendar component object. Once created, you should set it from an existing #icalcomponent structure by using
ECal.Component.set_icalcomponent
() or with a new empty component type by usingECal.Component.set_new_vtype
().New in version 3.34.
- classmethod new_from_icalcomponent(icalcomp)¶
- Parameters:
icalcomp (
ICalGLib.Component
) – AnICalGLib.Component
to use- Returns:
An
ECal.Component
with icalcomp assigned on success,None
if the icalcomp cannot be assigned toECal.Component
.- Return type:
Creates a new
ECal.Component
which will has set icalcomp as an innerICalGLib.Component
. The newly createdECal.Component
takes ownership of the icalcomp, and if the call toECal.Component.set_icalcomponent
() fails, then icalcomp is freed.New in version 3.34.
- classmethod new_from_string(calobj)¶
- Parameters:
calobj (
str
) – A string representation of an iCalendar component.- Returns:
A calendar component representing the given iCalendar string on success,
None
if there was an error.- Return type:
Creates a new calendar component object from the given iCalendar string.
New in version 3.34.
- classmethod new_vtype(vtype)¶
- Parameters:
vtype (
ECal.ComponentVType
) – anECal.ComponentVType
- Returns:
A newly-created calendar component object with set vtype.
- Return type:
Creates a new
ECal.Component
of type vtype.New in version 3.34.
- abort_sequence()¶
Aborts the sequence change needed in the given calendar component, which means it will not require a sequence commit (via
ECal.Component.commit_sequence
()) even if the changes done require a sequence increment.New in version 3.34.
- add_alarm(alarm)¶
- Parameters:
alarm (
ECal.ComponentAlarm
) – an alarm, as anECal.ComponentAlarm
Adds an alarm subcomponent to a calendar component. You should have created the alarm by using
ECal.ComponentAlarm.new
(); it is invalid to use anECal.ComponentAlarm
structure that came fromECal.Component.get_alarm
(). After adding the alarm, the alarm structure is no longer valid because the internal structures may change and you should get rid of it by using e_cal_component_alarm_free().New in version 3.34.
- clone()¶
- Returns:
A newly-created calendar component with the same values as the original one.
- Return type:
Creates a new calendar component object by copying the information from another one.
New in version 3.34.
- commit_sequence()¶
Increments the sequence number property in a calendar component object if it needs it. This needs to be done when any of a number of properties listed in RFC 2445 change values, such as the start and end dates of a component.
This function must be called before calling
ECal.Component.get_as_string
() to ensure that the component is fully consistent.New in version 3.34.
- dup_comment_for_locale(locale)¶
- Parameters:
- Returns:
comment for the locale,
None
if no comment is set on the self.- Return type:
Returns a comment for the given locale. When locale is
None
, the current locale is assumed. If no such comment for the locale exists either a comment with no language parameter or the first found is returned.Free the returned non-
None
ECal.ComponentText
with e_cal_component_text_free(), when no longer needed.New in version 3.46.
- dup_description_for_locale(locale)¶
- Parameters:
- Returns:
description for the locale,
None
if no description is set on the self.- Return type:
Returns a description for the given locale. When locale is
None
, the current locale is assumed. If no such description for the locale exists either a description with no language parameter or the first found is returned.Free the returned non-
None
ECal.ComponentText
with e_cal_component_text_free(), when no longer needed.New in version 3.46.
- dup_summaries()¶
- Returns:
the summary properties and their parameters, as a
GLib.SList
ofECal.ComponentText
structures.- Return type:
[
ECal.ComponentText
] orNone
Queries the summary of a calendar component object. There can be one summary property per locale. Free the returned
GLib.SList
with g_slist_free_full (slist, e_cal_component_text_free);, when no longer needed.New in version 3.46.
- dup_summary_for_locale(locale)¶
- Parameters:
- Returns:
summary for the locale,
None
if no summary is set on the self.- Return type:
Returns a summary for the given locale. When locale is
None
, the current locale is assumed. If no such summary for the locale exists either a summary with no language parameter or the first found is returned.Free the returned non-
None
ECal.ComponentText
with e_cal_component_text_free(), when no longer needed.New in version 3.46.
- get_alarm(auid)¶
- Parameters:
auid (
str
) – Unique identifier for the sought alarm subcomponent.- Returns:
the alarm subcomponent that corresponds to the specified auid, or
None
if no alarm exists with that UID- Return type:
Queries a particular alarm subcomponent of a calendar component. Free the returned pointer with e_cal_component_alarm_free(), when no longer needed.
New in version 3.34.
- get_alarm_uids()¶
- Returns:
a
GLib.SList
of unique identifiers for alarms.- Return type:
Builds a list of the unique identifiers of the alarm subcomponents inside a calendar component. Free the returned
GLib.SList
with g_slist_free_full (slist,GLib.free
);, when no longer needed.New in version 3.34.
- get_all_alarms()¶
- Returns:
the alarm subcomponents as a
GLib.SList
ofECal.ComponentAlarm
, orNone
, if no alarm exists- Return type:
[
ECal.ComponentAlarm
] orNone
Queries all alarm subcomponents of a calendar component. Free the returned
GLib.SList
with g_slist_free_full (slist, e_cal_component_alarm_free);, when no longer needed.New in version 3.34.
- get_as_string()¶
- Returns:
String representation of the calendar component according to RFC 2445.
- Return type:
Gets the iCalendar string representation of a calendar component. You should call
ECal.Component.commit_sequence
() before this function to ensure that the component’s sequence number is consistent with the state of the object.New in version 3.34.
- get_attachments()¶
- Returns:
a
GLib.SList
of attachments, asICalGLib.Attach
objects- Return type:
[
ICalGLib.Attach
] orNone
Queries the attachment properties as
ICalGLib.Attach
objects of the calendar component object. Changes on these objects are directly affecting the component. Free the returnedGLib.SList
with g_slist_free_full (slist,GObject.Object.unref
);, when no longer needed.New in version 3.34.
- get_attendees()¶
- Returns:
the attendees, as a
GLib.SList
of anECal.ComponentAttendee
, orNone
, when none are set- Return type:
Queries the attendee properties of the calendar component object. Free the returned
GLib.SList
with g_slist_free_full (slist, e_cal_component_attendee_free);, when no longer needed.New in version 3.34.
- get_categories()¶
-
Queries the categories of the given calendar component. The categories are returned in the categories argument, which, on success, will contain a comma-separated list of all categories set in the component. Free the returned string with
GLib.free
(), when no longer needed.New in version 3.34.
- get_categories_list()¶
- Returns:
the
GLib.SList
of strings, where each string is a category, orNone
, when no category is set.- Return type:
Queries the list of categories of a calendar component object. Each element in the returned categ_list is a string with the corresponding category. Free the returned
GLib.SList
with g_slist_free_full (categories,GLib.free
); , when no longer needed.New in version 3.34.
- get_classification()¶
- Return type:
Queries the classification of a calendar component object. If the classification property is not set on this component, this function returns
ECal.ComponentClassification.NONE
.Retuurns: a classification of the self, as an
ECal.ComponentClassification
New in version 3.34.
- get_comments()¶
- Returns:
the comment properties and their parameters, as a list of
ECal.ComponentText
structures; orNone
, when the component doesn’t contain any.- Return type:
[
ECal.ComponentText
] orNone
Queries the comments of a calendar component object. The comment property can appear several times inside a calendar component, and so a list of
ECal.ComponentText
is returned. Free the returnedGLib.SList
with g_slist_free_full (slist, e_cal_component_text_free);, when no longer needed.New in version 3.34.
- get_completed()¶
- Returns:
the completion date, as an
ICalGLib.Time
, orNone
, when none is set- Return type:
Queries the date at which a calendar compoment object was completed. Free the returned non-
None
pointer withGObject.Object.unref
(), when no longer needed.New in version 3.34.
- get_contacts()¶
- Returns:
the contact properties and their parameters, as a
GLib.SList
ofECal.ComponentText
structures.- Return type:
Queries the contact of a calendar component object. The contact property can appear several times inside a calendar component, and so a list of
ECal.ComponentText
is returned. Free the returnedGLib.SList
with g_slist_free_full (slist, e_cal_component_text_free);, when no longer needed.New in version 3.34.
- get_created()¶
- Returns:
the creation date, as an
ICalGLib.Time
, orNone
, when none is set- Return type:
Queries the date in which a calendar component object was created in the calendar store. Free the returned non-
None
pointer withGObject.Object.unref
(), when no longer needed.New in version 3.34.
- get_descriptions()¶
- Returns:
the description properties and their parameters, as a
GLib.SList
ofECal.ComponentText
structures.- Return type:
[
ECal.ComponentText
] orNone
Queries the description of a calendar component object. Journal components may have more than one description, and as such this function returns a list of
ECal.ComponentText
structures. All other types of components can have at most one description for a single language. Free the returnedGLib.SList
with g_slist_free_full (slist, e_cal_component_text_free);, when no longer needed.New in version 3.34.
- get_dtend()¶
- Returns:
the date/time end, as an
ECal.ComponentDateTime
- Return type:
Queries the date/time end of a calendar component object. In case there’s no DTEND, but only DTSTART and DURATION, then the end is computed from the later two. Free the returned
ECal.ComponentDateTime
with e_cal_component_datetime_free(), when no longer needed.New in version 3.34.
- get_dtstamp()¶
- Returns:
A value for the date/timestamp, or
None
, when none found.- Return type:
Queries the date/timestamp property of a calendar component object, which is the last time at which the object was modified by a calendar user agent.
Free a non-
None
returned object withGObject.Object.unref
(), when no longer needed.New in version 3.34.
- get_dtstart()¶
- Returns:
the date/time start, as an
ECal.ComponentDateTime
- Return type:
Queries the date/time start of a calendar component object. Free the returned
ECal.ComponentDateTime
with e_cal_component_datetime_free(), when no longer needed.New in version 3.34.
- get_due()¶
- Returns:
the due date/time, as an
ECal.ComponentDateTime
- Return type:
Queries the due date/time of a calendar component object. In case there’s no DUE, but only DTSTART and DURATION, then the due is computed from the later two. Free the returned
ECal.ComponentDateTime
with e_cal_component_datetime_free(), when no longer needed.New in version 3.34.
- get_exdates()¶
- Returns:
the list of exception dates, as a
GLib.SList
ofECal.ComponentDateTime
- Return type:
Queries the list of exception date properties in a calendar component object. Free the returned
GLib.SList
with g_slist_free_full (exdates, e_cal_component_datetime_free);, when no longer needed.New in version 3.34.
- get_exrule_properties()¶
- Returns:
a list of exception rule properties
- Return type:
[
ICalGLib.Property
] orNone
Queries the list of exception rule properties of a calendar component object. Free the list with g_slist_free_full (slist,
GObject.Object.unref
);, when no longer needed.New in version 3.34.
- get_exrules()¶
- Returns:
a
GLib.SList
of exception rules asICalGLib.Recurrence
structures, orNone
, when none exist.- Return type:
[
ICalGLib.Recurrence
] orNone
Queries the list of exception rule properties of a calendar component object. Free the returned list with g_slist_free_full (slist,
GObject.Object.unref
);, when no longer needed.New in version 3.34.
- get_geo()¶
- Returns:
the geographic position as
ICalGLib.Geo
, orNone
, when none set.- Return type:
ICalGLib.Geo
orNone
Gets the geographic position property of a calendar component object. Free the returned non-
None
object withGObject.Object.unref
(), when no longer needed.New in version 3.34.
- get_icalcomponent()¶
- Returns:
An
ICalGLib.Component
structure, orNone
if the self has noICalGLib.Component
set to it.- Return type:
Queries the #icalcomponent structure that a calendar component object is wrapping.
New in version 3.34.
- get_id()¶
- Returns:
the id of the component
- Return type:
Get the ID of the component as an
ECal.ComponentId
. The return value should be freed with e_cal_component_id_free(), when no longer needed.New in version 3.34.
- get_last_modified()¶
- Returns:
the last modified time, as an
ICalGLib.Time
, orNone
, when none is set- Return type:
Queries the time at which a calendar component object was last modified in the calendar store. Free the returned non-
None
pointer withGObject.Object.unref
(), when no longer needed.New in version 3.34.
- get_location()¶
-
Queries the location property of a calendar component object.
New in version 3.34.
- get_organizer()¶
- Returns:
an
ECal.ComponentOrganizer
structure destribing the organizer, orNone
, when none exists.- Return type:
Queries the organizer property of a calendar component object. Free the returned structure with e_cal_component_organizer_free(), when no longer needed.
New in version 3.34.
- get_percent_complete()¶
- Returns:
the percent-complete property value, or -1 if not found
- Return type:
Queries the percent-complete property of a calendar component object.
New in version 3.34.
- get_priority()¶
- Returns:
the priority property value, or -1, if not found
- Return type:
Queries the priority property of a calendar component object.
New in version 3.34.
- get_rdates()¶
- Returns:
the list of recurrence dates, as a
GLib.SList
ofECal.ComponentPeriod
structures.- Return type:
[
ECal.ComponentPeriod
] orNone
Queries the list of recurrence date properties in a calendar component object. Free the returned
GLib.SList
with g_slist_free_full (slist, e_cal_component_period_free);, when no longer needed.New in version 3.34.
- get_recurid()¶
- Returns:
the recurrence id property, as an
ECal.ComponentRange
- Return type:
Queries the recurrence id property of a calendar component object. Free the returned
ECal.ComponentRange
with e_cal_component_range_free(), whe no longer needed.New in version 3.34.
- get_recurid_as_string()¶
- Returns:
the recurrence ID as a string.
- Return type:
Gets the recurrence ID property as a string.
New in version 3.34.
- get_rrule_properties()¶
- Returns:
a list of recurrence rule properties
- Return type:
[
ICalGLib.Property
] orNone
Queries a list of recurrence rule properties of a calendar component object. Free the list with g_slist_free_full (slist,
GObject.Object.unref
);, when no longer needed.New in version 3.34.
- get_rrules()¶
- Returns:
a
GLib.SList
of recurrence rules asICalGLib.Recurrence
structures, orNone
, when none exist.- Return type:
[
ICalGLib.Recurrence
] orNone
Queries the list of recurrence rule properties of a calendar component object. Free the returned list with g_slist_free_full (slist,
GObject.Object.unref
);, when no longer needed.New in version 3.34.
- get_sequence()¶
- Returns:
the sequence number, or -1 if not found
- Return type:
Queries the sequence number of a calendar component object.
New in version 3.34.
- get_status()¶
- Returns:
the status value; or
ICalGLib.PropertyStatus.NONE
, if the component has no status property- Return type:
Queries the status property of a calendar component object.
New in version 3.34.
- get_summary()¶
- Returns:
the summary, as an
ECal.ComponentText
, orNone
, when none is set- Return type:
Queries the summary of a calendar component object. It returns the first found summary property of the component. To get a summary suitable for a specific locale use
ECal.Component.dup_summary_for_locale
().Free the returned pointer withe_cal_component_text_free(), when no longer needed.
New in version 3.34.
- get_transparency()¶
- Returns:
the time transparency, as an
ECal.ComponentTransparency
; valueECal.ComponentTransparency.NONE
is returned when none is set- Return type:
Queries the time transparency of a calendar component object.
New in version 3.34.
- get_uid()¶
- Returns:
the UID string
- Return type:
Queries the unique identifier of a calendar component object.
New in version 3.34.
- get_url()¶
-
Queries the uniform resource locator property of a calendar component object. Free the returned URL with
GLib.free
(), when no longer needed.New in version 3.34.
- get_vtype()¶
- Returns:
The type of the component, as defined by RFC 2445.
- Return type:
Queries the type of a calendar component object.
New in version 3.34.
- has_alarms()¶
-
Checks whether the component has any alarms.
New in version 3.34.
- has_attachments()¶
-
Queries the component to see if it has attachments.
New in version 3.34.
- has_attendees()¶
-
Queries a calendar component object for the existence of attendees.
New in version 3.34.
- has_exceptions()¶
-
Queries whether a calendar component object has any exception dates or exception rules.
New in version 3.34.
- has_exdates()¶
-
Queries whether a calendar component object has any exception dates defined for it.
New in version 3.34.
- has_exrules()¶
-
Queries whether a calendar component object has any exception rules defined for it.
New in version 3.34.
- has_organizer()¶
-
Check whether a calendar component object has an organizer or not.
New in version 3.34.
- has_rdates()¶
-
Queries whether a calendar component object has any recurrence dates defined for it.
New in version 3.34.
- has_recurrences()¶
-
Queries whether a calendar component object has any recurrence dates or recurrence rules.
New in version 3.34.
- has_rrules()¶
-
Queries whether a calendar component object has any recurrence rules defined for it.
New in version 3.34.
- has_simple_recurrence()¶
-
Checks whether the given calendar component object has simple recurrence rules or more complicated ones.
New in version 3.34.
- is_instance()¶
-
Checks whether a calendar component object is an instance of a recurring event.
New in version 3.34.
- remove_alarm(auid)¶
- Parameters:
auid (
str
) – UID of the alarm to remove.
Removes an alarm subcomponent from a calendar component. If the alarm that corresponds to the specified auid had been fetched with
ECal.Component.get_alarm
(), then those alarm structures will be invalid; you should get rid of them with e_cal_component_alarm_free() before using this function.New in version 3.34.
- remove_all_alarms()¶
Remove all alarms from the calendar component
New in version 3.34.
- set_attachments(attachments)¶
- Parameters:
attachments ([
ICalGLib.Attach
] orNone
) – aGLib.SList
of anICalGLib.Attach
, orNone
to remove any existing
Sets the attachments of the calendar component object.
New in version 3.34.
- set_attendees(attendee_list)¶
- Parameters:
attendee_list ([
ECal.ComponentAttendee
] orNone
) – Values for attendee properties, orNone
to unset
Sets the attendees of a calendar component object
New in version 3.34.
- set_categories(categories)¶
- Parameters:
categories (
str
) – Comma-separated list of categories.
Sets the list of categories for a calendar component.
New in version 3.34.
- set_categories_list(categ_list)¶
- Parameters:
categ_list ([
str
]) – List of strings, one for each category.
Sets the list of categories of a calendar component object.
New in version 3.34.
- set_classification(classif)¶
- Parameters:
classif (
ECal.ComponentClassification
) – Classification to use.
Sets the classification property of a calendar component object. To unset the property, specify
ECal.ComponentClassification.NONE
for classif.New in version 3.34.
- set_comments(text_list)¶
- Parameters:
text_list ([
ECal.ComponentText
]) – List ofECal.ComponentText
structures.
Sets the comments of a calendar component object. The comment property can appear several times inside a calendar component, and so a list of
ECal.ComponentText
structures is used.New in version 3.34.
- set_completed(tt)¶
- Parameters:
tt (
ICalGLib.Time
orNone
) – Value for the completion date.
Sets the date at which a calendar component object was completed.
New in version 3.34.
- set_contacts(text_list)¶
- Parameters:
text_list ([
ECal.ComponentText
]) – List ofECal.ComponentText
structures.
Sets the contact of a calendar component object. The contact property can appear several times inside a calendar component, and so a list of
ECal.ComponentText
structures is used.New in version 3.34.
- set_created(tt)¶
- Parameters:
tt (
ICalGLib.Time
orNone
) – Value for the creation date.
Sets the date in which a calendar component object is created in the calendar store. This should only be used inside a calendar store application, i.e. not by calendar user agents.
New in version 3.34.
- set_descriptions(text_list)¶
- Parameters:
text_list ([
ECal.ComponentText
]) – List ofECal.ComponentText
structures.
Sets the description of a calendar component object. Journal components may have more than one description, and as such this function takes in a list of
ECal.ComponentText
structures. All other types of components can have at most one description.New in version 3.34.
- set_dtend(dt)¶
- Parameters:
dt (
ECal.ComponentDateTime
orNone
) – End date/time, orNone
, to remove the property.
Sets the date/time end property of a calendar component object.
New in version 3.34.
- set_dtstamp(tt)¶
- Parameters:
tt (
ICalGLib.Time
) – Date/timestamp value.
Sets the date/timestamp of a calendar component object. This should be called whenever a calendar user agent makes a change to a component’s properties.
New in version 3.34.
- set_dtstart(dt)¶
- Parameters:
dt (
ECal.ComponentDateTime
orNone
) – Start date/time, orNone
, to remove the property.
Sets the date/time start property of a calendar component object.
New in version 3.34.
- set_due(dt)¶
- Parameters:
dt (
ECal.ComponentDateTime
orNone
) – End date/time, orNone
, to remove the property.
Sets the due date/time property of a calendar component object.
New in version 3.34.
- set_exdates(exdate_list)¶
- Parameters:
exdate_list ([
ECal.ComponentDateTime
] orNone
) – List ofECal.ComponentDateTime
structures.
Sets the list of exception dates in a calendar component object.
New in version 3.34.
- set_exrules(recur_list)¶
- Parameters:
recur_list ([
ICalGLib.Recurrence
] orNone
) – aGLib.SList
ofICalGLib.Recurrence
structures, orNone
.
Sets the list of exception rules in a calendar component object.
New in version 3.34.
- set_geo(geo)¶
- Parameters:
geo (
ICalGLib.Geo
orNone
) – Value for the geographic position property, orNone
to unset.
Sets the geographic position property on a calendar component object.
New in version 3.34.
- set_icalcomponent(icalcomp)¶
- Parameters:
icalcomp (
ICalGLib.Component
orNone
) – AnICalGLib.Component
.- Returns:
True
on success,False
if icalcomp is an unsupported component type.- Return type:
Sets the contents of a calendar component object from an
ICalGLib.Component
. If the self already had anICalGLib.Component
set into it, it will be freed automatically.Supported component types are VEVENT, VTODO, VJOURNAL, VFREEBUSY, and VTIMEZONE.
New in version 3.34.
- set_last_modified(tt)¶
- Parameters:
tt (
ICalGLib.Time
orNone
) – Value for the last time modified.
Sets the time at which a calendar component object was last stored in the calendar store. This should not be called by plain calendar user agents.
New in version 3.34.
- set_location(location)¶
- Parameters:
location (
str
orNone
) – Location value. UseNone
or empty string, to unset the property.
Sets the location property of a calendar component object.
New in version 3.34.
- set_new_vtype(type)¶
- Parameters:
type (
ECal.ComponentVType
) – Type of calendar component to create.
Clears any existing component data from a calendar component object and creates a new
ICalGLib.Component
of the specified type for it. The only property that will be set in the new component will be its unique identifier.New in version 3.34.
- set_organizer(organizer)¶
- Parameters:
organizer (
ECal.ComponentOrganizer
orNone
) – Value for the organizer property, as anECal.ComponentOrganizer
Sets the organizer of a calendar component object
New in version 3.34.
- set_percent_complete(percent)¶
- Parameters:
percent (
int
) – a percent to set, or -1 to remove the property
Sets percent complete. The percent can be between 0 and 100, inclusive. A special value -1 can be used to remove the percent complete property.
New in version 3.34.
- set_priority(priority)¶
- Parameters:
priority (
int
) – Value for the priority property.
Sets the priority property of a calendar component object. The priority can be between 0 and 9, inclusive. A special value -1 can be used to remove the priority property.
New in version 3.34.
- set_rdates(rdate_list)¶
- Parameters:
rdate_list ([
ECal.ComponentPeriod
] orNone
) – List ofECal.ComponentPeriod
structures, orNone
to set none
Sets the list of recurrence dates in a calendar component object.
New in version 3.34.
- set_recurid(recur_id)¶
- Parameters:
recur_id (
ECal.ComponentRange
orNone
) – Value for the recurrence id property, orNone
, to remove the property.
Sets the recurrence id property of a calendar component object.
New in version 3.34.
- set_rrules(recur_list)¶
- Parameters:
recur_list ([
ICalGLib.Recurrence
] orNone
) – List ofICalGLib.Recurrence
structures, orNone
.
Sets the list of recurrence rules in a calendar component object.
New in version 3.34.
- set_sequence(sequence)¶
- Parameters:
sequence (
int
) – a sequence number to set, or -1 to remove the property
Sets the sequence number of a calendar component object. A special value -1 can be used to remove the sequence number property.
Normally this function should not be called, since the sequence number is incremented automatically at the proper times.
New in version 3.34.
- set_status(status)¶
- Parameters:
status (
ICalGLib.PropertyStatus
) – Status value, as anICalGLib.PropertyStatus
. UseICalGLib.PropertyStatus.NONE
, to unset the property
Sets the status property of a calendar component object.
New in version 3.34.
- set_summaries(text_list)¶
- Parameters:
text_list ([
ECal.ComponentText
]) – List ofECal.ComponentText
structures.
Sets the summary of a calendar component object. The summaries can have each different language, otherwise it’s not allowed to have more than one summary property.
This does not update any alarm subcomponent description.
New in version 3.46.
- set_summary(summary)¶
- Parameters:
summary (
ECal.ComponentText
) – Summary property and its parameters.
Sets the summary of a calendar component object.
This also updates any alarm subcomponent descriptions, if needed.
New in version 3.34.
- set_transparency(transp)¶
- Parameters:
transp (
ECal.ComponentTransparency
) – Time transparency value.
Sets the time transparency of a calendar component object. Use
ECal.ComponentTransparency.NONE
to unset the property.New in version 3.34.
- set_uid(uid)¶
- Parameters:
uid (
str
) – Unique identifier.
Sets the unique identifier string of a calendar component object.
New in version 3.34.
- set_url(url)¶
-
Sets the uniform resource locator property of a calendar component object. A
None
or an empty string removes the property.New in version 3.34.
- strip_errors()¶
Strips all error messages from the calendar component. Those error messages are added to the iCalendar string representation whenever an invalid is used for one of its fields.
New in version 3.34.