-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
41 additions
and
16 deletions.
There are no files selected for viewing
25 changes: 22 additions & 3 deletions
25
openfisca_tunisia/variables/caracteristiques_socio_demographiques/handicap.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
from openfisca_tunisia.variables.base import * | ||
|
||
|
||
class invalide(Variable): | ||
value_type = bool | ||
label = 'Invalide (handicap lourd)' | ||
# class TypesHandicap(Enum): | ||
# __order__ = 'neant leger intermediaire lourd' | ||
# # Needed to preserve the enum order in Python 2 | ||
# neant = 'Néant' | ||
# leger = 'Léger' | ||
# intermediaire = 'Intermédiaire' | ||
# lourd = 'Lourd' | ||
|
||
|
||
# class handicap(Variable): | ||
# value_type = Enum | ||
# possible_values = TypesHandicap | ||
# default_value = TypesHandicap.neant | ||
# label = 'Niveau de handicap' | ||
# entity = Individu | ||
# definition_period = ETERNITY | ||
|
||
|
||
class handicap(Variable): | ||
value_type = int | ||
default_value = 0 | ||
label = 'Niveau de handicap (0-Néant, 1-Léger, 2-intermédiraire, 3-Lourd)' | ||
entity = Individu | ||
definition_period = ETERNITY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters