Esempio n. 1
0
 def _get_channel_cmdset(player_or_obj):
     """
     Helper-method; Get channel-cmdsets
     """
     # Create cmdset for all player's available channels
     try:
         channel_cmdset = yield CHANNELHANDLER.get_cmdset(player_or_obj)
         returnValue([channel_cmdset])
     except Exception:
         _msg_err(caller, _ERROR_CMDSETS)
         raise ErrorReported(raw_string)
Esempio n. 2
0
 def _get_channel_cmdset(player_or_obj):
     """
     Helper-method; Get channel-cmdsets
     """
     # Create cmdset for all player's available channels
     try:
         channel_cmdset = yield CHANNELHANDLER.get_cmdset(player_or_obj)
         returnValue([channel_cmdset])
     except Exception:
         _msg_err(caller, _ERROR_CMDSETS)
         raise ErrorReported
Esempio n. 3
0
 def _get_channel_cmdsets(player, player_cmdset):
     "Channel-cmdsets"
     # Create cmdset for all player's available channels
     try:
         channel_cmdset = None
         if not player_cmdset.no_channels:
             channel_cmdset = yield CHANNELHANDLER.get_cmdset(player)
         returnValue(channel_cmdset)
     except Exception:
         logger.log_trace()
         _msg_err(caller, _ERROR_CMDSETS)
         raise ErrorReported
Esempio n. 4
0
 def _get_channel_cmdsets(player, player_cmdset):
     "Channel-cmdsets"
     # Create cmdset for all player's available channels
     try:
         channel_cmdset = None
         if not player_cmdset.no_channels:
             channel_cmdset = yield CHANNELHANDLER.get_cmdset(player)
         returnValue(channel_cmdset)
     except Exception:
         logger.log_trace()
         _msg_err(caller, _ERROR_CMDSETS)
         raise ErrorReported
Esempio n. 5
0
 def _get_channel_cmdsets(player, player_cmdset):
     """
     Helper-method; Get channel-cmdsets
     """
     # Create cmdset for all player's available channels
     try:
         channel_cmdset = None
         if not player_cmdset.no_channels:
             channel_cmdset = yield CHANNELHANDLER.get_cmdset(player)
         returnValue(channel_cmdset)
     except Exception:
         _msg_err(caller, _ERROR_CMDSETS)
         raise ErrorReported