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

Inheritance of form schema hints, not working #57

Closed
volkerjaenisch opened this issue Jun 30, 2016 · 0 comments · Fixed by zopefoundation/zope.interface#144
Closed

Inheritance of form schema hints, not working #57

volkerjaenisch opened this issue Jun 30, 2016 · 0 comments · Fixed by zopefoundation/zope.interface#144

Comments

@volkerjaenisch
Copy link

Let's assume a simple case:

class IEmailAddress(model.Schema):

    read_permission(  check_spam='inqbus.mc.emailaddress.read_check_spam' )
    write_permission( check_spam='inqbus.mc.emailaddress.write_check_spam' )
    check_spam = schema.Bool(default=True,
                             title=_("check spam"),
                             required=False,
                             )

class ISpecialEmailAddress(IEmailAddress)

    check_virus = schema.Bool(default=True,
                             title=_("check virus"),
                             required=False,
                             )

The permissions set on the field "check_spam" are working perfectly on forms utilizing IEmailAddress but not on forms utilizing ISpecialEmailAddress.

Also please have a look on the ongoing discussion of this topic:
https://community.plone.org/t/inheritance-of-form-schema-hints/2388

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

Successfully merging a pull request may close this issue.

2 participants