18 |
args['getCountry'] = context.getCountry() |
args['getCountry'] = context.getCountry() |
19 |
|
|
20 |
if 'manual' in context.getUsGroup(): |
if 'manual' in context.getUsGroup(): |
21 |
manual_results = context.portal_catalog(meta_type = 'ActionRecipient', |
manual_results = context.portal_catalog(meta_type = 'ActionRecipient', path = string.join(context.getPhysicalPath()[:-1], '/')) |
|
path=container.getPhysicalPath()) |
|
22 |
|
|
23 |
results = context.portal_catalog( |
|
24 |
|
matches = context.portal_catalog( |
25 |
args, |
args, |
26 |
meta_type = 'ActionRecipient'); |
meta_type = 'ActionRecipient'); |
27 |
|
|
28 |
results.append(manual_results) |
results = [] |
29 |
|
|
30 |
|
for match in matches: |
31 |
|
results.append(match) |
32 |
|
|
33 |
|
for manual in manual_results: |
34 |
|
results.append(manual) |
35 |
|
|
36 |
|
|
37 |
|
# TODO: Sort this. |
38 |
|
return results |
39 |
|
|
|
#return results |
|
|
return manual_results |
|