def _compute_fields_order(self, schema): """ Given a `schema` interface compute the field ordering the way `plone.autoform` does, i.e taking into account `plone.directives.form` ordering directives. Return: a list of field names in order. """ auto_fields = AutoFields() auto_fields.schema = schema auto_fields.request = getRequest() auto_fields.mode = INPUT_MODE auto_fields.updateFieldsFromSchemata() return auto_fields.fields