Is there a way to reorder the data passed into the functions.
For example:
In my urls I have: '/(.*)/css/(.*)', 'css'
and my class:
class css:
def GET(self, directory, name):
print name
So that means whatever class I pass it to I must have 2 variables for
each of the (.*)
Is it possible to reverse them so that if only one variable gets
passed, like in the case of http://localhost/css/style.css the
function can still handle it, by setting the second argument to None.
because default arguments cannot come before non-default arguments. If
there is another way to handle this, please advise, thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---