/[pac]/pac/PACDefault/skins/pacdefault/isEligible.py
ViewVC logotype

Diff of /pac/PACDefault/skins/pacdefault/isEligible.py

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

revision 1.3 by tvon, Fri Oct 3 20:10:38 2003 UTC revision 1.4 by tvon, Fri Oct 3 20:20:17 2003 UTC
# Line 15  country = None Line 15  country = None
15  party = None  party = None
16  us_state = None  us_state = None
17    
18  if action.getCountry() == ['']:  if action.getCountry() != ['']:
19      country = None      if member.getProperty('country') not in action.getCountry():
20  else:          return false
21      country = action.getCountry()  
22    if action.getUsState() != ['']:
23  if action.getUsState() == ['']:      if member.getProperty('us_state') not in action.getUsState():
24      us_state = None          return false
25  else:  
26      country = action.getUsState()  if action.getPoliticalParty() != ['']:
27        if member.getProperty('stat_party') not in action.getPoliticalParty():
28  if action.getPoliticalParty() == ['']:          return false
     party = None  
 else:  
     country = action.getPoliticalParty()  
   
 # No restrictions  
 if not country and not us_state and not country:  
     return true  
   
   
 if member.getProperty('us_state') not in action.getUsState():  
     return false  
   
 if member.getProperty('country') not in action.getCountry():  
     return false  
   
 if member.getProperty('stat_party') not in action.getPoliticalParty():  
     return false  
29    
30  return true  return true

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

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