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

def webboardlib::webboard::WebBoard::send (   self,
  post,
  language,
  lock,
  args 
)
Call the function to send to pastebin, release the lock afterwards

Definition at line 332 of file webboard.py.

                                               :
        """
        Call the function to send to pastebin, release the lock afterwards
        """
        self.ret = False
        pastebin = self.config.pastebin
        user = self.config.user

        try:
            self.ret = util.send(post, language, pastebin, user)
            if self.ret:
                self.url = "%s/%s" % (self.config.pastebin, self.ret)
                if not (self.url.startswith("http://") or
                        self.url.startswith("https://")):
                    self.url = "http://" + self.url
        finally:
            lock.release()

Generated by  Doxygen 1.6.0   Back to index