If you reset the datastore while logged in, the handlers will detect a valid user but if you try access it there will be an error.
Example from the contact page:self.user will be true, but self.user_key fails.
Steps to reproduce:
Start the app from GoogleAppEngineConsole.
Register an account.
Activate the account. (SDK Console -> Datastore Viewer -> Log Email -> First Item -> Find the link in the body property)
You should be logged in.
Stop the app from the GoogleAppEngineConsole.
Double click on the app. Make sure Clear datastore on launch is checked.
Restart the app, and directly navigate to localhost:8080/contact
You will get the following error:
AttributeError: 'NoneType' object has no attribute 'name'
Strangely, if you navigate to the home page first and then to the contact page it works fine. I had a bad time though because my home page was throwing the error.
If you reset the datastore while logged in, the handlers will detect a valid user but if you try access it there will be an error.
Example from the contact page:
self.user
will be true, butself.user_key
fails.Steps to reproduce:
SDK Console
->Datastore Viewer
->Log Email
->First Item
->Find the link in the body property
)Clear datastore on launch
is checked.localhost:8080/contact
You will get the following error:
AttributeError: 'NoneType' object has no attribute 'name'
Strangely, if you navigate to the home page first and then to the contact page it works fine. I had a bad time though because my home page was throwing the error.