/[pac]/pac/PACDefault/skins/pac_scripts/getEligibleRecipients.py
ViewVC logotype

Diff of /pac/PACDefault/skins/pac_scripts/getEligibleRecipients.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tvon, Sun Nov 9 22:31:16 2003 UTC revision 1.5 by tvon, Sun Nov 9 23:35:01 2003 UTC
# Line 18  if context.getCountry() != '': Line 18  if context.getCountry() != '':
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  

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26