add manage service

This commit is contained in:
2021-02-19 11:03:52 +01:00
parent bc25216c27
commit 41620cc92e
6 changed files with 36 additions and 1 deletions

View File

@ -65,7 +65,9 @@ class ServiceAnnotator:
self.objectspace.space.services.doc = 'services'
self.objectspace.space.services.path = 'services'
for service_name, service in self.objectspace.space.services.service.items():
service.information = self.objectspace.information(service.xmlfiles)
if not service.manage:
service.information = self.objectspace.information(service.xmlfiles)
service.information.manage = service.manage
for elttype, values in dict(vars(service)).items():
if not isinstance(values, (dict, list)) or elttype in ERASED_ATTRIBUTES:
continue

View File

@ -48,6 +48,7 @@
<!ELEMENT service ((port*|ip*|file*|override*)*)>
<!ATTLIST service name CDATA #REQUIRED>
<!ATTLIST service manage (True|False) "True">
<!ELEMENT port (#PCDATA)>
<!ATTLIST port port_type (port|variable) "port">