gws.base.edit.helper

Source code: gws.base.edit.helper

Module Contents

gws.base.edit.helper.DEFAULT_TOLERANCE = (10,)
gws.base.edit.helper.LIST_VIEWS = ['title', 'label']
class gws.base.edit.helper.Object

Bases: gws.Node

Configurable GWS object.

delete_feature(req: gws.WebRequester, p: gws.base.edit.api.DeleteFeatureRequest) gws.Feature | None
delete_feature_response(req: gws.WebRequester, p: gws.base.edit.api.DeleteFeatureRequest, feature: gws.Feature | None) gws.base.edit.api.DeleteFeatureResponse
feature_from_props(props: gws.FeatureProps, access: gws.Access, mc: gws.ModelContext) gws.Feature
feature_list_to_props(features: list[gws.Feature], mc: gws.ModelContext) list[gws.FeatureProps]
feature_to_props(feature: gws.Feature, mc: gws.ModelContext) gws.FeatureProps
get_feature(req: gws.WebRequester, p: gws.base.edit.api.GetFeatureRequest) gws.Feature | None
get_feature_response(req: gws.WebRequester, p: gws.Request, feature: gws.Feature | None) gws.base.edit.api.GetFeatureResponse
get_features(req: gws.WebRequester, p: gws.base.edit.api.GetFeaturesRequest) list[gws.Feature]
get_features_response(req: gws.WebRequester, p: gws.Request, features: list[gws.Feature]) gws.base.edit.api.GetFeaturesResponse
get_models(req: gws.WebRequester, p: gws.base.edit.api.GetModelsRequest) list[gws.Model]
get_models_response(req: gws.WebRequester, p: gws.Request, models: list[gws.Model]) gws.base.edit.api.GetModelsResponse
get_relatable_features(req: gws.WebRequester, p: gws.base.edit.api.GetRelatableFeaturesRequest) list[gws.Feature]
get_relatable_features_response(req: gws.WebRequester, p: gws.Request, features: list[gws.Feature]) gws.base.edit.api.GetRelatableFeaturesResponse
init_feature(req: gws.WebRequester, p: gws.base.edit.api.InitFeatureRequest) gws.Feature
init_feature_response(req: gws.WebRequester, p: gws.Request, feature: gws.Feature | None) gws.base.edit.api.InitFeatureResponse
model_context(req: gws.WebRequester, p: gws.Request, op, target: gws.ModelReadTarget | None = None, max_depth=1)
require_field(model: gws.Model, field_name: str, user: gws.User, access: gws.Access) gws.ModelField
require_model(model_uid, user: gws.User, access: gws.Access) gws.Model
write_feature(req: gws.WebRequester, p: gws.base.edit.api.WriteFeatureRequest) gws.Feature | None
write_feature_response(req: gws.WebRequester, p: gws.base.edit.api.WriteFeatureRequest, feature: gws.Feature | None) gws.base.edit.api.WriteFeatureResponse