In summary, it looks as if there are aspects that were overlooked when declaring this the new way to go. I agree that fragments are not pretty, but this is a serious regression.
I just stumbled over the (now non existant) description of the fragment mechanism. As far as I can tell, the use of fragments is now totally deprecated (at least there is no documentation any more; the deprecation timeline does not mention it though) and instead a dance with overriding page base templates should be done.
I'm not sure I like that, for the following reasons:
- The Application Content should not need to know about the page base template. It is a basic proposition that integrating 3rd party components should not need major rework of the application. (Though the need for using app_reverse works against that proposition already, I wish we could find a better solution than app_reverse!). This new method now tightly couples the implementation of the app and the structure of the base page template making it impossible to re-use them verbatim in some other site!
- Inheriting from the base template actually does something totally different than just setting a fragment for overriding eg. the page title. You cannot have other content types on the same page as the app content now will totally override the base page. The content of the region with the app content is lost, it is no longer possible to put eg. a RichText before an app content. We use that all the time.
- What this new method of returning a tuple from the app does is basically just the same as the @standalone decorator already did, so why have yet another implementation?
In summary, it looks as if there are aspects that were overlooked when declaring this the new way to go. I agree that fragments are not pretty, but this is a serious regression.
Yes, the removal of the reverse() monkey patch and the introduction of app_reverse() make integration of unmodified apps harder. I think it's worth it though -- no more fighting with the imports until it does not break anymore.
We use fragments a lot in content types to push some javascript to the bottom of a page. Is there another way to achieve this without fragments?
--
You received this message because you are subscribed to the Google Groups "Django FeinCMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-feincm...@googlegroups.com.
To post to this group, send an email to django-...@googlegroups.com.