mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Eliminate orgUnitPath encoding (#1527)
This commit is contained in:
@@ -373,17 +373,20 @@ def makeOrgUnitPathRelative(path):
|
|||||||
|
|
||||||
|
|
||||||
def encodeOrgUnitPath(path):
|
def encodeOrgUnitPath(path):
|
||||||
if path.find('+') == -1 and path.find('%') == -1:
|
# 6.22 - This method no longer works.
|
||||||
return path
|
# % no longer needs encoding and + is handled incorrectly in API with or without encoding
|
||||||
encpath = ''
|
return path
|
||||||
for c in path:
|
# if path.find('+') == -1 and path.find('%') == -1:
|
||||||
if c == '+':
|
# return path
|
||||||
encpath += '%2B'
|
# encpath = ''
|
||||||
elif c == '%':
|
# for c in path:
|
||||||
encpath += '%25'
|
# if c == '+':
|
||||||
else:
|
# encpath += '%2B'
|
||||||
encpath += c
|
# elif c == '%':
|
||||||
return encpath
|
# encpath += '%25'
|
||||||
|
# else:
|
||||||
|
# encpath += c
|
||||||
|
# return encpath
|
||||||
|
|
||||||
|
|
||||||
def getOrgUnitItem(orgUnit, pathOnly=False, absolutePath=True):
|
def getOrgUnitItem(orgUnit, pathOnly=False, absolutePath=True):
|
||||||
|
|||||||
Reference in New Issue
Block a user