(dictionary, key1, key2, default_value=None)
| 863 | |
| 864 | @staticmethod |
| 865 | def safe_integer_2(dictionary, key1, key2, default_value=None): |
| 866 | try: |
| 867 | return int(float(dictionary[key1])) |
| 868 | except Exception: |
| 869 | try: |
| 870 | return int(float(dictionary[key2])) |
| 871 | except Exception: |
| 872 | return default_value |
| 873 | |
| 874 | @staticmethod |
| 875 | def safe_integer_product_2(dictionary, key1, key2, factor, default_value=None): |
no outgoing calls