gws.ext.action.georisks¶
Support the Georisks app
-
class
gws.ext.action.georisks.
AarteLinkConfig
(*args, **kwargs)[source]¶ AarteLink system configuration
-
systemKey
= None¶ systemKey for the aarteLink connector
-
serviceUrl
= None¶ service url
-
serviceLogin
= None¶ service login
-
servicePassword
= None¶ service password
-
-
class
gws.ext.action.georisks.
ReportConfig
(*args, **kwargs)[source]¶ Configuration for the report function
-
privacyPolicyLink
= None¶ url of the privacy policy document
-
maxImageLength
= 5¶ max image size in megabytes
-
maxImageSize
= 1000¶ max image size in pixels
-
imageQuality
= 75¶ jpeg quality level
-
-
class
gws.ext.action.georisks.
Config
(*args, **kwargs)[source]¶ Georisks action
-
db
= None¶ database provider uid
-
report
= None¶ report function config
-
aarteLink
= None¶ AarteLink system configuration
-
-
class
gws.ext.action.georisks.
ReportFile
[source]¶ A file attached to a report.
-
content
= None¶ file content as a byte array
-
-
class
gws.ext.action.georisks.
CreateReportParams
(*args, **kwargs)[source]¶ Params for the createReport action
-
shape
= None¶ spatial shape of the report
-
volume
= ''¶
-
height
= ''¶
-
kind
= ''¶
-
message
= ''¶ user message
-
date
= None¶ event date
-
files
= None¶ attached files
-
-
class
gws.ext.action.georisks.
CreateReportResponse
(*args, **kwargs)[source]¶ Response of the createReport action.
-
reportUid
= None¶ id of the created report
-
-
class
gws.ext.action.georisks.
ReportStatusParams
(*args, **kwargs)[source]¶ Params for the reportStatus action
-
reportUids
= None¶ uids to query
-
-
class
gws.ext.action.georisks.
ReportStatus
[source]¶ -
open
= 0¶ new report
-
process
= 1¶ the report is being processed
-
approved
= 2¶ the report is approved
-
rejected
= 3¶ the report is rejected
-
error
= 99¶ error processing report
-
-
class
gws.ext.action.georisks.
ReportStatusItem
[source]¶ Status of a single report.
-
reportUid
= None¶ report id
-
status
= None¶ status value
-
reason
= None¶ report status reason
-
date
= None¶ ISO-formatted change date
-
-
class
gws.ext.action.georisks.
ReportListItem
[source]¶ Details of a single report.
-
reportUid
= None¶ report id
-
shape
= None¶ spatial shape of the report
-
shape4326
= None¶ 4326 crs
- Type
spatial shape of the report in the EPSG
-
date
= None¶ ISO-formatted change date
-
-
class
gws.ext.action.georisks.
Object
[source]¶ -
REPORT_TABLE_NAME
= 'gws_report'¶
-
MESSAGE_TABLE_NAME
= 'gws_aartelink_message'¶
-
ALARM_TABLE_NAME
= 'gws_aartelink_alarm'¶
-
DEVICE_TABLE_NAME
= 'gws_aartelink_device'¶
-
props
¶
-
api_create_report
(req: gws.types.IRequest, p: gws.ext.action.georisks.CreateReportParams) → gws.ext.action.georisks.CreateReportResponse[source]¶ Upload a new report
-
api_report_status
(req: gws.types.IRequest, p: gws.ext.action.georisks.ReportStatusParams) → gws.ext.action.georisks.ReportStatusResponse[source]¶ Query the status of the reports
-
api_report_list
(req: gws.types.IRequest, p: gws.types.NoParams) → gws.ext.action.georisks.ReportListResponse[source]¶ Return all approved reports
-