diff --git a/pym/cl_api.py b/pym/cl_api.py index 43ea13b..6374c5a 100644 --- a/pym/cl_api.py +++ b/pym/cl_api.py @@ -241,10 +241,16 @@ class _allPkg(object): self._listPkgObjReverse = listPkgObj[:] self._listPkgObjReverse.sort(smpPrioritetReverse) + def APIList(self): + return self._listPkgObjNormal + + def APIListReverse(self): + return self._listPkgObjReverse def __getattribute__(self, attr): if attr.startswith("__") or\ - attr in ('_listPkgObjNormal','_listPkgObjReverse'): + attr in ('_listPkgObjNormal', '_listPkgObjReverse', + 'APIList', 'APIListReverse'): value = object.__getattribute__(self, attr) else: if attr.startswith('stop') or attr.startswith('del'): diff --git a/pym/cl_template.py b/pym/cl_template.py index b3124d9..92b64e8 100644 --- a/pym/cl_template.py +++ b/pym/cl_template.py @@ -3501,6 +3501,11 @@ re.M|re.S) if configPath and self.protectPaths: flagFoundPath = False for protectPath in self.protectPaths: + if self._baseDir != "/": + lenBaseDir = len(self._baseDir) + if len(configPath)>lenBaseDir and\ + configPath[:lenBaseDir] == self._baseDir: + configPath = configPath[lenBaseDir:] if configPath.startswith(protectPath + "/"): flagFoundPath = True break