subfolder in a layer lack in production mode

4 messages Options
Embed this post
Permalink
SauZheR at gOOgle () subfolder in a layer lack in production mode
Reply Threaded More More options
Print post
Permalink
Hi all.

I have  a subfolder in a layer that can be accessed only by starting
zope in debugmode on. With bin/instance start, simply that folder
isn't loaded at all.

For the sake of clearness the structure is:
plone_portal/portal_skins/folder_one/subfolder/image1.jpg. All the
others objecs in folder_one are loaded well. All subfolders (and sub
objects) no.

Could someone explain me this behaviour?

tnx,
alessandro.

--
  bye
SauZheR
************************************
l'iterazione è umana...
la ricorsione, Divina!
************************************
reply to: sauzher AT gmail DOT com

_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
ajung () Re: subfolder in a layer lack in production mode
Reply Threaded More More options
Print post
Permalink
On 05.08.09 08:53, SauZheR at gOOgle wrote:

> Hi all.
>
> I have  a subfolder in a layer that can be accessed only by starting
> zope in debugmode on. With bin/instance start, simply that folder
> isn't loaded at all.
>
> For the sake of clearness the structure is:
> plone_portal/portal_skins/folder_one/subfolder/image1.jpg. All the
> others objecs in folder_one are loaded well. All subfolders (and sub
> objects) no.
>
>  
Using subfolders in portal_skins is usually not the way to go.
It is highly recommended using flat folders.

-aj

[lists.vcf]

begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[hidden email]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard



_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Danilo G. Botelho () Re: subfolder in a layer lack in production mode
Reply Threaded More More options
Print post
Permalink
In reply to this post by SauZheR at gOOgle
I don't know why we should use only flat folders. In order to make subfolders accessible from a folder layer in portal_skins one could register that folder in skins.zcml, for example, like this:

<cmf:registerDirectory name="folder" recursive="True" />

Best regards,

Danilo G. Botelho.

SauZheR at gOOgle wrote:
Hi all.

I have  a subfolder in a layer that can be accessed only by starting
zope in debugmode on. With bin/instance start, simply that folder
isn't loaded at all.

For the sake of clearness the structure is:
plone_portal/portal_skins/folder_one/subfolder/image1.jpg. All the
others objecs in folder_one are loaded well. All subfolders (and sub
objects) no.

Could someone explain me this behaviour?

tnx,
alessandro.

--
  bye
SauZheR
************************************
l'iterazione è umana...
la ricorsione, Divina!
************************************
reply to: sauzher AT gmail DOT com

_______________________________________________
Product-Developers mailing list
Product-Developers@lists.plone.org
http://lists.plone.org/mailman/listinfo/product-developers
Hedley Roos () Re: subfolder in a layer lack in production mode
Reply Threaded More More options
Print post
Permalink
Danilo G. Botelho wrote:
> I don't know why we should use only flat folders.

Look at Archetypes to see why subfolders are a bad idea. You cannot
customize eg. string.pt without customizing the entire widgets directory.

Hedley

_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers