Is there any way to make it to work like this
urls = (
'(\d+)\.site\.com', 'page'
)
app = web.application(urls, globals())
class page:
def GET(self, id):
return id
if __name__ == "__main__":
app.run()
On Apr 14, 1:38 pm, Anand Chitipothu <[email protected]> wrote:
> > I need 1.site.com, 2.site.com, 3.site.com to be processed by one
> > controller method, and the number to be extracted as its argument. Is
> > it possible with webpy?
>
> The domain name is available as web.ctx.host.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---