I have a pretty simple web2py application that inputs information about 
academic seminars and then displays the seminar notices on our departmental 
home page. It is called, creatively, SeminarCalendar. This is hosted by 
pythonanywhere. It has all of 4 tables. 3 of which have 3 fields or fewer. 
It gets very little traffic, a big day might be 1000 hits.

Yesterday, I was playing around with a different application, Lines, hosted 
within the same web2py "site". This will be important. Today 
SeminarCalendar is throwing error tickets for the first time and I can't 
figure out what happened. I can't get into the database administration 
functions, it throws the same error: 
<type 'exceptions.ValueError'> insecure string pickle
with the error showing up in the format line of the last table. Remark that 
line and the error gets thrown from the previous line. The function in 
base.py that throws the error changes, no surprise. I wasn't aware of 
pickling anything, something internal and way past my abilities. Sorry, to 
be pathetic here.

So, I Pack All and run the app on locally. I can edit the app, db.py has 
the 4 tables etc, but again not see the sqlite database. I also can not 
serve pages from it (other apps work fine). The error is 'can not establish 
a secure connection to the server'. 

When I inspect the databases folder I find that there are tables (5 .table 
files, each almost a year old) that belong to Lines, not to 
SeminarCalendar. And since Lines is a dangerously messy playground, I must 
have bad links and data, which is presumably why pickle is bailing.  No 
note in the sql log. No obvious errors. The last row added to the 
SeminarCalendar is one I added and the data looks to be fine. 

So I guess I have a bunch of related questions: 
First, what is the best way to fix this! These tables are small and the 
included data is not critical, but...
Second, what on earth did I do to get tables from one app mixed in with 
tables from another app? I'd like to avoid this in the future! (Very 
embarrassing to have the Chair look at the page and ask what Error ticket 
means!)
Third, as a biologist, not a programmer, should I not be messing around 
with web2py? If I've missed something really obvious, I think I should go 
back to my test tubes. It was remarkable how 'easy' it was to set this app 
up. And what an improvement it was over what the Universities equivalent 
was.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to