TypeError: default() takes exactly 1 argument (3 given)
That is because you have to declare default like so:
def default(self, dir, *args, **kwargs):
...
"default" is the function that's accessed
instead of a 404 error. So
when the static content does not exist, it's attempting to
visit your
404 page that doesn't have the correct paramaters included
in the
function declaration/
In conclusion, I've drawn that you haven't hosted the
static content
properly. It doesn't think it is where you have placed it.
Look up some
example code for 2.2 static content, and try to manipulate
it for your
situation. I've been using 2.1 so I can't help with that,
sorry.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|