Skip to content
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

Provide a RefSkel.read() shortcut to read entire target skeleton #1101

Open
phorward opened this issue Mar 13, 2024 · 0 comments
Open

Provide a RefSkel.read() shortcut to read entire target skeleton #1101

phorward opened this issue Mar 13, 2024 · 0 comments
Labels
feature New feature or request Priority: Low This issue can be considered with enough idle time.

Comments

@phorward
Copy link
Member

For several use-cases, this

studyworkflow_skel = conf.main_app.studyworkflow.viewSkel()

if not studyworkflow_skel.fromDB(skel["studyworkflow"]["dest"]["key"]):
    logging.error(f"""The studyworkflow {skel["studyworkflow"]["dest"]=} was meanwhile deleted?""")
    return

could be substituted by

studyworkflow_skel = skel["studyworkflow"]["dest"].read()

with nice exceptions being thrown when the skeleton is gone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request Priority: Low This issue can be considered with enough idle time.
Projects
None yet
Development

No branches or pull requests

1 participant