[Erp5-dev] folder problem

Jacek Medrzycki jacek at erp5.pl
Tue Apr 8 09:20:38 CEST 2008


Tomasz Brzezina pisze:
> I made all skins in custom folder. But for BT I decided to move all 
> objects to brand new folder, which I call: cavemp_loyalty_card. I use 
> Cut/Paste ZMI function. I was so sure, that I not checked if it works 
> and I made BT and I try to "move" functionality to another zope 
> instance. During investigations (why the hell it doesn't work HERE) i 
> found that on my experimental instance it also not working!!! I found 
> that if I move files back to custom - everything works ok.
After you create new skin, go to portal_skins in ZMI, go to Properties 
tab and add your skin to the queues (layers): at least to the View 
queue, but no harm if you add it to all queues.
The aqusition mechanism on portal_skins work this way: -it returns a 
matching object (script, form etc) from the first skin in which it was 
found, starting from top (so you can "overwrite" standard scripts etc. 
by placing object with the same name in skin with higher precedence). If 
skin is not added to the queue, it is not searched at all.
Note, that "custom" skin is always added to the top of the queues, so it 
is always searched first. This is why your site worked where objects 
were in custom skin.

J.



More information about the Erp5-dev mailing list