EDataServer.WebDAVResource¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
color |
r/w |
||
content_length |
r/w |
||
content_type |
r/w |
||
creation_date |
r/w |
||
description |
r/w |
||
display_name |
r/w |
||
etag |
r/w |
||
href |
r/w |
||
kind |
r/w |
||
last_modified |
r/w |
||
order |
r/w |
||
supports |
r/w |
Methods¶
class |
|
class |
|
|
Details¶
- class EDataServer.WebDAVResource¶
- classmethod free(ptr)¶
- Parameters:
ptr (
object
orNone
) – anEDataServer.WebDAVResource
Frees an
EDataServer.WebDAVResource
previously created withEDataServer.WebDAVResource.new
() orEDataServer.WebDAVResource.copy
(). The function does nothing, if ptr isNone
.New in version 3.26.
- classmethod new(kind, supports, href, etag, display_name, content_type, content_length, creation_date, last_modified, description, color, order)¶
- Parameters:
kind (
EDataServer.WebDAVResourceKind
) – anEDataServer.WebDAVResourceKind
of the resourcesupports (
int
) – bit-or ofEDataServer.WebDAVResourceSupports
valueshref (
str
) – href of the resourcedisplay_name (
str
orNone
) – optional display name of the resource, orNone
content_type (
str
orNone
) – optional Content-Type of the resource, orNone
content_length (
int
) – optional Content-Length of the resource, or 0creation_date (
int
) – optional date of creation of the resource, or 0last_modified (
int
) – optional last modified time of the resource, or 0description (
str
orNone
) – optional description of the resource, orNone
color (
str
orNone
) – optional color of the resource, orNone
- Returns:
A newly created
EDataServer.WebDAVResource
, prefilled with given values. Free it withEDataServer.WebDAVResource.free
(), when no longer needed.- Return type:
Some values of the resource are not always valid, depending on the kind, but also whether server stores such values and whether it had been asked for them to be fetched.
The etag for
EDataServer.WebDAVResourceKind.COLLECTION
can be a change tag instead.New in version 3.26.
- copy()¶
- Returns:
A new
EDataServer.WebDAVResource
prefilled with the same values as self, orNone
, when self isNone
. Free it withEDataServer.WebDAVResource.free
(), when no longer needed.- Return type:
New in version 3.26.