Does this looks like a reasonable solution for handling different
sites?

urls = (
    '/.*', 'LoadSite'
)


class LoadSite:
    def GET(self):
        env = web.ctx.env
        site = env['SERVER_NAME']
        root = os.path.join('/opt/webpy/main', site)
        if not os.path.isdir(root):
            return
        sys.path.insert(0, root)
        from siteconf import *

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to