Logo Search packages:      
Sourcecode: mago version File versions  Download package

def mago::application::pidgin::pidgin::Pidgin::send_message (   self,
  alias,
  msg 
)

It sends a message to a particular buddy.

It raises an exception if the particuar buddy is not online.

@type alias: string
@param alias: The name of the buddy to send the message to
@type msg: string
@param msg: The message to send to the buddy

Definition at line 246 of file pidgin.py.

00246                                       :
        """
        It sends a message to a particular buddy.

        It raises an exception if the particuar buddy is not online.

        @type alias: string
        @param alias: The name of the buddy to send the message to
        @type msg: string
        @param msg: The message to send to the buddy
        """
        if not ldtp.doesrowexist(self.WINDOW, self.TTBL_BUDDIES, alias):
            raise Exception("user %s is not online" % alias)
        ldtp.selectrow(self.WINDOW, self.TTBL_BUDDIES, alias)
        ldtp.generatekeyevent('<return>')

        ldtp.waittillguiexist('frm' + alias.replace(' ', ''))
        
        frame = ooldtp.context('frm' + alias.replace(' ', ''))

        frame.settextvalue('txt1', msg)

        ldtp.generatekeyevent('<return>')

    def get_conversation_log(self, alias):


Generated by  Doxygen 1.6.0   Back to index