Use APIPATH_MAXLEN from the right module
This fixes an AttributeError. Change-Id: Ic76f42d7fbd6c0dd0fbdf2ccf464e8fff80b11cd
This commit is contained in:
parent
99d7668789
commit
2e1863db6c
@ -122,7 +122,7 @@ def scan_services(service, path=[]):
|
||||
has_functions = True
|
||||
if inspect.isclass(a):
|
||||
continue
|
||||
if len(path) > wsme.api.APIPATH_MAXLEN:
|
||||
if len(path) > wsme.rest.APIPATH_MAXLEN:
|
||||
raise ValueError("Path is too long: " + str(path))
|
||||
for value in scan_services(a, path + [name]):
|
||||
yield value
|
||||
|
Loading…
x
Reference in New Issue
Block a user