mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Sort fields in info group, allow gal as an alias for includeinglobaladdresslist (#1575)
This commit is contained in:
@@ -189,7 +189,7 @@ def info(group_name=None):
|
|||||||
pass
|
pass
|
||||||
print('')
|
print('')
|
||||||
print('Group Settings:')
|
print('Group Settings:')
|
||||||
for key, value in list(basic_info.items()):
|
for key, value in sorted(list(basic_info.items())):
|
||||||
if (key in ['kind', 'etag']) or ((key == 'aliases') and
|
if (key in ['kind', 'etag']) or ((key == 'aliases') and
|
||||||
(not getAliases)):
|
(not getAliases)):
|
||||||
continue
|
continue
|
||||||
@@ -199,7 +199,7 @@ def info(group_name=None):
|
|||||||
print(f' {val}')
|
print(f' {val}')
|
||||||
else:
|
else:
|
||||||
print(f' {key}: {value}')
|
print(f' {key}: {value}')
|
||||||
for key, value in list(settings.items()):
|
for key, value in sorted(list(settings.items())):
|
||||||
if key in ['kind', 'etag', 'description', 'email', 'name']:
|
if key in ['kind', 'etag', 'description', 'email', 'name']:
|
||||||
continue
|
continue
|
||||||
print(f' {key}: {value}')
|
print(f' {key}: {value}')
|
||||||
@@ -1217,6 +1217,8 @@ GROUP_SETTINGS_LIST_PATTERN = re.compile(r'([A-Z][A-Z_]+[A-Z]?)')
|
|||||||
def getGroupAttrValue(myarg, value, gs_object, gs_body, function):
|
def getGroupAttrValue(myarg, value, gs_object, gs_body, function):
|
||||||
if myarg == 'collaborative':
|
if myarg == 'collaborative':
|
||||||
myarg = 'enablecollaborativeinbox'
|
myarg = 'enablecollaborativeinbox'
|
||||||
|
elif myarg == 'gal':
|
||||||
|
myarg = 'includeinglobaladdresslist'
|
||||||
for (attrib,
|
for (attrib,
|
||||||
params) in list(gs_object['schemas']['Groups']['properties'].items()):
|
params) in list(gs_object['schemas']['Groups']['properties'].items()):
|
||||||
if attrib in ['kind', 'etag', 'email']:
|
if attrib in ['kind', 'etag', 'email']:
|
||||||
|
|||||||
Reference in New Issue
Block a user