gws.plugin.qfield.action

Source code: gws.plugin.qfield.action

Module Contents

class gws.plugin.qfield.action.Config(*args, **kwargs)

Bases: gws.ConfigWithAccess

QField action. (added in 8.1)

packages: list[gws.plugin.qfield.core.PackageConfig]
withDbInDCIM: bool = False
withSerialPrefix: bool = False
class gws.plugin.qfield.action.DownloadRequest(*args, **kwargs)

Bases: gws.Request

Command request.

omitData: bool = False
omitStatic: bool = False
packageUid: str | None
class gws.plugin.qfield.action.DownloadResponse(*args, **kwargs)

Bases: gws.Response

Command response.

data: bytes
class gws.plugin.qfield.action.Object

Bases: gws.base.action.Object

packages: dict[str, gws.plugin.qfield.core.Package]
withDbInDCIM: bool
withSerialPrefix: bool
api_download(req: gws.WebRequester, p: DownloadRequest) DownloadResponse
api_upload(req: gws.WebRequester, p: UploadRequest) UploadResponse
cli_package(p: PackageParams)

Create a package for QField.

configure()
end_export(args: gws.plugin.qfield.core.ExportArgs) bytes
end_import(args: gws.plugin.qfield.core.ImportArgs)
exec_export(args: gws.plugin.qfield.core.ExportArgs)
exec_import(args: gws.plugin.qfield.core.ImportArgs)
http_download(req: gws.WebRequester, p: DownloadRequest) gws.ContentResponse
http_upload(req: gws.WebRequester, p: UploadRequest) gws.ContentResponse
prepare_export(p: DownloadRequest, user: gws.User) gws.plugin.qfield.core.ExportArgs
prepare_import(p: UploadRequest, user: gws.User, data: bytes)
class gws.plugin.qfield.action.PackageParams(*args, **kwargs)

Bases: gws.CliParams

CLI params

out: str

Output filename.

packageUid: str

Package uid.

projectUid: str

Project uid.

class gws.plugin.qfield.action.Props

Bases: gws.base.action.Props

class gws.plugin.qfield.action.UploadRequest(*args, **kwargs)

Bases: gws.Request

Command request.

data: bytes | None
packageUid: str | None
class gws.plugin.qfield.action.UploadResponse(*args, **kwargs)

Bases: gws.Response

Command response.