[Zope-dev] Why is TemplateDict so opaque? -and- Have youseen this problem?

Patrick Phalen zope@teleo.net
Fri, 17 Dec 1999 09:07:50 -0800


[Jim Fulton, on Fri, 17 Dec 1999]

:: Although I think that the current situation is, on some level, 
:: justifiable, I'd also love to improve it.  While I understand
:: why it is necessary to pass "_.None, _", I'd love for it to 
:: be unnecessary.
:: 
:: After reading your rant, I've given some thought to this and
:: I think I might have an idea how to accomplish it. It does 
:: involve some, uh, hijinks under the hood, but I do think it is doable
:: and am in favor of it myself. I'll put a request into the collector
:: and will champion it with the Zope project management folks.

You're scaring me. ;)

Don't know what you have in mind, but if it involves diverging from
predictable Pythonicness, I wonder if a better solution wouldn't be
to just publish a simple tutorial on Python scoping rules and
namespaces as part of the docs.

The subject isn't that hard to grasp, it can be (as has been) covered
in a one page treatment, but if it's laid out anywhere on the Zope Web
site, I haven't seen it.