Maybe something like this:

mylist = request.vars.mytextarea.splitlines()

That assumes a newline is the delimiter. If you use a different delimiter, 
then use .split(delimiter) instead.

Anthony

On Wednesday, February 22, 2012 3:24:07 PM UTC-5, Larry Wapnitsky wrote:
>
> Disclaimer:  I'm new to Web2py (2 days and loving it) and re-learning HTML 
> after many years away from it.
>
> I have a large text field on a form whose input will be a list of items 
> entered by the user, separated by some sort of delimiter (most likely a 
> newline).  Each valid line item will be entered into the database as its 
> own entity.
>
> How do I go about parsing this text box?  Everything I've seen so far 
> talks about fields that come from/go to a database, but  this one doesn't 
> do so directly.
>
> Let me know if I need to clarify.
>
> Thanks,
> Larry
>

Reply via email to