10 |
import string |
import string |
11 |
|
|
12 |
# Total hack |
# Total hack |
|
actions = context.portal_properties.pac_properties.getProperty('actions') |
|
13 |
|
|
14 |
contents = context.portal_catalog( |
contents = context.portal_catalog( |
15 |
path=string.join( |
path=string.join(context.getPhysicalPath(), '/') |
|
context.getPhysicalPath()[:-1], |
|
|
'/') |
|
16 |
) |
) |
17 |
|
|
18 |
result = [] |
result = [] |
19 |
for item in contents: |
for item in contents: |
20 |
if item.meta_type in actions: |
if item.meta_type.find('Action') == 0: |
21 |
result.append(item.UID) |
result.append(item.UID) |
|
|
|
22 |
|
|
23 |
|
|
24 |
return actions |
return result |