-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Retrieve default descr
from bone's name in its Skeleton
#1227
feat: Retrieve default descr
from bone's name in its Skeleton
#1227
Conversation
This PR allows to define a bone ```py test = StringBone() ``` which is shown as "test" bone, instead of just an empty string.
descr
from bone's namedescr
from bone's name in its Skeleton
Co-authored-by: Sven Eberth <mail@sveneberth.de>
…ject and keep the descr change-/setable (if necessary and if the bone is cloned)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating every time u access .descr
a translate
instance is not really efficient.
I have another solution: phorward#7
The translate object in the structure is btw no problem and needs to extra str
-cast since we use our own CustomJsonEncoder
.
feat: Use `setSystemInitialized` to create only once a `translate` object
It's kinda over-engineered, but we can make it so. |
This is a regression introduced by viur-framework#1227 causing descr() is called before a session is available.
This bug is a regression of #1277 and #1227. The `__system_initialized`-bool should be set *after* all setSystemInitialized() functions where invoked, as the system is defined to be initialized *after* the stuff where worked. Otherwise, `SpamBone.descr` cannot determine whether it is executed in an uninitialized or initialized system.
This PR allows to define a bone
which is shown as "test" bone, instead of just an empty string.