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

Database entries can be added/edited by just a bone prefill #49

Open
phorward opened this issue Oct 28, 2024 · 1 comment
Open

Database entries can be added/edited by just a bone prefill #49

phorward opened this issue Oct 28, 2024 · 1 comment
Assignees

Comments

@phorward
Copy link
Member

Will be solved in the admin

  • Filter out error of bones where client data was missing
  • Use bounce

Originally posted by @sveneberth in viur-framework/viur-core#1220 (comment)

@phorward
Copy link
Member Author

phorward commented Oct 28, 2024

From #1220:

Working test scenario:

skeletons/test.py

from viur.core import skeleton
from viur.core.bones import *


class TestSkel(skeleton.Skeleton):
    name = StringBone(
        descr="Name",
        required=True,
        defaultValue="Test",
    )

modules/test.py

from viur.core.prototypes import List


class Test(List):
    pass

Reproduction

Call the vi-admin in an empty tab using http://localhost:8080/vi/s/main.html#/db/test/add?name=Hello, an entry with name "Hello" is immediately created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants