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