What is the difference between auxiliary and non-auxiliary configs? Because if we use "auxiliary positions" as the section key then a special case wouldn't be needed here.
What is the difference between auxiliary and non-auxiliary configs? Because if we use "auxiliary positions" as the section key then a special case wouldn't be needed here.
Anything 'auxiliary' is supposed to be 'supplementary'. For example, 'auxiliary groups' are the supplementary groups to which a user should be added when they are added to a main group.
Unfortunately INI files don't allow us to specify data types, and we can't use a comma as a general-case delimiter since the LDAP bases contain commas. So we'll just have to check the name of the section on a case-by-case basis.
Anything 'auxiliary' is supposed to be 'supplementary'. For example, 'auxiliary groups' are the supplementary groups to which a user should be added when they are added to a main group.
Unfortunately INI files don't allow us to specify data types, and we can't use a comma as a general-case delimiter since the LDAP bases contain commas. So we'll just have to check the name of the section on a case-by-case basis.
Haven't got tests working yet, but the main codes should be there.
1a9d4755cb
to0ed876c010
2 years agoPositions APIto WIP: Positions API 2 years ago@r345liu Excellent work. Just a few minor adjustments. And, of course, unit tests.
WIP: Positions APIto Positions API 2 years agoreturn False
if section.startswith('auxiliary '):
return val.split(',')
if section.startswith('auxiliary ') or section == 'positions':
What is the difference between auxiliary and non-auxiliary configs? Because if we use "auxiliary positions" as the section key then a special case wouldn't be needed here.
Anything 'auxiliary' is supposed to be 'supplementary'. For example, 'auxiliary groups' are the supplementary groups to which a user should be added when they are added to a main group.
Unfortunately INI files don't allow us to specify data types, and we can't use a comma as a general-case delimiter since the LDAP bases contain commas. So we'll just have to check the name of the section on a case-by-case basis.
ad937eebeb
into v1 2 years agoad937eebeb
.