EDataServer.WebDAVPrivilege

Fields

Name

Type

Access

Description

description

str

r/w

hint

EDataServer.WebDAVPrivilegeHint

r/w

kind

EDataServer.WebDAVPrivilegeKind

r/w

name

str

r/w

ns_uri

str

r/w

Methods

class

free (ptr)

class

new (ns_uri, name, description, kind, hint)

copy ()

Details

class EDataServer.WebDAVPrivilege
classmethod free(ptr)
Parameters:

ptr (object or None) – an EDataServer.WebDAVPrivilege

Frees an EDataServer.WebDAVPrivilege previously created with EDataServer.WebDAVPrivilege.new() or EDataServer.WebDAVPrivilege.copy(). The function does nothing, if ptr is None.

New in version 3.26.

classmethod new(ns_uri, name, description, kind, hint)
Parameters:
Returns:

A newly created EDataServer.WebDAVPrivilege, prefilled with given values. Free it with EDataServer.WebDAVPrivilege.free(), when no longer needed.

Return type:

EDataServer.WebDAVPrivilege

Describes one privilege entry. The hint can be EDataServer.WebDAVPrivilegeHint.UNKNOWN for privileges which are not known to the EDataServer.WebDAVSession. It’s possible, because the servers can define their own privileges. The hint is also tried to pair with known hints when it’s EDataServer.WebDAVPrivilegeHint.UNKNOWN.

The ns_uri and name can be None only if the hint is one of the known privileges. Otherwise it’s an error to pass either of the two as None.

New in version 3.26.

copy()
Returns:

A new EDataServer.WebDAVPrivilege prefilled with the same values as self, or None, when self is None. Free it with EDataServer.WebDAVPrivilege.free(), when no longer needed.

Return type:

EDataServer.WebDAVPrivilege or None

New in version 3.26.