There are two pages in two different controller files running.
One is automated... it executes all the session updating for the interface. For example it tells what motor is in motion or what sensor was triggered. I don't have this controller function print anything at all. (I did have it print the data it just pulled at one point but the error never happened.) It simply updates a bunch of session variables. The second function in another controller file views that session data. I can refresh the page and it will read the session data and display it to the screen. This function prints data to the terminal when ever it is called. It prints the sorted(session.keys()) and the epoch time. This is where the error shows. When I refresh some times it shows the session data other times it does not. The parts of my page in the view that need the session data will not work. (They are NoneType objects.) I use the epoch time to show when they events happened to you. I don't have a session.forget in my entire coded no anything that would reset these varialbes except for the first function I mentioned here.
Best Regards,
Jason Brower
On 09/28/2010 04:37 PM, mdipierro wrote:
Jason,

I am sorry but I do not have enough information. What do you see in
the output that is wrong? What code produces the output?

massimo

On Sep 28, 6:16 am, Jason Brower<[email protected]>  wrote:
We had thought it at one point to be issues with the corruption of the
file I used between the machine_server and the web2py_server, but sadly
the issues still occurs...
I have been able to implement my machine server in twisted with AMP
protocol builder.  I have web2py picking up that data.  This is a
totally awsome setup and works very well.  I can see the data at any
time by simple requesting it.
I have 2 controller files running here...
One is running a page that refreshes a smaller one that runs a request
to the twisted server, it instantly gets the data back and parses it out
to the session keys you see in the attatched files.
On the second controller I have a more details information of that
session data.  It simply reads from the session keys and prints them
nicely for the view.  There is little code except when getting a
particular item in the session dictionaries. And a small custom form.  I
personally feel these are not related at all.
In that controller's index I also have it print the time.time() and
sorted(session.keys()) to print this debug information for you.  I was
manually refression the page to show you what happens.  It's not every
other anymore, it's rather random to me...
I can't imagine where else in my code I could be making a mistake here.
Best Regards,
Jason Brower

  error_report.txt
6KViewDownload

Reply via email to