[Twisted-web] WG: Woven: Problem with Controler
James Y Knight
twisted-web@twistedmatrix.com
Wed, 4 Feb 2004 14:25:34 -0500
On Feb 4, 2004, at 12:51 PM, Alex Levy wrote:
> This is just my first reaction, but:
>
> Have you tried setting the controller and model on something other than
> the root node ('<html>') in your template? My experience with Woven was
> that the "all-encompassing" element in an HTML template didn't get
> processed the way everything else did.
>
> I don't know if this has changed in nevow.
Nevow doesn't do weird stuff like that. :)
My first inclination would be to suspect that your controller's
"self.model" isn't the same model as you think it is. I'm not sure if
Controller is supposed to set self.model to the containing model?
If that's actually supposed to work, then the problem probably has
something to do with too much copying, caching, or adapting of the data
(as woven tends to do). But, if that's the case, I don't know what to
suggest to solve it, other than "don't use setSubmodel". Or maybe
"don't use woven" :)
James