X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetstack%2Fdmdot;h=9e13df2725ebd6131825b2f1864a451e4e5bfc4a;hb=HEAD;hp=4353793a5dd7b5c082854c09b0c591c4c93589e1;hpb=ceb464bffa9fda65c27d8f7315b817a5e91ca3e8;p=plstackapi.git diff --git a/planetstack/dmdot b/planetstack/dmdot old mode 100755 new mode 100644 index 4353793..9e13df2 --- a/planetstack/dmdot +++ b/planetstack/dmdot @@ -28,6 +28,8 @@ app = app + ".models" #models_module = imp.load_source(app, ".") models_module = __import__(app) for part in app.split(".")[1:]: + if hasattr(models_module, "PlCoreBase"): + break models_module = getattr(models_module,part) PlCoreBase = getattr(models_module,"PlCoreBase") @@ -65,6 +67,7 @@ elif (output=='-json'): d[c.__name__].append(linked_class.__name__) except KeyError: d[c.__name__]=[linked_class.__name__] + d['NetworkDeployments'].append('SliceDeployments') print json.dumps(d,indent=4)