+ self.widget.error = 1
+ reply = _("Regexp Error: ") + str( e ) + "\n" + reply
+ w_reply = b_reply = reply
+ if self.widget.error == 0:
+ # Pass to box parser
+ if self.config[12] != "" and self.config[11]:
+ try:
+ p = Popen(smart_split_string(self.config[12], reply), stdout=PIPE)
+ b_reply = p.communicate()[0].strip()
+ except Exception, e:
+ print _("Couldn't exec banner parser:")+str(e)
+ self.widget.error = 1
+ # Pass to widget parser
+ if self.config[1] != "":
+ try:
+ p = Popen(smart_split_string(self.config[1], reply), stdout=PIPE)
+ w_reply = p.communicate()[0].strip()
+ except Exception, e:
+ print _("Couldn't exec widget parser:")+str(e)
+ self.widget.error = 1
+ # Pass to chain
+ if self.config[2] != "":
+ try:
+ p = Popen(smart_split_string(self.config[2], reply))
+ except Exception, e:
+ print _("Couldn't exec chain:")+str(e)
+ self.widget.error = 1
+ if self.config[11]:
+ banner = hildon.hildon_banner_show_information (self.widget, "", b_reply)
+ banner.set_timeout (5000)
+ b_reply
+ self.widget.set_text(w_reply)