| 805 | |
| 806 | |
| 807 | def _warn_for_runid_changed(state): |
| 808 | util.warn( |
| 809 | "Loading context for %s has changed within a load/refresh " |
| 810 | "handler, suggesting a row refresh operation took place. If this " |
| 811 | "event handler is expected to be " |
| 812 | "emitting row refresh operations within an existing load or refresh " |
| 813 | "operation, set restore_load_context=True when establishing the " |
| 814 | "listener to ensure the context remains unchanged when the event " |
| 815 | "handler completes." % (state_str(state),) |
| 816 | ) |
| 817 | |
| 818 | |
| 819 | def _instance_processor( |