gws.base.project.core

Source code: gws.base.project.core

Module Contents

class gws.base.project.core.Config(*args, **kwargs)

Bases: gws.ConfigWithAccess

Project configuration

actions: list[gws.ext.config.action] | None

Project-specific actions.

assets: gws.base.web.site.WebDirConfig | None

Project-specific assets options.

client: gws.base.client.Config | None

Project-specific gws client configuration.

finders: list[gws.ext.config.finder] | None

Search providers.

locales: list[gws.LocaleUid] | None

Project locales.

map: gws.base.map.Config | None

Map configuration.

metadata: gws.base.metadata.Config | None

Project metadata.

models: list[gws.ext.config.model] | None

Data models.

overviewMap: gws.base.map.Config | None

Overview map configuration.

owsServices: list[gws.ext.config.owsService] | None

OWS services configuration.

printers: list[gws.base.printer.Config] | None

Print configurations.

templates: list[gws.ext.config.template] | None

Project info templates.

title: str = ''

Project title.

type: str = 'default'
vars: dict | None

Custom variables.

class gws.base.project.core.Object

Bases: gws.Project

Project object.

overviewMap: gws.base.map.Object
title: str
configure()

Configuration hook.

props(user)

Generate a Props struct for this object.

Parameters:

user – The user for which the props should be generated.

class gws.base.project.core.Props(*args, **kwargs)

Bases: gws.Props

Object properties.

actions: list[gws.ext.props.action]
client: gws.base.client.Props | None
description: str
locales: list[str]
map: gws.ext.props.map
metadata: gws.base.metadata.Props
models: list[gws.ext.props.model]
overviewMap: gws.ext.props.map
printers: list[gws.base.printer.Props]
title: str
uid: str

Unique ID.