Class: QgsCapabilitiesCache

class qgis.server.QgsCapabilitiesCache

Bases: PyQt5.QtCore.QObject

A cache for capabilities xml documents (by configuration file path)

Methods

childEvent

connectNotify

customEvent

disconnectNotify

insertCapabilitiesDocument

Inserts new capabilities document (creates a copy of the document, does not take ownership)

isSignalConnected

receivers

removeCapabilitiesDocument

Remove capabilities document

searchCapabilitiesDocument

Returns cached capabilities document (or 0 if document for configuration file not in cache)

sender

senderSignalIndex

timerEvent

childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
insertCapabilitiesDocument(self, configFilePath: str, key: str, doc: QDomDocument)

Inserts new capabilities document (creates a copy of the document, does not take ownership)

Parameters
  • configFilePath (str) – the project file path

  • key (str) – key used to separate different version in different cache

  • doc (QDomDocument) – the DOM document

isSignalConnected(self, QMetaMethod) → bool
receivers(self, PYQT_SIGNAL) → int
removeCapabilitiesDocument(self, path: str)

Remove capabilities document

Parameters

path (str) – the project file path

New in version 2.16.

searchCapabilitiesDocument(self, configFilePath: str, key: str) → QDomDocument

Returns cached capabilities document (or 0 if document for configuration file not in cache)

Parameters
  • configFilePath (str) – the progect file path

  • key (str) – key used to separate different version in different cache

Return type

QDomDocument

sender(self) → QObject
senderSignalIndex(self) → int
timerEvent(self, QTimerEvent)