if __name__ == '__main__':
The following code can be used to handle this URL::
def doLogin(self, username=None, password=None):
"""Check the username & password"""
``http://localhost/blog/2005/01/17``. This URL can be handled by the
def blog(self, year, month, day):
"""Deliver the blog post. According to *year* *month* *day*.
down, in case you have multiple methods to expose. For example, we could have
written the above "blog" example equivalently with a "default" method instead::
def default(self, year, month, day):
"""This method catch the positional arguments
*year*,*month*,*day* to delivery the blog content.