I think your problem may be in the url mapping. Try this:
'/(.*)', 'index'
Note the parens - I think that matters.
For what it's worth (your mileage may vary), I've found I'm not doing
very much argument passing on the URL once I got going past the
tutorials. I'm using web.data() and web.input() to get querystring or
post data the "old fashioned" way. For my jQuery ajax posts, I even
made a wrapper function:
def getAjaxArg(sArg, sDefault=""):
"""Picks out and returns a single value."""
data = uiGlobals.web.data()
dic = json.loads(data)
if dic.has_key(sArg):
return dic[sArg]
else:
return sDefault
and I call it like this:
xyz = getAjaxArg("myarg")
> --
> You received this message because you are subscribed to the Google Groups "web.py" group.
> To post to this group, send email to
we...@googlegroups.com.
> To unsubscribe from this group, send email to
webpy+un...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.
>