[Erp5-dev] erp5_xxx_style packaging

bartek bartek at erp5.pl
Sat Aug 11 16:46:05 CEST 2007


Thank you very much for prompt response!

Bartek

Jérome Perrin wrote:
> 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):
> 
> _______________________________________________
> 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"



More information about the Erp5-dev mailing list