The project I'm working on is a GUI for a device that obtains data on electric currents. I'm using web.py. The function of the 'urls = ' statement is that it shows page '/text' with the information in class 'classname'
---> urls = ('/text', 'classname')
I have a page with a form (on page x/arduStat) where the user can input information (like modifications to the device). The readings come out fine when they are input. However, the readings are shown on the page x/arduStat. The problem is that I want to user to be able to view the readings on a separate page. So with web.py, since web pages are designated to classes, I created a class called 'readings'. The problem is calling the variables of POST function of the arduStat from the readings class. I have been completely stumped for the last 5 hours. Anyone got a clue?
I tried placing the readings class into the code, making the readings class a subclass of arduStat, but that didn't work. Every time I try to call the variables beginning with an 'ardu.' prefix, I get an error saying that they don't exist. I tried making the POST function return the variables, but they still don't exist by the time I try to call them from the readings class.
http://paste.pocoo.org/show/244343/
---> urls = ('/text', 'classname')
I have a page with a form (on page x/arduStat) where the user can input information (like modifications to the device). The readings come out fine when they are input. However, the readings are shown on the page x/arduStat. The problem is that I want to user to be able to view the readings on a separate page. So with web.py, since web pages are designated to classes, I created a class called 'readings'. The problem is calling the variables of POST function of the arduStat from the readings class. I have been completely stumped for the last 5 hours. Anyone got a clue?
I tried placing the readings class into the code, making the readings class a subclass of arduStat, but that didn't work. Every time I try to call the variables beginning with an 'ardu.' prefix, I get an error saying that they don't exist. I tried making the POST function return the variables, but they still don't exist by the time I try to call them from the readings class.
http://paste.pocoo.org/show/244343/