(self, message_info)
return False
:type message_info: wechat_django.models.WeChatMessageInfo
:type message_info: wechat_django.models.WeChatMessageInfo
: type message_info : wechat_django . models . WeChatMessageInfo
def _custom_match(self, message_info):
        """
        :type message_info: wechat_django.models.WeChatMessageInfo
        """
        try:
            func = import_string(self.content["program"])
        except ImportError:
            pass
        else:
            appname = message_info.app.name
            if not hasattr(func, "message_rule"):
                return False
            elif (hasattr(func.message_rule, "__contains__")
                  and appname not in func.message_rule):
                return False
            try:
                return func(message_info)
            except:
                pass
        return False
def _custom_match ( self , message_info ) : try : func = import_string ( self . content [ "program" ] ) except ImportError : pass else : appname = message_info . app . name if not hasattr ( func , "message_rule" ) : return False elif ( hasattr ( func . message_rule , "__contains__" ) and appname not in func . message_rule ) : return False try : return func ( message_info ) except : pass return False