You can not get any parameter by using request.get(id).
This is not true. Have a look at
http://code.google.com/appengine/docs/gettingstarted/usingdatastore.html
If you want to use part of the URL path as arguments to the handler
you use groups in the
webapp.WSGIApplication argument.
If the URL
I mean Get method...
I have not seen any Get/parameter method in the page..
def post(self):
greeting = Greeting()
if users.get_current_user():
greeting.author = users.get_current_user()
greeting.content = self.request.get('content')
it's in the post function...
On Thu,
self.request.get will return parameters either passed in the URL (for
a get method) or as form data (for a post method). Unlike in, say,
PHP, there's no need to use different syntax based on how the
variables are sent.
On Oct 16, 3:59 am, kang [EMAIL PROTECTED] wrote:
I mean Get method...
I
Ok, that makes sense. I guess that must be the reason why some of the
example apps (written by bret taylor) use REquestHandler classes that
subclass a BaseRequestHandler class that includes the original request
object:
def generate(self, template_name, template_values={}):
values
I am new to Python and GAE. I just give you the way I solved the
GET/parameters problems:-)I think I need to read some example codes~
But I don't think your interpretation is correct. It's not a
Request/parameters problem. It's a Get/parameter problem. Usually we can see
url like /book?id=11. We
or you can write code like:
class Stuff:
get(self,favorites):
do something here.
application = webapp.WSGIApplication(
[(r'^/stuff/favorites/(?P(favorites).*)$', Stuff)],
debug=True)
the url is like :