Re: [Rest2web-develop] Re: Enhancement suggestion to rest2web
Brought to you by:
mjfoord
From: Michael F. <fuz...@vo...> - 2006-04-09 23:02:47
|
Gaël Varoquaux wrote: > On Sun, Apr 09, 2006 at 11:51:25PM +0100, Michael Foord wrote: > >>> If you know a way of finding out the target directory or the root of >>> the target tree from either functions.py or embedded code than I can >>> code a appropriate function. >>> >> You can find this using ``Processor.target``, which is kind of a hack - >> but why I included access to the Processor object. >> > > Ha ! I should have investigator the processor object a bit more ( I > had seen that it was in the the namespace) > > >> What values would you like (they are very easy to add into the namespace) ? >> > > Well, you know as well as I do that it is hard to know in advance > what a user might need. I think the root of the target tree would be > enough. Do you confirm that os.getcwd will give me the root of the > source tree or is this just a coincidence that it does on my tests. > > The current working directory is explicitly set at the start - so you can rely on this behaviour. I'll probably add the target directory as an explicit value. > I'll write a function to copy file from the source tree to the > target tree that can be included in functions.py . I'll just wait until > tomorrow in order to have a clearer idea of what options/features might > be wanted for such function. > > Suggestions welcomed. > Ok. The file keyword isn't actually one I use (currently), I guess being able to specify a list of source files and a single target directory (relative to the current target directory I guess). All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Gaël > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > |