>  for i in range(10):
>      atn = "at"+str(i)
>      atn1 = "at"+str(i+1)
>      web.update('atab', $atn='$atn1', vars=locals())

I think you want:

for i in range(10:
    web.update('atab', vars=locals(), **{'at' + str(i): 'at' + str(i+1)})

Although there's probably a better way to do what you're trying to do.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to