/[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.1 by tvon, Tue Sep 30 03:56:03 2003 UTC revision 1.2 by tvon, Fri Oct 3 17:18:30 2003 UTC
# Line 20  if action.getCountry() == ['']: Line 20  if action.getCountry() == ['']:
20  else:  else:
21      country = action.getCountry()      country = action.getCountry()
22    
23  if action.getUs_state() == ['']:  if action.getUsState() == ['']:
24      us_state = None      us_state = None
25  else:  else:
26      country = action.getUs_state()      country = action.getUsState()
27    
28  if action.getPolitical_party() == ['']:  if action.getPoliticalParty() == ['']:
29      party = None      party = None
30  else:  else:
31      country = action.getPolitical_party()      country = action.getPoliticalParty()
32    
33  # No restrictions  # No restrictions
34  if not country and not us_state and not country:  if not country and not us_state and not country:
35      return true      return true
36    
37    
38  if member.getProperty('us_state') not in action.getUs_state():  if member.getProperty('us_state') not in action.getUsState():
39      return false      return false
40    
41  if member.getProperty('country') not in action.getCountry():  if member.getProperty('country') not in action.getCountry():
42      return false      return false
43    
44  if member.getProperty('stat_party') != action.getPolitical_party():  if member.getProperty('stat_party') != action.getPoliticalParty():
45      return false      return false
46    
47  return true  return true

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

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