[Seaside] state of the aubergine

Avi Bryant avi@beta4.com
Mon, 22 Apr 2002 21:14:05 -0700 (PDT)


On Mon, 22 Apr 2002, Nevin Pratt wrote:

> Assuming a <img src="@path/foo.jpg"> example, where the docRoot of the
> seaside app is set to: "http://www.test.com/", it looks like it is
> trying to bind to a 'foo' instance variable, because it results in a
> walkback with message <Could not find value for key "foo">.

Aha.  So what's going on here is that each IAElement subclass is being
asked whether they want that tag.  Now, IAImage grabs <img> tags
and IARepeat grabs anything with a / in the id.  What must be happening
is that IARepeat is being asked first.  We need to find some better
way of ordering this (for example, matches on tag take precedence over
matches on attributes) so these sorts of things don't happen.