gws.spec.generator.extractor¶
Select the types the server needs at run time.
Source code: gws.spec.generator.extractor
Module Contents¶
- gws.spec.generator.extractor.extract(gen: gws.spec.generator.base.Generator)¶
Extract the server types into
gen.serverTypes.The server needs:
all
gws.ext.objectclasses, but not their properties,all
gws.ext.configandgws.ext.propsclasses and their properties, recursively,command methods (
gws.ext.command), their owners and their arguments, recursively.
Types reachable from the application
Configare marked withisConfig. The result is sorted by uid.- Parameters:
gen – Generator state.
- Raises:
GeneratorError – If a referenced type is unknown or cannot be extracted.