[Erp5-dev] erp5_xxx_style packaging

Jérome Perrin jerome at nexedi.com
Fri Aug 10 17:03:04 CEST 2007


bartek a écrit :
> 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.

> 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):




More information about the Erp5-dev mailing list