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)
|
||||
continue
|
||||
eltname = elttype + 's'
|
||||
path = '.'.join(['services', eltname])
|
||||
path = '.'.join(['services', service_name, eltname])
|
||||
family = self.gen_family(eltname,
|
||||
path,
|
||||
)
|
||||
|
@ -254,7 +254,7 @@ class ServiceAnnotator:
|
|||
family.family = self.make_group_from_elts(service_name,
|
||||
elttype,
|
||||
values,
|
||||
f'services.{service_name}.{eltname}',
|
||||
path,
|
||||
)
|
||||
setattr(new_service, elttype, family)
|
||||
new_service.doc = new_service.name
|
||||
|
@ -265,8 +265,6 @@ class ServiceAnnotator:
|
|||
name,
|
||||
path,
|
||||
):
|
||||
if self.objectspace.paths.family_is_defined(path):
|
||||
return self.objectspace.paths.get_family_obj(path)
|
||||
family = self.objectspace.family()
|
||||
family.name = normalize_family(name)
|
||||
family.doc = name
|
||||
|
|
Loading…
Reference in New Issue