[web2py] Re: Voting system without users.

2014-03-21 Thread Encompass solutions
Thanks for the input. The site for viewing the grams are just webpages and votes are done from the web interface. I wasn't thinking correctly with how to store the items in the dictionary and I needed to add simple dictionary with the items they have voted for. So the problem is fixed. The ses

[web2py] Re: Voting system without users.

2014-03-04 Thread Leonel Câmara
Why are you using the session's __dict__ directly? I see no good reason to do it. Apart from that it appears you're trying to limit this to one vote per user, using session (I'm guessing the actual logic to save the votes in the db is missing). Which has obvious failures but may or not be