예제 #1
0
    def at_cmdset_creation(self):
        """
        This is the only method defined in a cmdset, called during
        its creation. It should populate the set with command instances.

        As and example we just add the empty base `Command` object.
        It prints some info.
        """
        super(SessionCmdSet, self).at_cmdset_creation()
        #
        # any commands you add below will overload the default ones.
        #
        self.remove(account.CmdSessions())
예제 #2
0
파일: tests.py 프로젝트: warmb2009/muddery
 def test_sessions(self):
     self.call(account.CmdSessions(), "", "Your current session(s):", caller=self.account)
예제 #3
0
 def at_cmdset_creation(self):
     "Populate the cmdset"
     self.add(account.CmdSessions())