In Archetypes, to move a field from a set of fields (or schemas) to another, we can do the following:
schema['creators'].schemata = 'default'
However, I do not achieve the same using Dexterity. I tried using form hints. Example:
form.fieldset('default', fields=['creators'] )
I notice that this does not work, because the "creators" field is unknown at this time. (Ownership has not yet been evaluated).
However, with the prompts in the form, I can go from "default" to another (for example, "property").
myfile = NamedFile(title=_(u"A file")) form.fieldset('ownership', fields=['myfile'])
How can i do this? Writing your own behavior?
thanks!
source share