(self, message_info)
:type message_info: wechat_django.models.WeChatMessageInfo
:type message_info: wechat_django.models.WeChatMessageInfo
: type message_info : wechat_django . models . WeChatMessageInfo
def reply_custom(self, message_info):
        """
        :type message_info: wechat_django.models.WeChatMessageInfo
        """
        try:
            func = import_string(self.content["program"])
        except:
            raise MessageHandleError("custom bussiness not found")
        else:
            appname = message_info.app.name
            message = message_info.message
            if not hasattr(func, "message_handler"):
                e = "handler must be decorated by wechat_django.handler.message_handler"
                raise MessageHandleError(e)
            elif (hasattr(func.message_handler, "__contains__")
                and appname not in func.message_handler):
                e = "this handler cannot assigned to {0}".format(appname)
                raise MessageHandleError(e)
            reply = func(message_info)
            if not reply:
                return ""
            elif isinstance(reply, text_type):
                reply = replies.TextReply(content=reply)
            reply.source = message.target
            reply.target = message.source
            return reply
def reply_custom ( self , message_info ) : try : func = import_string ( self . content [ "program" ] ) except : raise MessageHandleError ( "custom bussiness not found" ) else : appname = message_info . app . name message = message_info . message if not hasattr ( func , "message_handler" ) : e = "handler must be decorated by wechat_django.handler.message_handler" raise MessageHandleError ( e ) elif ( hasattr ( func . message_handler , "__contains__" ) and appname not in func . message_handler ) : e = "this handler cannot assigned to {0}" . format ( appname ) raise MessageHandleError ( e ) reply = func ( message_info ) if not reply : return "" elif isinstance ( reply , text_type ) : reply = replies . TextReply ( content = reply ) reply . source = message . target reply . target = message . source return reply