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 (
objectorNone) – anEDataServer.WebDAVResource
Frees an
EDataServer.WebDAVResourcepreviously 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.WebDAVResourceKindof the resourcesupports (
int) – bit-or ofEDataServer.WebDAVResourceSupportsvalueshref (
str) – href of the resourcedisplay_name (
strorNone) – optional display name of the resource, orNonecontent_type (
strorNone) – optional Content-Type of the resource, orNonecontent_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 (
strorNone) – optional description of the resource, orNonecolor (
strorNone) – 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.COLLECTIONcan be a change tag instead.New in version 3.26.
- copy()¶
- Returns:
A new
EDataServer.WebDAVResourceprefilled 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.