Why does this URL work:
http://localhost:8080/task/?task_id=82
and this one does not:
http://localhost:8080/task/82
And by 'not', I mean:
404 Not Found
The path '/task/82' was not found.
Page handler: "The path '/task/82' was not found."
Traceback (most recent call last):
File "e:\code\python25\lib\site-packages\cherrypy-2.3.0-py2.5.egg
\cherrypy\_cphttptools.py", line 121, in _run
self.main()
File "e:\code\python25\lib\site-packages\cherrypy-2.3.0-py2.5.egg
\cherrypy\_cphttptools.py", line 256, in main
page_handler, object_path, virtual_path =
self.mapPathToObject(path)
File "e:\code\python25\lib\site-packages\cherrypy-2.3.0-py2.5.egg
\cherrypy\_cphttptools.py", line 326, in mapPathToObject
raise cherrypy.NotFound(objectpath)
NotFound: 404
As I understand it, looking at
http://docs.turbogears.org/1.0/GettingStarted/Arguments,
these two URLs should be equivalent, for a controller called task
added to the root controller, with an index method that takes one
parameter called task_id.
The controller looks like this:
class TaskController(object):
@expose(template="view_task")
def index(self, task_id=None):
# ...etc...
I've tried with and without having the parameter have a default value,
to no avail.
What am I misunderstanding?
Using TG 1.0.4.4, Python 2.5, WinXP.
--
Ben Sizer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---