Are you able to pickle the object outside of web2py (i.e., is the object generally pickleable, but fails only in web2py)?
http://docs.python.org/library/pickle.html#what-can-be-pickled-and-unpickled Anthony On Sunday, August 12, 2012 9:59:15 AM UTC-4, Web2py Mostly Newbie wrote: > > 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. > --