Commit c8fab77
fix: Block inactive object access via builtin classes. (#4729)
## Context
Previously, it was possible to access children of inactive objects via
builtin class instantiation.
## Change Summary
While instantiating builtin classes, use flobject's default `getattr` to
access child objects. That will throw `InactiveObjectError` from
appropriate place.
```
>>> pyfluent.solver.Viscous(solver)
D:\ANSYSDev\PyFluentDev\pyfluent\src\ansys\fluent\core\pyfluent_warnings.py:63: FluentDevVersionWarning: 1 parent 548c40a commit c8fab77
File tree
3 files changed
+19
-2
lines changed- doc/changelog.d
- src/ansys/fluent/core/solver
- tests
3 files changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
71 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | 80 | | |
74 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
510 | 511 | | |
511 | 512 | | |
512 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
0 commit comments