def create_session(self): if self._session: return self._session self.session = rhnSession.generate(web_user_id=self.getid()) return self.session