<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Re: [Seaside] Re: Confused over the use of WAExternalFileLibrary...</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Sure, submit it as a patch for Cincom to review. I imagine subdirectories should be part of basic functionality for file serving.<BR>
<BR>
Cheers!<BR>
<BR>
-Boris (via BlackBerry)<BR>
<BR>
----- Original Message -----<BR>
From: seaside-bounces@lists.squeakfoundation.org &lt;seaside-bounces@lists.squeakfoundation.org&gt;<BR>
To: Seaside - general discussion &lt;seaside@lists.squeakfoundation.org&gt;<BR>
Sent: Mon Jun 16 17:58:04 2008<BR>
Subject: Re: [Seaside] Re: Confused over the use of WAExternalFileLibrary...<BR>
<BR>
Ok.. In thinking about the big picture here and trying to<BR>
help perspective future users of this class.. I'm wondering IF<BR>
I were to alter the existing WAExternalFileLibrary to be more<BR>
flexible (add support for subdirectories + more obvious config<BR>
features), would that annoy other users of this class?&nbsp; I'm not<BR>
sure how many people are actually using it for anything --<BR>
comments?&nbsp; At a minimum I'll certainly document the current<BR>
behavior including where the 'files' directory lives within the<BR>
VW tree which was half the problem for me to guess.<BR>
<BR>
-- Rick<BR>
<BR>
On Sun, June 15, 2008 8:07 pm, Richard E. Flower wrote:<BR>
&gt; This is really odd to me.. I finally got it working.&nbsp; In my case, I<BR>
&gt; used the name &quot;include&quot; in the dispatch editor for Seaside (where the<BR>
&gt; configuration of the WAExternalFileLibrary lives) and my links needed<BR>
&gt; to be named &quot;include/external/foo.jpg&quot; but the files live in<BR>
&gt; the VW image directory as &quot;vw7.6/image/files/foo.jpg&quot;.. It also does<BR>
&gt; not appear to handle subdirectories from what I've seen.. I guess I'll<BR>
&gt; have to spend some time looking into Apache again since this isn't<BR>
&gt; doing what I was hoping.. Oh well..<BR>
&gt;<BR>
&gt; -- Rick<BR>
&gt;<BR>
&gt;<BR>
&gt; On Jun 13, 2008, at 2:21 PM, Magnus Schwarz wrote:<BR>
&gt;<BR>
&gt;&gt; Hi Rick,<BR>
&gt;&gt;<BR>
&gt;&gt; although the files reside in the /files directory (i.e. /files/<BR>
&gt;&gt; myFile.jpg), the proper URL in Seaside is files/external/myFile.jpg.<BR>
&gt;&gt; (This may IMHO be a bit confusing...)<BR>
&gt;&gt;<BR>
&gt;&gt; Regards,<BR>
&gt;&gt; Magnus<BR>
&gt;&gt;<BR>
&gt;&gt; seaside-request@lists.squeakfoundation.org schrieb:<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&nbsp;&nbsp; 1. Confused over the use of WAExternalFileLibrary...<BR>
&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (Richard E. Flower)<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; ----------------------------------------------------------------------<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; Message: 1<BR>
&gt;&gt;&gt; Date: Thu, 12 Jun 2008 23:02:12 -0700<BR>
&gt;&gt;&gt; From: &quot;Richard E. Flower&quot; &lt;rickf@ca-flower.com&gt;<BR>
&gt;&gt;&gt; Subject: [Seaside] Confused over the use of WAExternalFileLibrary...<BR>
&gt;&gt;&gt; To: Seaside - general discussion &lt;seaside@lists.squeakfoundation.org&gt;<BR>
&gt;&gt;&gt; Message-ID: &lt;416C80A3-37ED-4704-B5D6-815F2DC1EE1E@ca-flower.com&gt;<BR>
&gt;&gt;&gt; Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; Ok.. I've gotten past my initial hurdles with Boris' help but none<BR>
&gt;&gt;&gt; of&nbsp; my css files or images are getting pulled in due<BR>
&gt;&gt;&gt; to the deprecated API that I was using w/ Seaside 2.6 (besides the<BR>
&gt;&gt;&gt; move from Webtoolkit to Opentalk)..<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; Anyway, in perusing the old mail messages from the list, it<BR>
&gt;&gt;&gt; appears&nbsp; that WAExternalFileLibrary may be the solution<BR>
&gt;&gt;&gt; I'm looking for but I'm stuck with trying to get it to work.&nbsp; I've<BR>
&gt;&gt;&gt; created a &quot;Files&quot; entry point as indicated and named it &quot;include&quot;.<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; Now, I've changed one of my image references to point to /seaside/<BR>
&gt;&gt;&gt; files/image.jpg but its never found.. The docs are very terse<BR>
&gt;&gt;&gt; on the usage.. Am I missing something?&nbsp; Where does the directory<BR>
&gt;&gt;&gt; lie&nbsp; in the filesystem for VW? I've tried the top-level VW directory<BR>
&gt;&gt;&gt; along with the 'image' subdirectory...&nbsp; Also, if I want to have<BR>
&gt;&gt;&gt; one&nbsp; directory w/ css and another with images how is that done?<BR>
&gt;&gt;&gt; Thanks!<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; -- Rick<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;&gt; --<BR>
&gt;&gt; Magnus Schwarz * certified Scrum Master / Smalltalk architect *<BR>
&gt;&gt; <A HREF="mailto:magnus.schwarz@heeg.de">mailto:magnus.schwarz@heeg.de</A><BR>
&gt;&gt; phone:+49 231 97599-0 * fax:+49 231 97599-20<BR>
&gt;&gt; Georg Heeg eK Dortmund<BR>
&gt;&gt; Handelsregister: Amtsgericht Dortmund&nbsp; A 12812<BR>
&gt;&gt; ---------------------------------------------------<BR>
&gt;&gt; PGP PUBLIC KEY BLOCK via <A HREF="http://www.heeg.de/~magnus">http://www.heeg.de/~magnus</A><BR>
&gt;&gt;<BR>
&gt;&gt; _______________________________________________<BR>
&gt;&gt; seaside mailing list<BR>
&gt;&gt; seaside@lists.squeakfoundation.org<BR>
&gt;&gt; <A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
&gt;&gt;<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; seaside mailing list<BR>
&gt; seaside@lists.squeakfoundation.org<BR>
&gt; <A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
&gt;<BR>
&gt;<BR>
<BR>
<BR>
_______________________________________________<BR>
seaside mailing list<BR>
seaside@lists.squeakfoundation.org<BR>
<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
</FONT>
</P>

</BODY>
</HTML>