problem with iteration

2007-11-03 Thread Panagiotis Atmatzidis
Hello, I managed to write some code in order to do what I wanted: Inject code in the right place, in some html files. I developed the program using small functions, one at the time in order to see how they work. When I tried to put these pieces of code together I got this error: TypeError: iterati

Problem with regexp and text injection

2007-10-21 Thread Panagiotis Atmatzidis
Hello, I want to create a script in python that search for .html files in the predefined directory and subdirectories. Then it checks if a specific snippet of code exists in the .html file, if not it injects/adds the code right below the string otherwise bypasses the file. I wrote the first part