<!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.7654.12">
<TITLE>Re: [Seaside] [3.0] WAFileHandler not dealing with full paths?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Philippe,<BR>
<BR>
Anything more than just the next token from the consumer would be an improvement. In fact, sure, why not pass the whole context with part of the path already consumed to find the library class, then the library can consume the rest.<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: Wed Mar 10 22:05:57 2010<BR>
Subject: Re: [Seaside] [3.0] WAFileHandler not dealing with full paths?<BR>
<BR>
2010/3/10 Boris Popov, DeepCove Labs (YVR) &lt;boris@deepcovelabs.com&gt;:<BR>
&gt; Perhaps I'm missing some element to this, but right now I'm looking at the<BR>
&gt; handling of URLs such as,<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; /handler/library/directory/style.css<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; and it looks like it's impossible to have my library class respond to a<BR>
&gt; request for file whose path includes a directory. The problem is that as<BR>
&gt; WAFileHandler (/handler) is consuming the path #('library' 'directory'<BR>
&gt; 'style.css') , immediately after finding a proper libraryClass it asks it to<BR>
&gt; serve the document and passes value of &quot;consumer next&quot; instead of &quot;consumer<BR>
&gt; upToEnd&quot; or some such thing resulting in my library being asked to serve<BR>
&gt; 'directory' not 'directory/style.css'. Is this plain broken or by design? In<BR>
&gt; case you're curious, I'm collapsing a directory tree into a single library<BR>
&gt; by storing resources using their full path which includes directories.<BR>
<BR>
Just do be sure I'm understanding you correctly, you'd like<BR>
#documentAt:forContext: to take a collection of Strings instead a<BR>
single String?<BR>
<BR>
OTOH we could just pass in the context and access the consumer from there.<BR>
<BR>
Cheers<BR>
Philippe<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>