[kamaelia-list] Re: Autoloading Components based on Imports

2009-07-03 Thread Michael Sparks
On Tuesday 30 June 2009 22:16:41 John Eikenberry wrote: > What is wrong with simply importing the most common things in > Kamaelia/__init__.py so they'd be available to import off the top level > package? Why all the autoload() magic in the original? It was the latter > that I was mainly disagreei

[kamaelia-list] Re: Autoloading Components based on Imports

2009-06-30 Thread John Eikenberry
Michael Sparks wrote: > I must admit that I'm more than a little surprised at the overall > consensus here, but it's a very clear one. > > As you can imagine I'm in favour of the idea for obvious reasons... > but I'd be a fool if I asked for advice on what people thought and > then ignored it. >

[kamaelia-list] Re: Autoloading Components based on Imports

2009-06-30 Thread Gloria W
> Essentially I'm wondering how to best implement the equivalent of > $PATH for KamaeliaComponents. > I think this is perfectly satisfied by virtualenv, which generates a setup.pth file. This path file can be checked in and used as part of a project. easy_install modifies the setup.pth file

[kamaelia-list] Re: Autoloading Components based on Imports

2009-06-30 Thread Michael Sparks
I must admit that I'm more than a little surprised at the overall consensus here, but it's a very clear one. As you can imagine I'm in favour of the idea for obvious reasons... but I'd be a fool if I asked for advice on what people thought and then ignored it. For now, I'll say that this idea...

[kamaelia-list] Re: Autoloading Components based on Imports

2009-06-30 Thread John Eikenberry
Gloria W wrote: > On 06/23/2009 06:27 AM, Sylvain Hellegouarch wrote: > > I appreciate the fact that the current verbosity means I know where > > things are coming from and never worry about name clashing. > > > > - Sylvain > > > I have to admit, and I agree. I did something similar in PHP5 wi

[kamaelia-list] Re: Autoloading Components based on Imports

2009-06-28 Thread Gloria W
On 06/23/2009 06:27 AM, Sylvain Hellegouarch wrote: > Matt Hammond a écrit : > >>> So some questions arise: >>> 1. Good idea or not? >>> 2. Really? Could be viewed as bad mojo& messing about one step too >>> far. >>> 3. If OK, should it be static? ie the list of what gets imported

[kamaelia-list] Re: Autoloading Components based on Imports

2009-06-23 Thread Sylvain Hellegouarch
Matt Hammond a écrit : >> So some questions arise: >>1. Good idea or not? >>2. Really? Could be viewed as bad mojo & messing about one step too >> far. >>3. If OK, should it be static? ie the list of what gets imported and >>handles what dealt with by a table lookup in Kamaelia

[kamaelia-list] Re: Autoloading Components based on Imports

2009-06-23 Thread Matt Hammond
> So some questions arise: >1. Good idea or not? >2. Really? Could be viewed as bad mojo & messing about one step too > far. >3. If OK, should it be static? ie the list of what gets imported and >handles what dealt with by a table lookup in Kamaelia/__init__.py ? >4. Or sho