def setDefaultResource(self, rsrc, logout):
        if len(self.portals) != 1:
            raise RuntimeError("Ambiguous request for current avatar.")
        self.setResourceForPortal(
            rsrc,
            self.portals.keys()[0],
            logout)
Change the root-resource available to the user who has already
dataset/ETHPy150Open twisted/nevow/nevow/guard.py/GuardSession.setDefaultResource