[google-appengine] if admin to hide code in a template

2009-07-23 Thread loopymonkey
http://code.google.com/appengine/docs/python/users/adminusers.html user = users.get_current_user() if user: print "Welcome, %s!" % user.nickname() if users.is_current_user_admin(): print "Go to admin area" - - - - - - The above shows how to restrict something unless you are admin can you

[google-appengine] help with python url mapping/script handlers to create queries

2009-05-14 Thread loopymonkey
Any help much appreciated. Looking for any guidance or links to tutorials/examples. If my handler is: handlers: - url: /profile/(.*?)/(.*) script: /employee/\2/\1.py what is needed in my employee.py script to make it so a url that inlcuded /profile/edit/manager would allow me to use edit and

[google-appengine] Re: newbie question - url routing - using urls to make queries

2009-05-05 Thread loopymonkey
that's it. i was using python. Thanks Nick! On May 5, 7:47 am, "Nick Johnson (Google)" wrote: > Hi,loopymonkey, > > You don't specify which runtime you're working with, and the best way > to do this is runtime-specific. In Python, however, if you're

[google-appengine] newbie question - url routing - using urls to make queries

2009-05-04 Thread loopymonkey
Are there any tutorials or direct documentation links someone could share that best explain how i could grab from a url and use to make queries? so for example if i make a database to keep track of movies and if i type in myapp.appspot.com/batman it would list all my data for batman from my movie