[Seaside] state of the aubergine

Nevin Pratt nevin@smalltalkpro.com
Mon, 22 Apr 2002 21:48:57 -0600


Julian Fitzell wrote:

>
>
> Just out of interest, does it work with <img src="@images\foo.jpg"> ??


Hmm, sort of.  It looks like it results in <img 
src="http://www.test.com\images\foo.jpg">.

But IAKom>>process: explicitly looks for "/" rather than "\" (via 
"aRequest url findTokens: '/'").  Consequently, the URL isn't getting 
properly parsed for this case.  So, no, it doesn't work, even though it 
sort of does.  I think you see what I mean.

In other words, to make that work would again require hacking the IAKom 
code.

>
> Obviously not a solution but it would confirm my suspicion of the 
> problem.
>
> As for the reason to have @foo.jpg as the ID, the reason is that if I 
> don't want to manually create a binding, I can give the id @foo.jpg 
> which makes the element dynamic (because it has an id) and the id 
> ("foo.jpg") is used by default as the name of the image (appended to 
> the docRoot).  If you just put <img src="images/foo.jpg"> then it 
> wouldn't get the docRoot added, and if you put <img src="@foo"> then 
> you'd have to write a binding when the default could have sufficed.


Good point for not modifying Seaside for what I was thinking.  But, if 
Comanche handles the static images instead of Seaside (which I'm still 
thinking should be the case if there is no leading "@"), it will 
automatically get appended to the docRoot (as Comanche understands it) 
anyway.  Which brings me back to thinking about modifying IAKom again.

But then, I think I need to think about it some more.

Nevin