reflex/reflex/utils
Masen Furer b23859a45d
[REF-2302] When a Var points to a model, prefer access to model fields. (#2893)
* When a Var points to a model, prefer access to model fields.

When a Var points to a model, and fields of the model share the same name as
Var operations, access to the model fields is now preferred to avoid having Var
operation names shadow model fields. Since most Var operations do not actually
work against Models, this does not really block any functionality.

* Special case for ComputedVar needing to internally access fget

Since fget is a "slot" on property, normal __getattribute__ access cannot find it.

* Workaround https://github.com/python/cpython/issues/88459

In python 3.9 and 3.10, the `isinstance(list[...], type)` returns True, but
it's not a valid class for use in issubclass
2024-03-27 16:22:46 -07:00
..
__init__.py [REF-99] Add first version of CLI for hosting service (#1810) 2023-10-21 13:09:56 -07:00
build.py only exclude assets folder if it's in the root_dir (#2308) 2023-12-18 15:51:13 -08:00
console.py [REF-2229]Dedupe deprecation warnings (#2871) 2024-03-26 16:33:55 +00:00
exceptions.py rx.match component (#2318) 2024-01-04 09:48:18 -08:00
exec.py When __REFLEX_SKIP_COMPILE == "yes" allow telemetry to fail (#2881) 2024-03-19 14:30:55 -07:00
export.py apps should no longer call "app.compile()" (#2291) 2023-12-18 16:06:21 -08:00
format.py added name of Var to error message (#2827) 2024-03-13 15:39:49 -07:00
imports.py [REF-144] Add context in each component to prevent rerenders (#2198) 2023-11-27 16:05:59 -08:00
path_ops.py Resolve correct python path on windows (#2373) 2024-01-09 09:58:06 -08:00
prerequisites.py Default to None if bun/fnm version is Invalid (#2940) 2024-03-27 12:38:56 -07:00
processes.py added feature to automatically change port (#2867) 2024-03-25 17:38:28 -07:00
serializers.py fix image serializing - REF-1889 (#2550) 2024-02-22 08:13:19 -08:00
telemetry.py When __REFLEX_SKIP_COMPILE == "yes" allow telemetry to fail (#2881) 2024-03-19 14:30:55 -07:00
types.py [REF-2302] When a Var points to a model, prefer access to model fields. (#2893) 2024-03-27 16:22:46 -07:00
watch.py code cleanup (split constants into a folder) (#1866) 2023-09-28 17:27:20 -07:00