Replaced method by:
def initNewLines(self):
self.newlines = []
for i in range(len(self.raw)):
if self.raw[i:i+1]=='\n':
self.newlines.append(i)And no more complaints from web2py. Would like to know what the problem is though. --

