gws.plugin.qgis.project

Qgis Project API.

Source code: gws.plugin.qgis.project

Module Contents

exception gws.plugin.qgis.project.Error

Bases: gws.Error

GWS error.

class gws.plugin.qgis.project.StoreType

Bases: gws.Enum

Enumeration type.

Despite being declared as extending Enum (for IDE support), this class is actually just a simple object and intended to be used as a collection of attributes. It doesn’t provide any Enum-specific utilities.

The rationale behind this is that we need Enum members (e.g. Color.RED) to be scalars, and not complex objects as in the standard Enum.

file = 'file'
postgres = 'postgres'
class gws.plugin.qgis.project.Store(*args, **kwargs)

Bases: gws.Data

Basic data object.

This object can be instantiated by passing one or or dict arguments and/or keyword args. All dicts keys and keywords become attributes of the object.

Accessing an undefined attribute returns None and no error is raised, unless the attribute name starts with an underscore.

type: StoreType
path: gws.FilePath
dbUid: str
schema: str
projectName: str
gws.plugin.qgis.project.from_store(root: gws.Root, store: Store) Object
gws.plugin.qgis.project.from_path(path: str) Object
gws.plugin.qgis.project.from_string(text: str) Object
class gws.plugin.qgis.project.Object(text: str)
version: str
sourceHash: str
xml_root() gws.XmlElement
to_store(root: gws.Root, store: Store)
to_path(path: str)
to_xml()
caps() gws.plugin.qgis.caps.Caps