durusmail: quixote-users: Re: _q_lookup and namespaces
_q_lookup and namespaces
2003-06-10
2003-06-10
Re: _q_lookup and namespaces
2003-06-10
2003-06-11
2003-06-11
2003-06-11
2003-06-13
Re: _q_lookup and namespaces
Neil Schemenauer
2003-06-11
On Tue, Jun 10, 2003 at 05:40:03PM -0600, VanL wrote:
> This comment gets to my point exactly.  Are the only two ways to chain
> namespaces:
>
> 1. import a module or have an instantiated class hanging around
> 2. _q_lookup
>
> or is there a third way?

Use classes and __getattr__ or properties to dynamically generate
attributes.  Use _q_resolve to lazily create namespaces.  Subclass the
publisher.

  Neil

reply