(dictionary, key1, key2, default_value=None)
| 837 | |
| 838 | @staticmethod |
| 839 | def safe_string_2(dictionary, key1, key2, default_value=None): |
| 840 | try: |
| 841 | value = dictionary[key1] |
| 842 | if value is not None and value != '': |
| 843 | return str(value) |
| 844 | except Exception: |
| 845 | pass |
| 846 | try: |
| 847 | value = dictionary[key2] |
| 848 | if value is not None and value != '': |
| 849 | return str(value) |
| 850 | except Exception: |
| 851 | pass |
| 852 | return default_value |
| 853 | |
| 854 | @staticmethod |
| 855 | def safe_string_lower_2(dictionary, key1, key2, default_value=None): |
no outgoing calls