Hi Plone Developers!
I currently learned that schema hints are not inherited by chield classes of a schema.
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.
Let us further assume that this behavior is intended - since it exhibits an inbuild logic: If the form hints were to be inherited - how to get rid of them in client classes?
We have an application with quite a bit of inheritence of schemas. So it would be nice to know a way to inherit the schema hints to a child schema, explizitly. Is there an API for it? If not please do not elaborate! I can fiddle that pice of code myself, but I prefere to use code already existing.
Any help appreciated
Volker