On Mon, Sep 8, 2008 at 8:48 AM, wonko <[EMAIL PROTECTED]> wrote:
>
> btw thank you this is all extremely helpful. I have one more problem
> I'm trying to solve. I'm Using the variables I get to send commands
> to another module, the problem is if the variable is null then I get
> an error. I tried to solve this with an if statement:
>
> class index:
> def GET(self):
> i = web.input()
> if i.x1 != None:
> x10.sendCommands('/dev/ttyS0', i.x1)
> print render.index(i.x1)
use
i = web.input(x1=None)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---