I have a Python based webapp, in wich one, I would like to use Google
Accounts to let the users log in. it is simple, let's say my app is
on:

http://myapp.appspot.com/

What I want to do is to "greet" the users with the Google Accounts
Auth Screen when they navigate to the app, and only after logged in,
let them see the App's interface.

The other way to do it would be adding a static folder, let's say
"premium" and in that case, All the users would be able to see app's
interface without logging in, but let's say they want to go into:

http://myapp.appspot.com/premium/whatever.htm

So, in that case, I would like to restrict all the "/premium" URL's to
the logged in users...

I understand it's easy to do by just adding this handler into my
"app.yaml" file:

- url: /premium/.*
  script: premium.py
  login: required
But the thing is, I don't understand what does "premium.py" content
has to be...

Can you help me with this confusion? Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to