Last change
on this file since 1 was
1,
checked in by myroslav, 18 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
472 bytes
|
Line | |
---|
1 | ## Controller Python Script "getSiloData" |
---|
2 | ##bind container=container |
---|
3 | ##bind context=context |
---|
4 | ##bind namespace= |
---|
5 | ##bind script=script |
---|
6 | ##bind subpath=traverse_subpath |
---|
7 | ##title=Update Folder Property |
---|
8 | ##parameters= |
---|
9 | # |
---|
10 | |
---|
11 | from Products.qSiloGroup.utils import getCurrentFolder |
---|
12 | |
---|
13 | prop_dict = context.getSiloNavigationDictionary() |
---|
14 | |
---|
15 | if not prop_dict: |
---|
16 | return [] |
---|
17 | |
---|
18 | CONTEXT = getCurrentFolder(context) |
---|
19 | |
---|
20 | return [prop_dict[item] for item in CONTEXT.objectIds() if item in prop_dict.keys()] |
---|
Note: See
TracBrowser
for help on using the repository browser.