> It's not only for theadsafety but also to keep the logic outside of
> templates, just compare the new form template with the old one if you
> need an example. :-)
Well, I don't think availability of 'widget' in template namespace is
the reason.
Plus, as history teaches us, assuming a user is less competent then the
author and forcing particular behaviour upon him is no good. ;-)
To summarize:
1. I don't like been forced to write boilerplate code like this:
def update_data(self, d):
d['headers'] = self.headers
d['collist'] = self.collist
d['getcol'] = self.getcol
2. I think using "widget.collist" or "widget.headers" from within
template is clearer then simply "collist" or "headers". No need to
wonder where's particular variable come from. And less cluttering going
on.
Just my opinion.
Max.