Discussion:
[Erp5-dev] Duplicated Base_doAction
Rafael Monnerat
2007-12-26 15:31:36 UTC
Permalink
I found two Base_doAction scripts at erp5_core and erp5_xhtml_style. By
hierarchy at portal_skins the version at erp5_xhtml_style is used. It
means that at erp5_core should be removed.

Is it right?
Pelletier Vincent
2007-12-26 15:44:18 UTC
Permalink
Post by Rafael Monnerat
I found two Base_doAction scripts at erp5_core and erp5_xhtml_style. By
hierarchy at portal_skins the version at erp5_xhtml_style is used. It
means that at erp5_core should be removed.
IIRC, this is a remain from the erp5_html_style to erp5_xhtml_style
transition. Some erp5_core scripts were modified in an incompatible way, and
so were put in erp5_xhtml_style to avoid breaking existing sites using
erp5_html_style.

Problem is that removing it cannot be protected by dependancies, because
erp5_core must not depend on erp5_xhtml_style.

What can theoreticaly be done is moving this file from erp5_core to
erp5_html_style.
And maybe moving the one from erp5_xhtml_style to erp5_core - but I believe
this script is quite tightly related to HTML interface, so it might not be a
good idea to put it in erp5_core.
--
Vincent Pelletier
Rafael Monnerat
2007-12-26 16:11:30 UTC
Permalink
Post by Pelletier Vincent
Post by Rafael Monnerat
I found two Base_doAction scripts at erp5_core and erp5_xhtml_style. By
hierarchy at portal_skins the version at erp5_xhtml_style is used. It
means that at erp5_core should be removed.
IIRC, this is a remain from the erp5_html_style to erp5_xhtml_style
transition. Some erp5_core scripts were modified in an incompatible way, and
so were put in erp5_xhtml_style to avoid breaking existing sites using
erp5_html_style.
Problem is that removing it cannot be protected by dependancies, because
erp5_core must not depend on erp5_xhtml_style.
What can theoreticaly be done is moving this file from erp5_core to
erp5_html_style.
And maybe moving the one from erp5_xhtml_style to erp5_core - but I believe
this script is quite tightly related to HTML interface, so it might not be a
good idea to put it in erp5_core.
I think this should be unified or kept erp5_html_style and
erp5_xhtml_style using his diferent scripts in his skin folders.

My suggestion is:

If is not possible unified (or not good idea), move duplicated scrips
from erp5_core to erp5_html_style and make erp5_core depends from one
erp5_view_style.


Rafael Monnerat
Pelletier Vincent
2007-12-26 16:35:10 UTC
Permalink
and make erp5_core depends from one erp5_view_style.
Does any erp5_core script depend on this one ?
If they do, I think they should be moved to a third business template (in
Products/ERP5/bootstrap) which would contain scripts depending on
erp5_view_style.

Either way, there are potential dangerous implications with backward/forward
compatibility when any business template gets updated on an old site.
--
Vincent Pelletier
Loading...