Use APIPATH_MAXLEN from the right module

This fixes an AttributeError.

Change-Id: Ic76f42d7fbd6c0dd0fbdf2ccf464e8fff80b11cd
This commit is contained in:
Dustin J. Mitchell 2014-06-20 17:09:00 -04:00
parent 99d7668789
commit 2e1863db6c

View File

@ -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