EDataServer.WebDAVPrivilege¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
description |
r/w |
||
hint |
r/w |
||
kind |
r/w |
||
name |
r/w |
||
ns_uri |
r/w |
Methods¶
class |
|
class |
|
|
Details¶
- class EDataServer.WebDAVPrivilege¶
- classmethod free(ptr)¶
- Parameters:
ptr (
object
orNone
) – anEDataServer.WebDAVPrivilege
Frees an
EDataServer.WebDAVPrivilege
previously created withEDataServer.WebDAVPrivilege.new
() orEDataServer.WebDAVPrivilege.copy
(). The function does nothing, if ptr isNone
.New in version 3.26.
- classmethod new(ns_uri, name, description, kind, hint)¶
- Parameters:
description (
str
orNone
) – human read-able description, orNone
kind (
EDataServer.WebDAVPrivilegeKind
) – anEDataServer.WebDAVPrivilegeKind
hint (
EDataServer.WebDAVPrivilegeHint
) – anEDataServer.WebDAVPrivilegeHint
- Returns:
A newly created
EDataServer.WebDAVPrivilege
, prefilled with given values. Free it withEDataServer.WebDAVPrivilege.free
(), when no longer needed.- Return type:
Describes one privilege entry. The hint can be
EDataServer.WebDAVPrivilegeHint.UNKNOWN
for privileges which are not known to theEDataServer.WebDAVSession
. It’s possible, because the servers can define their own privileges. The hint is also tried to pair with known hints when it’sEDataServer.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 asNone
.New in version 3.26.
- copy()¶
- Returns:
A new
EDataServer.WebDAVPrivilege
prefilled with the same values as self, orNone
, when self isNone
. Free it withEDataServer.WebDAVPrivilege.free
(), when no longer needed.- Return type:
New in version 3.26.