path problem for services objects
This commit is contained in:
parent
b612d7884e
commit
331e386470
|
@ -245,7 +245,7 @@ class ServiceAnnotator:
|
||||||
setattr(new_service, elttype, values)
|
setattr(new_service, elttype, values)
|
||||||
continue
|
continue
|
||||||
eltname = elttype + 's'
|
eltname = elttype + 's'
|
||||||
path = '.'.join(['services', eltname])
|
path = '.'.join(['services', service_name, eltname])
|
||||||
family = self.gen_family(eltname,
|
family = self.gen_family(eltname,
|
||||||
path,
|
path,
|
||||||
)
|
)
|
||||||
|
@ -254,7 +254,7 @@ class ServiceAnnotator:
|
||||||
family.family = self.make_group_from_elts(service_name,
|
family.family = self.make_group_from_elts(service_name,
|
||||||
elttype,
|
elttype,
|
||||||
values,
|
values,
|
||||||
f'services.{service_name}.{eltname}',
|
path,
|
||||||
)
|
)
|
||||||
setattr(new_service, elttype, family)
|
setattr(new_service, elttype, family)
|
||||||
new_service.doc = new_service.name
|
new_service.doc = new_service.name
|
||||||
|
@ -265,8 +265,6 @@ class ServiceAnnotator:
|
||||||
name,
|
name,
|
||||||
path,
|
path,
|
||||||
):
|
):
|
||||||
if self.objectspace.paths.family_is_defined(path):
|
|
||||||
return self.objectspace.paths.get_family_obj(path)
|
|
||||||
family = self.objectspace.family()
|
family = self.objectspace.family()
|
||||||
family.name = normalize_family(name)
|
family.name = normalize_family(name)
|
||||||
family.doc = name
|
family.doc = name
|
||||||
|
|
Loading…
Reference in New Issue