(dictionary, key, default_value=None)
| 773 | |
| 774 | @staticmethod |
| 775 | def safe_string_lower(dictionary, key, default_value=None): |
| 776 | try: |
| 777 | value = dictionary[key] |
| 778 | if value is not None and value != '': |
| 779 | return str(value).lower() |
| 780 | except Exception: |
| 781 | pass |
| 782 | return default_value.lower() if default_value is not None else default_value |
| 783 | |
| 784 | @staticmethod |
| 785 | def safe_string_upper(dictionary, key, default_value=None): |
no outgoing calls