[Zope] Weird paths in the filesystem using Photo and ExtFile
Pablo Ziliani
pablo at decode.com.ar
Sun Aug 27 17:32:39 EDT 2006
Thanks a lot, Stefan, for your kind response, I didn't see that.
Although it's not clear to me who is responsible for this, I suppose
that because of this "feature", storing Photos in the filesystem should
be discouraged in multiple virtual host environments and that a big
warning message added at least to this product's readme file.
Regards,
Pablo
Stefan H. Holek wrote:
> Hi Pablo,
>
> This comment from the ExtFile source code may shed some light on the
> issue. Photos can for historical reasons, and without changes to the
> Photo product, not take advantage of ZODB_PATH = PHYSICAL.
>
> # XXX: The Photo product uploads into unwrapped ExtImages.
> # As we can not reliably guess our parent object we fall back
> # to the old behavior. This means that Photos will always
> # use ZODB_PATH = VIRTUAL independent of config settings.
>
> Stefan
>
>
> On 25. Aug 2006, at 21:54, Pablo Ziliani wrote:
>
>> For example, if I call these "real" urls:
>> -
>> http://zopeserver.com:8080/sites/site1/images/image.jpg?display=whatever
>> -
>> http://zopeserver.com:8080/sites/site2/images/image.jpg?display=whatever
>>
>> in the filesystem I would have something like:
>> -
>> $INSTANCE_HOME/var/photos/sites/site1/images/image.jpg/image_whatever.jpg
>>
>> -
>> $INSTANCE_HOME/var/photos/sites/site1/images/image.jpg/image_whatever.jpg
>>
>>
>> but if I call the same via the virtual url:
>> - http://www.virtualsite1.com/images/image.jpg?display=whatever
>> - http://www.virtualsite2.com/images/image.jpg?display=whatever
>>
>> I only get:
>> $INSTANCE_HOME/var/photos/images/image.jpg/image_whatever.jpg
>
> --
> Anything that, in happening, causes something else to happen,
> causes something else to happen. --Douglas Adams
>
>
>
>
>
More information about the Zope
mailing list