GData.CalendarQuery¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
A shortcut to request all events scheduled for the future. |
||
r/w |
Specifies the maximum number of attendees to list for an event. |
||
r/w |
Specifies order of entries in a feed. |
||
d/r/w |
Specifies end of period to expand recurrences for. |
||
d/r/w |
Specifies start of period to expand recurrences for. |
||
r/w |
Whether to include deleted/cancelled events in the query feed. |
||
r/w |
Indicates whether recurring events should be expanded. |
||
d/r/w |
Specifies direction of sorting. |
||
r/w |
A timespan such that only events within the timespan are returned. |
||
r/w |
A timespan such that only events within the timespan are returned. |
||
r/w |
The current timezone. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GData.CalendarQuery(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.CalendarQuerystructure are private and should never be accessed directly.- classmethod new(q)¶
- Parameters:
- Returns:
a new
GData.CalendarQuery- Return type:
Creates a new
GData.CalendarQuerywith itsGData.Query:qproperty set to q.
- classmethod new_with_limits(q, start_min, start_max)¶
- Parameters:
- Returns:
a new
GData.CalendarQuery- Return type:
Creates a new
GData.CalendarQuerywith itsGData.Query:qproperty set to q, and the time limits start_min and start_max applied (both in seconds since the UNIX epoch).
- get_future_events()¶
- Returns:
the future events property
- Return type:
Gets the
GData.CalendarQuery:future-eventsproperty.
- get_max_attendees()¶
- Returns:
the maximum number of attendees, or 0
- Return type:
Gets the
GData.CalendarQuery:max-attendeesproperty. If the property is unset, 0 will be returned.New in version 0.9.1.
- get_order_by()¶
-
Gets the
GData.CalendarQuery:order-byproperty.
- get_recurrence_expansion_end()¶
- Returns:
the UNIX timestamp for the recurrence-expansion-end property, or -1
- Return type:
Gets the
GData.CalendarQuery:recurrence-expansion-endproperty. If the property is unset, -1 will be returned.Deprecated since version 0.17.7: Use
GData.CalendarQuery:single-eventsinstead, as this is no longer supported on the server.
- get_recurrence_expansion_start()¶
- Returns:
the UNIX timestamp for the recurrence-expansion-start property, or -1
- Return type:
Gets the
GData.CalendarQuery:recurrence-expansion-startproperty. If the property is unset, -1 will be returned.Deprecated since version 0.17.7: Use
GData.CalendarQuery:single-eventsinstead, as this is no longer supported on the server.
- get_single_events()¶
- Returns:
the single events property
- Return type:
Gets the
GData.CalendarQuery:single-eventsproperty.
- get_sort_order()¶
-
Gets the
GData.CalendarQuery:sort-orderproperty.Deprecated since version 0.17.7: Manually sort the results after retrieving them, as this is no longer supported on the server.
- get_start_max()¶
- Returns:
the UNIX timestamp (in seconds) for the start-max property, or -1
- Return type:
Gets the
GData.CalendarQuery:start-maxproperty. If the property is unset, -1 will be returned.
- get_start_min()¶
- Returns:
the UNIX timestamp (in seconds) for the start-min property, or -1
- Return type:
Gets the
GData.CalendarQuery:start-minproperty. If the property is unset, -1 will be returned.
- get_timezone()¶
-
Gets the
GData.CalendarQuery:timezoneproperty.New in version 0.2.0.
- set_future_events(future_events)¶
-
Sets the
GData.CalendarQuery:future-eventsproperty of theGData.CalendarQueryto future_events.
- set_max_attendees(max_attendees)¶
- Parameters:
max_attendees (
int) – a new maximum attendee count, or 0
Sets the
GData.CalendarQuery:max-attendeesproperty of theGData.CalendarQueryto the new value, max_attendees.Set max_attendees to 0 to unset the property in the query URI.
New in version 0.9.1.
- set_order_by(order_by)¶
-
Sets the
GData.CalendarQuery:order-byproperty of theGData.CalendarQueryto the new order by string, order_by.Set order_by to
Noneto unset the property in the query URI.
- set_recurrence_expansion_end(end)¶
- Parameters:
end (
int) – a new end time, or -1
Sets the
GData.CalendarQuery:recurrence-expansion-endproperty of theGData.CalendarQueryto the new time/date, end.Set end to -1 to unset the property in the query URI.
Deprecated since version 0.17.7: Use
GData.CalendarQuery:single-eventsinstead, as this is no longer supported on the server.
- set_recurrence_expansion_start(start)¶
- Parameters:
start (
int) – a new start time, or -1
Sets the
GData.CalendarQuery:recurrence-expansion-startproperty of theGData.CalendarQueryto the new time/date, start.Set start to -1 to unset the property in the query URI.
Deprecated since version 0.17.7: Use
GData.CalendarQuery:single-eventsinstead, as this is no longer supported on the server.
- set_show_deleted(show_deleted)¶
-
Sets the
GData.CalendarQuery:show-deletedproperty of theGData.CalendarQuery.New in version 0.9.1.
- set_single_events(single_events)¶
-
Sets the
GData.CalendarQuery:single-eventsproperty of theGData.CalendarQueryto single_events.
- set_sort_order(sort_order)¶
-
Sets the
GData.CalendarQuery:sort-orderproperty of theGData.CalendarQueryto the new sort order string, sort_order.Set sort_order to
Noneto unset the property in the query URI.Deprecated since version 0.17.7: Manually sort the results after retrieving them, as this is no longer supported on the server.
- set_start_max(start_max)¶
- Parameters:
start_max (
int) – a new maximum start time (in seconds since the UNIX epoch), or -1
Sets the
GData.CalendarQuery:start-maxproperty of theGData.CalendarQueryto the new time/date, start_max.Set start_max to -1 to unset the property in the query URI.
- set_start_min(start_min)¶
- Parameters:
start_min (
int) – a new minimum start time (in seconds since the UNIX epoch), or -1
Sets the
GData.CalendarQuery:start-minproperty of theGData.CalendarQueryto the new time/date, start_min.Set start_min to -1 to unset the property in the query URI.
- set_timezone(_timezone)¶
-
Sets the
GData.CalendarQuery:timezoneproperty of theGData.CalendarQueryto the new timezone string, timezone.Set timezone to
Noneto unset the property in the query URI.New in version 0.2.0.
- show_deleted()¶
-
Gets the
GData.CalendarQuery:show-deletedproperty.New in version 0.9.1.
Property Details¶
- GData.CalendarQuery.props.future_events¶
-
A shortcut to request all events scheduled for the future. Overrides the
GData.CalendarQuery:recurrence-expansion-start,GData.CalendarQuery:recurrence-expansion-end,GData.CalendarQuery:start-minandGData.CalendarQuery:start-maxproperties.
- GData.CalendarQuery.props.max_attendees¶
-
Specifies the maximum number of attendees to list for an event. If the actual number of attendees for an event is greater than this value, only the current user and the event organiser are listed.
New in version 0.9.1.
- GData.CalendarQuery.props.order_by¶
-
Specifies order of entries in a feed. Supported values are
lastmodifiedandstarttime.
- GData.CalendarQuery.props.recurrence_expansion_end¶
- Name:
recurrence-expansion-end- Type:
- Default Value:
-1- Flags:
Specifies the end of the time period to expand recurring events for, exclusive.
Deprecated since version 0.17.7: Use
GData.CalendarQuery:single-eventsinstead, as this is no longer supported on the server.
- GData.CalendarQuery.props.recurrence_expansion_start¶
- Name:
recurrence-expansion-start- Type:
- Default Value:
-1- Flags:
Specifies the beginning of the time period to expand recurring events for, inclusive.
Deprecated since version 0.17.7: Use
GData.CalendarQuery:single-eventsinstead, as this is no longer supported on the server.
- GData.CalendarQuery.props.show_deleted¶
-
Whether to include deleted/cancelled events in the query feed. Deleted events have their
GData.CalendarEvent:statusproperty set toGData.GD_EVENT_STATUS_CANCELED. They do not normally appear in query results.New in version 0.9.1.
- GData.CalendarQuery.props.single_events¶
-
Indicates whether recurring events should be expanded or represented as a single event.
- GData.CalendarQuery.props.sort_order¶
- Name:
sort-order- Type:
- Default Value:
- Flags:
Specifies direction of sorting. Supported values are
ascendinganddescending.By default, results are returned in ascending order.
Deprecated since version 0.17.7: Manually sort the results after retrieving them, as this is no longer supported on the server.
- GData.CalendarQuery.props.start_max¶
-
Together with
GData.CalendarQuery:start-min, creates a timespan such that only events within the timespan are returnedGData.CalendarQuery:start-minis inclusive, whileGData.CalendarQuery:start-maxis exclusive. Events that overlap the range are included. Both are specified in seconds since the UNIX epoch.If not specified, the default
GData.CalendarQuery:start-maxis2031-01-01.
- GData.CalendarQuery.props.start_min¶
-
Together with
GData.CalendarQuery:start-max, creates a timespan such that only events within the timespan are returned.GData.CalendarQuery:start-minis inclusive, whileGData.CalendarQuery:start-maxis exclusive. Events that overlap the range are included. Both are specified in seconds since the UNIX epoch.If not specified, the default
GData.CalendarQuery:start-minis1970-01-01.