mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-29 18:31:38 +00:00
Two updates (#1327)
* Add writerscanshare to file characteristics * In print filelist, include counts for permissions, parents, owners
This commit is contained in:
@@ -3278,6 +3278,7 @@ def printDriveFileList(users):
|
||||
titles.append(attrib)
|
||||
a_file[attrib] = ' '.join(f_file[attrib])
|
||||
else:
|
||||
a_file[attrib] = len(f_file[attrib])
|
||||
for j, l_attrib in enumerate(f_file[attrib]):
|
||||
for list_attrib in l_attrib:
|
||||
if list_attrib in [
|
||||
@@ -3628,6 +3629,9 @@ def getDriveFileAttribute(i, body, parameters, myarg, update=False):
|
||||
elif myarg == 'writerscantshare':
|
||||
body['writersCanShare'] = False
|
||||
i += 1
|
||||
elif myarg == 'writerscanshare':
|
||||
body['writersCanShare'] = True
|
||||
i += 1
|
||||
elif myarg == 'contentrestrictions':
|
||||
body['contentRestrictions'] = [{}]
|
||||
restriction = sys.argv[i+1].lower().replace('_', '')
|
||||
|
||||
Reference in New Issue
Block a user