Discussion:
[Erp5-dev] erp5_xxx_style packaging
bartek
2007-08-10 14:22:02 UTC
Permalink
Hello

I wonder, how does the bt5 installer know to which layer a skin in
portal_skins properties? I mean, most skins are added to all layers, but
for example erp5_csv_style is put only to CSV layer. How this is
achieved? I'm writing an RSS skin, and would like it to install in a
similar manner.

Also, are all layers created upon bootstrap? How to make ERP5 create one
more layer?

Bartek
--
"feelings affect productivity. (...) unhappy people write worse
software, and less of it."
Karl Fogel, "Producing Open Source Software"
Jérome Perrin
2007-08-10 15:03:04 UTC
Permalink
Post by bartek
Hello
I wonder, how does the bt5 installer know to which layer a skin in
portal_skins properties? I mean, most skins are added to all layers, but
for example erp5_csv_style is put only to CSV layer. How this is
achieved? I'm writing an RSS skin, and would like it to install in a
similar manner.
Hello,

You have to set a local property on your skin folder,
business_template_registered_skin_selections of type list or tokens and
add "RSS" in this list.
http://wiki.erp5.org/HowToCreateBusinessTemplate might contain more details.
Post by bartek
Also, are all layers created upon bootstrap? How to make ERP5 create one
more layer?
If you use an unknown skin selection (not one of the default Print,
View, CSV) it should be added when installing the business template.
This feature is currently not implemented, but we have someone here
working on it.
For now, you can add the skin selection manually, or use this patch.

J?rome

Index: ERP5Site.py
===================================================================
--- ERP5Site.py (r?vision 15585)
+++ ERP5Site.py (copie de travail)
@@ -1297,6 +1297,10 @@
, skin_folders
, make_default = 0
)
+ ps.addSkinSelection( 'RSS'
+ , skin_folders
+ , make_default = 0
+ )
p.setupCurrentSkin()

def setupWorkflow(self, p):
bartek
2007-08-11 14:46:05 UTC
Permalink
Thank you very much for prompt response!

Bartek
Post by Jérome Perrin
Post by bartek
Hello
I wonder, how does the bt5 installer know to which layer a skin in
portal_skins properties? I mean, most skins are added to all layers,
but for example erp5_csv_style is put only to CSV layer. How this is
achieved? I'm writing an RSS skin, and would like it to install in a
similar manner.
Hello,
You have to set a local property on your skin folder,
business_template_registered_skin_selections of type list or tokens and
add "RSS" in this list.
http://wiki.erp5.org/HowToCreateBusinessTemplate might contain more details.
Post by bartek
Also, are all layers created upon bootstrap? How to make ERP5 create
one more layer?
If you use an unknown skin selection (not one of the default Print,
View, CSV) it should be added when installing the business template.
This feature is currently not implemented, but we have someone here
working on it.
For now, you can add the skin selection manually, or use this patch.
J?rome
Index: ERP5Site.py
===================================================================
--- ERP5Site.py (r?vision 15585)
+++ ERP5Site.py (copie de travail)
@@ -1297,6 +1297,10 @@
, skin_folders
, make_default = 0
)
+ ps.addSkinSelection( 'RSS'
+ , skin_folders
+ , make_default = 0
+ )
p.setupCurrentSkin()
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
--
"feelings affect productivity. (...) unhappy people write worse
software, and less of it."
Karl Fogel, "Producing Open Source Software"
Jérome Perrin
2007-09-24 14:18:42 UTC
Permalink
Post by Jérome Perrin
If you use an unknown skin selection (not one of the default Print,
View, CSV) it should be added when installing the business template.
This feature is currently not implemented
BTW, this has been done in r16531

J?rome

Jean-Paul Smets
2007-08-11 09:52:42 UTC
Permalink
Post by bartek
Hello
I wonder, how does the bt5 installer know to which layer a skin in
portal_skins properties? I mean, most skins are added to all layers,
but for example erp5_csv_style is put only to CSV layer. How this is
achieved? I'm writing an RSS skin, and would like it to install in a
similar manner.
Also, are all layers created upon bootstrap? How to make ERP5 create
one more layer?
Bartek
What a coincidence. We actually asked yesterday someone at Nexedi to fix
this issue. Business template mechanism must be extended.
Hopefully, it will be solved in a couple of days.

Regards,

JPS.
--
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
Nexedi: Consulting and Development of Libre / Open Source Software
http://www.nexedi.com
ERP5: Libre/ Open Source ERP Software for small and medium companies
http://www.erp5.org
Loading...