this should do the trick
def filador(txt):
txt = re.sub(r'\[','',txt)
txt = re.sub(r'\'','',txt)
txt = re.sub(r'\]','',txt)
fila = re.split(r',',txt)
return fila
cleans the string and split it, to make a list again
(I think there should be a better way, but I'm just begining to learn python
and web2py :D)
On Tue, Feb 17, 2009 at 00:59, DenesL <[email protected]> wrote:
>
> On Feb 16, 3:44 pm, Rodrigo Dewes <[email protected]> wrote:
> > I tried to get the form values on this way:
> >
> > form.vars.test
> >
> > and printed this way
> >
> > for x in form.vars.test :
> > print x
>
> I think you want:
>
> if request.vars.test:
> for x in request.vars.test:
> print x
> >
>
--
"Jeder Tag der Niederlage ist ein Sieg"
"Each day of the defeat is a victory"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---