I think that we can take two things from tgext.subform which would make sense by themselves in crud:
- The validate method: it makes sense even in other contexts to have a method that can be used to validate data to create an entry.
- The idea of json based post: Instead of having a subtype_post method we can probably just check the X-Requested-With Header to choose if it is the case to return a json response or the redirect.
On the form side the issue is that tgext.subform relies on TW1, which is not going to see py3 support and is somehow deprecated.
Also I think we can achieve the same result with less effort, loading the nested form can probably be performed with just loading with something like jQuery.load the form add_form.display() without any template.
Should we probably keep the subfields editing discussion on tg-trunk alone as it actually relates more to tgext.crud than to sprox itself?