Skip to content

feat: Inherit RefSkel from the source Skeleton#1617

Draft
sveneberth wants to merge 2 commits into
viur-framework:mainfrom
sveneberth:feat/refSkelInherit
Draft

feat: Inherit RefSkel from the source Skeleton#1617
sveneberth wants to merge 2 commits into
viur-framework:mainfrom
sveneberth:feat/refSkelInherit

Conversation

@sveneberth
Copy link
Copy Markdown
Member

This make @propertys working properly and allows type checks.

Currently checks like this this https://github.com/viur-framework/viur-shop/blob/2a55ef1aa2fdb00d6a6af3985cfe151c5d6aedb6/src/viur/shop/types/dc_scope.py#L243-L257
would be more easy.


This fixes #1622

Warning: It seems to work, but at the moment, I don't want to rule out any ViUR surprises.

This make `@property`s working properly and allows type checks.
@sveneberth sveneberth added the bug(fix) Something isn't working or address a specific issue or vulnerability label Jan 28, 2026
@sveneberth sveneberth added the viur-meeting Issues to discuss in the next ViUR meeting label Jan 30, 2026
@sveneberth sveneberth removed the viur-meeting Issues to discuss in the next ViUR meeting label Feb 11, 2026
phorward added a commit that referenced this pull request Feb 13, 2026
…elongs to a `RefSkel` + reset `renderPreparation` (#1623)

- A `@property` member can now be accessed on a `SkeletonInstance`
belongs to a `RefSkel`. Before loading `class_value` the type of
`skeletonCls` will be evaluated.
- Before calling the compute or `@property` function with the help of
`without_render_preparation`, it will be ensured that the
`SkeletonInstance` is called without any `renderPreparation`. This
avoids for example providing the key string-encoding instead of the
`db.Key` instance.
- Introduce `without_render_preparation` (known from
[viur-toolkit](https://github.com/viur-framework/viur-toolkit/blob/1d95b1a8ee5fb40e0847094821ff6e424891376d/src/viur/toolkit/viur.py#L38-L65))
- Introduce `is_skeletoninstance_of` for handy checks (instead of this
https://github.com/viur-framework/viur-shop/blob/2a55ef1aa2fdb00d6a6af3985cfe151c5d6aedb6/src/viur/shop/types/dc_scope.py#L243-L257)

---


Fixes #1622
Alternative solution to #1617
Also replaces #1619

---------

Co-authored-by: Jan Max Meyer <jmm@phorward.de>
@sveneberth sveneberth self-assigned this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug(fix) Something isn't working or address a specific issue or vulnerability

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

AttributeError: 'SkeletonInstance' object has no attribute 'shop_price_' fails with viur-core==3.8.15

1 participant