Would it be possible to move the call to _postprocessing in DIV.__init__ to 
the very end?  As it is right now in _postprocessing the parent hasn't been 
set yet, since _postprocessing is not called last.  I have made this change 
on my local branch and it does not seem to affect anything that I can tell. 
It does make it possible for me to use the parent attribute of 
self.components in _postprocessing though.

_postprocessing should be the last thing __init__ does.  Is there any 
particular reason that there is processing happening (setting parent on 
components) in __init__ after _postprocessing is run?  I cannot think of 
anything that would be broken by this change, but I am far from an expert 
on web2py so that's why I am asking here.  I would prefer to use 
_postprocessing for things instead of having to override xml and the 
computation running every time the component is rendered, when it can be 
handled once at creation.

Michael

-- 



Reply via email to