[web2py] TAG() throws a ticket when string too short

2010-09-12 Thread weheh
I'm flattening some text, assuming it's html, and get this error message when the text input is less than 4 characters: input='abc' stream=cStringIO.StringIO(TAG(input).flatten()) File "C:/web2py/applications/myapp/controllers/myfunc.py", line 311, in process_text_in stream=cStringIO.Strin

Re: [web2py] TAG() throws a ticket when string too short

2010-09-12 Thread Jonathan Lundell
On Sep 12, 2010, at 8:57 AM, weheh wrote: > > I'm flattening some text, assuming it's html, and get this error > message when the text input is less than 4 characters: > > input='abc' > stream=cStringIO.StringIO(TAG(input).flatten()) What are you expecting this to generate? At first glance, it s

Re: [web2py] TAG() throws a ticket when string too short

2010-09-12 Thread Jonathan Lundell
On Sep 12, 2010, at 9:56 AM, Jonathan Lundell wrote: > > On Sep 12, 2010, at 8:57 AM, weheh wrote: >> >> I'm flattening some text, assuming it's html, and get this error >> message when the text input is less than 4 characters: >> >> input='abc' >> stream=cStringIO.StringIO(TAG(input).flatten())