[Karrigell-main] Didier's suggestions
Brought to you by:
quentel
From: Pierre Q. <que...@wa...> - 2003-05-17 07:08:29
|
I'm very glad and impressed to see these new suggestions. He are my = reactions, please take them just as personal opinions and not as decisions. I've = been working on my own for 6 months on Karrigell and it will take me a little = time to learn to work with a team... 1. Test-suite - combination Python/HTML : I'll ask Brian Olsen, who's been very = patient testing successive versions of PythonInsideHTML ans seems to have a lot of use = cases - who could test the second ? - I don't understand the third one, sorry. Do you mean change a piece of = code in a pih script for instance ? 2. Yes, definitely !=20 3. and 4. I fully agree with the objectives behind these suggestions. We = could=20 achieve them the way you suggest, but I'd rather keep things *very* = simple for programmers and I'm afraid adding new concepts of "paths for included = scripts" and "paths for imports" would be confusing. There may be other ways to do = the same things : for 3. don't aliases already allow this ? In Include(aScript), aScript = is the url for the script, and urls are resolved into file names with = translate_to_path, which handles aliases By the way, the Include method should be enhanced :=20 - add the directory of the script in sys.path (for imports from the = script) - useless if suggestion 4 is implemented - before calling render, save current dir, chdir to the script directory = and after render, restore previous directory I've tried minor modifications to include the forum demo in a page in = another directory, using = Include("/components/forum/index.pih",dbDir=3D"demo/dummy") where "components" is an alias to a directory where the forum demo = stands, and "demo/dummy" is the directory where the forum database for the = application will stand for 4. we could just add all dirs and subdirs declared in Karrigell.ini = (root=20 and aliases) in sys.path before launching the server 5. Ok ; if you suggest this you must have an example in which this would = be useful,=20 could you give one ? Now who could implement all this ? Since you're already working on = Karrigell.py=20 and the new Template.py I think it could be you, Didier ? Thanks again, Pierre PS I had not yet subscribed to the mainling list, this is why this = answer is out of the thread... |