Re: [Tutor] slow html generation code

2005-03-02 Thread Kent Johnson
Danny Yoo wrote: It also makes it easier to see a possible bug in the code: the last few lines in the 'for' loop look suspicious: ## txt = textile(tmp) + '' t = Template(txt) s = t.safe_substitute(title='Web-siter: %s' % i[:-5]) output = open(page, 'w') o

Re: [Tutor] slow html generation code

2005-03-02 Thread Danny Yoo
On Wed, 2 Mar 2005, Luis N wrote: > This code seems a little slow, is there anything in particular that > jumps out as being not quite right. Hi Luis, Some comments: You have an empty 'except' exception-handling block in the code: ## try: for i in files:

Re: [Tutor] slow html generation code

2005-03-02 Thread Sean Perry
Luis N wrote: This code seems a little slow, is there anything in particular that jumps out as being not quite right. The idea is that a file is opened that contains path names to other files, that are appended and outputed into a directory of choice. I plan to move this off the filesystem into a d

[Tutor] slow html generation code

2005-03-02 Thread Luis N
This code seems a little slow, is there anything in particular that jumps out as being not quite right. The idea is that a file is opened that contains path names to other files, that are appended and outputed into a directory of choice. I plan to move this off the filesystem into a database when