(dictionary, key, default_value=None)
| 763 | |
| 764 | @staticmethod |
| 765 | def safe_string(dictionary, key, default_value=None): |
| 766 | try: |
| 767 | value = dictionary[key] |
| 768 | if value is not None and value != '': |
| 769 | return str(value) |
| 770 | except Exception: |
| 771 | pass |
| 772 | return default_value |
| 773 | |
| 774 | @staticmethod |
| 775 | def safe_string_lower(dictionary, key, default_value=None): |
no outgoing calls