/[pac]/PublicActionCenter/skins/pac_scripts/isEligible.py
ViewVC logotype

Diff of /PublicActionCenter/skins/pac_scripts/isEligible.py

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

revision 1.1.1.1 by tvon, Fri Nov 28 21:35:58 2003 UTC revision 1.2 by tvon, Tue Dec 2 02:26:02 2003 UTC
# Line 5  Line 5 
5  ##bind script=script  ##bind script=script
6  ##bind subpath=traverse_subpath  ##bind subpath=traverse_subpath
7  ##parameters=action,member    ##parameters=action,member  
8  ##title=  ##title=Test for action eligability based on a few parameters
9  ##  ##
10    
11  true=1  true=1
12  false=0  false=0
13    
14  if action.getCountry() != []:  if action.getCountry():
15      if member.getProperty('country') not in action.getCountry():      if member.hasProperty('country'):
16          return false          if member.getProperty('country') not in action.getCountry():
17                return false
18    
19  if action.getUsState() != []:  if action.getUsState():
20      if member.getProperty('us_state') not in action.getUsState():      if member.hasProperty('us_state'):
21          return false          if member.getProperty('us_state') not in action.getUsState():
22                return false
23    
24  return true  return true
25    

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

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