durusmail: quixote-users: Have Publisher search keys as well as attributes?
Have Publisher search keys as well as attributes?
2002-09-11
2002-09-11
Have Publisher search keys as well as attributes?
Greg Ward
2002-09-11
On 11 September 2002, Hamish Lawson said:
> What do folks think about the idea of having Publisher search a namespace's
> keys (if available and assuming that the component has been named in
> _q_exports) when it can't find a component among the namespace's
> attributes? This would allow the use of component names that aren't valid
> Python attributes, e.g. 'report.html', for a little less work than
> resorting to _q_getname.

Absolutely not.  I know what a namespace is.  I don't know what a
namespace-that-also-kind-of-acts-like-a-dictionary is.  That idea
violates one of the programmer's prime directives, namely, "Keep It
Simple, Stupid".

> So it's actually already possible to use non-identifier component names
> without having to resort to _q_getname, thus removing one of my main
> motivations for having Publisher search a namespace's keys. Is there any
> remaining merit in the idea?

See?  You never really needed it in the first place!

        Greg
--
Greg Ward - software developer                gward@mems-exchange.org
MEMS Exchange                            http://www.mems-exchange.org


reply