1
## Script (Python) "objectids"
2
##bind container=container
6
##bind subpath=traverse_subpath
10
obj = context.aq_parent
11
if obj.meta_type == 'Local File System' or obj.meta_type == 'Local Directory':
13
for f in obj.fileIds():
16
elif obj.meta_type == 'User Folder':
17
usernames = obj.getUserNames()
19
# dict or string ? (for exUserFolder)
20
try: name = usernames[0]['username']
26
usernames.append(dct['username'])
29
return obj.objectIds()
1
## Script (Python) "objectids"
2
##bind container=container
6
##bind subpath=traverse_subpath
10
obj = context.aq_parent
11
if obj.meta_type == 'Local File System' or obj.meta_type == 'Local Directory':
13
for f in obj.fileIds():
16
elif obj.meta_type == 'User Folder':
17
usernames = obj.getUserNames()
19
# dict or string ? (for exUserFolder)
20
try: name = usernames[0]['username']
26
usernames.append(dct['username'])
29
return obj.objectIds()