| 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 |