(dictionary, key, default_value=None)
| 783 | |
| 784 | @staticmethod |
| 785 | def safe_string_upper(dictionary, key, default_value=None): |
| 786 | try: |
| 787 | value = dictionary[key] |
| 788 | if value is not None and value != '': |
| 789 | return str(value).upper() |
| 790 | except Exception: |
| 791 | pass |
| 792 | return default_value.upper() if default_value is not None else default_value |
| 793 | |
| 794 | @staticmethod |
| 795 | def safe_integer(dictionary, key, default_value=None): |
no outgoing calls