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.CalendarQuery
structure are private and should never be accessed directly.- classmethod new(q)¶
- Parameters:
- Returns:
a new
GData.CalendarQuery
- Return type:
Creates a new
GData.CalendarQuery
with itsGData.Query
:q
property set to q.
- classmethod new_with_limits(q, start_min, start_max)¶
- Parameters:
- Returns:
a new
GData.CalendarQuery
- Return type:
Creates a new
GData.CalendarQuery
with itsGData.Query
:q
property 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-events
property.
- get_max_attendees()¶
- Returns:
the maximum number of attendees, or 0
- Return type:
Gets the
GData.CalendarQuery
:max-attendees
property. If the property is unset, 0 will be returned.New in version 0.9.1.
- get_order_by()¶
-
Gets the
GData.CalendarQuery
:order-by
property.
- get_recurrence_expansion_end()¶
- Returns:
the UNIX timestamp for the recurrence-expansion-end property, or -1
- Return type:
Gets the
GData.CalendarQuery
:recurrence-expansion-end
property. If the property is unset, -1 will be returned.Deprecated since version 0.17.7: Use
GData.CalendarQuery
:single-events
instead, 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-start
property. If the property is unset, -1 will be returned.Deprecated since version 0.17.7: Use
GData.CalendarQuery
:single-events
instead, as this is no longer supported on the server.
- get_single_events()¶
- Returns:
the single events property
- Return type:
Gets the
GData.CalendarQuery
:single-events
property.
- get_sort_order()¶
-
Gets the
GData.CalendarQuery
:sort-order
property.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-max
property. 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-min
property. If the property is unset, -1 will be returned.
- get_timezone()¶
-
Gets the
GData.CalendarQuery
:timezone
property.New in version 0.2.0.
- set_future_events(future_events)¶
-
Sets the
GData.CalendarQuery
:future-events
property of theGData.CalendarQuery
to future_events.
- set_max_attendees(max_attendees)¶
- Parameters:
max_attendees (
int
) – a new maximum attendee count, or 0
Sets the
GData.CalendarQuery
:max-attendees
property of theGData.CalendarQuery
to 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-by
property of theGData.CalendarQuery
to the new order by string, order_by.Set order_by to
None
to 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-end
property of theGData.CalendarQuery
to 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-events
instead, 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-start
property of theGData.CalendarQuery
to 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-events
instead, as this is no longer supported on the server.
- set_show_deleted(show_deleted)¶
-
Sets the
GData.CalendarQuery
:show-deleted
property of theGData.CalendarQuery
.New in version 0.9.1.
- set_single_events(single_events)¶
-
Sets the
GData.CalendarQuery
:single-events
property of theGData.CalendarQuery
to single_events.
- set_sort_order(sort_order)¶
-
Sets the
GData.CalendarQuery
:sort-order
property of theGData.CalendarQuery
to the new sort order string, sort_order.Set sort_order to
None
to 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-max
property of theGData.CalendarQuery
to 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-min
property of theGData.CalendarQuery
to 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
:timezone
property of theGData.CalendarQuery
to the new timezone string, timezone.Set timezone to
None
to unset the property in the query URI.New in version 0.2.0.
- show_deleted()¶
-
Gets the
GData.CalendarQuery
:show-deleted
property.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-min
andGData.CalendarQuery
:start-max
properties.
- 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
lastmodified
andstarttime
.
- 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-events
instead, 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-events
instead, 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
:status
property 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
ascending
anddescending
.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-min
is inclusive, whileGData.CalendarQuery
:start-max
is 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-max
is2031-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-min
is inclusive, whileGData.CalendarQuery
:start-max
is 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-min
is1970-01-01
.