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)
Return True if 'name' is valid for a config, False otherwise.
dataset/ETHPy150Open twisted/nevow/nevow/guard.py/GuardSession.setDefaultResource--crossover with--dataset/ETHPy150Open bloomberg/phabricator-tools/py/abd/abdt_fs.py/is_config_name_valid