Miscellaneous Code¶
This page documents modules of lesser importance.
The cmislib.cmis_services Module¶
This module contains the base Binding class and other service objects.
The cmislib.exceptions Module¶
This module contains exceptions used throughout the API.
-
exception
cmislib.exceptions.CmisException(status=None, url=None)¶ Common base class for all exceptions.
-
exception
cmislib.exceptions.ConstraintException(status=None, url=None)¶
-
exception
cmislib.exceptions.ContentAlreadyExistsException(status=None, url=None)¶
-
exception
cmislib.exceptions.FilterNotValidException(status=None, url=None)¶
-
exception
cmislib.exceptions.InvalidArgumentException(status=None, url=None)¶
-
exception
cmislib.exceptions.NameConstraintViolationException(status=None, url=None)¶
-
exception
cmislib.exceptions.NotSupportedException(status=None, url=None)¶
-
exception
cmislib.exceptions.ObjectNotFoundException(status=None, url=None)¶
-
exception
cmislib.exceptions.PermissionDeniedException(status=None, url=None)¶
-
exception
cmislib.exceptions.RuntimeException(status=None, url=None)¶
-
exception
cmislib.exceptions.StorageException(status=None, url=None)¶
-
exception
cmislib.exceptions.StreamNotSupportedException(status=None, url=None)¶
-
exception
cmislib.exceptions.UpdateConflictException(status=None, url=None)¶
-
exception
cmislib.exceptions.VersioningException(status=None, url=None)¶
The cmislib.messages Module¶
This module contains common strings.
The cmislib.util Module¶
This module contains handy utility functions.
-
cmislib.util.multiple_replace(aDict, text)¶ Replace in ‘text’ all occurences of any key in the given dictionary by its corresponding value. Returns the new string.
-
cmislib.util.parseBoolValue(value)¶ Utility function to parse booleans and none from strings
-
cmislib.util.parseDateTimeValue(value)¶ Utility function to return a datetime from a string.
-
cmislib.util.parsePropValue(value, nodeName)¶ Returns a properly-typed object based on the type as specified in the node’s element name.
-
cmislib.util.parsePropValueByType(value, typeName)¶ Returns a properly-typed object based on the type as specified in the node’s property definition.
-
cmislib.util.safe_quote(value)¶ Safe encoding of value taking care of unicode value urllib.quote doesn’t like unicode values
-
cmislib.util.safe_urlencode(in_dict)¶ Safe encoding of values taking care of unicode values urllib.urlencode doesn’t like unicode values
-
cmislib.util.toCMISValue(value)¶ Utility function to convert Python values to CMIS string values
-
cmislib.util.to_utf8(value)¶ Safe encodng of value to utf-8 taking care of unicode values