Re: [web2py] Re: Smartgrid trouble: exceptions KeyError

2011-12-15 Thread Tsvi Mostovicz
I want to have a working demo of my app for anybody that comes to the site. If they decide to stay I save their data, otherwise I delete it with a cron job. I understand the signature is supposed to prevent hijacking of the session. I don't want the data to be compromised, even for a anonymous gues

[web2py] Re: Smartgrid trouble: exceptions KeyError

2011-12-15 Thread Cliff
import string import random mykey = ''.join( random.choice(string.ascii_lowercase+string.digits)\ for x in range(32) ) session.auth.hmac_key = mykey Read up on hmac_key in the online book. Unfo

[web2py] Re: Smartgrid trouble: exceptions KeyError

2011-12-15 Thread tsvim
Ok, after reading up on user_signature, I don't really like to turn it off. If I do turn it off, I'd like at least something that will allow the same for anonymous users. Is there anyway I can generate a user_signature for some anonymous user? Thanks, Tsvi

Re: [web2py] Re: Smartgrid trouble: exceptions KeyError

2011-12-14 Thread Marco Mansilla
you must be logged in to get rid of the not authorized message, grid and smartgrid verify session > SOLVED: I forgot to have the define_table statement in the main part, > otherwise the table is not defined. > I still have trouble as I can'tedit the table. I get a flash response > not authorized.

[web2py] Re: Smartgrid trouble: exceptions KeyError

2011-12-14 Thread Anthony
> > I still have trouble as I can'tedit the table. I get a flash response not > authorized. > I suppose I need to change some setting when calling the smartgrid method. > By default, I think user_signature=True, which requires login. Either log in, or set that to False. Anthony

[web2py] Re: Smartgrid trouble: exceptions KeyError

2011-12-14 Thread tsvim
SOLVED: I forgot to have the define_table statement in the main part, otherwise the table is not defined. I still have trouble as I can'tedit the table. I get a flash response not authorized. I suppose I need to change some setting when calling the smartgrid method.