当前位置: 首页>>代码示例>>Python>>正文


Python Action.__init__方法代码示例

本文整理汇总了Python中action.Action.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Action.__init__方法的具体用法?Python Action.__init__怎么用?Python Action.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在action.Action的用法示例。


在下文中一共展示了Action.__init__方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
 def __init__(self, key, desc, rev_key):
     Action.__init__(self, (key, desc), self, TARGET_MSG_CLASS)
     self.key = key
     self.desc = desc
     self.rev_key = rev_key
     Direction.actions.add(self)
     Direction.ref_map[key] = self
开发者ID:ldevesine,项目名称:Lampost-Mud,代码行数:9,代码来源:movement.py

示例2: __init__

# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
 def __init__(self, cb, logger):
     Action.__init__(self, cb, logger)
     self.stopped = False
     self.bolo = {}
     self.bolo_domains = set()
     self.bolo_searches = []
     self.bolo_lock = threading.Lock()
     threading.Thread.__init__(self)
开发者ID:carbonblack,项目名称:cb-infoblox-connector,代码行数:10,代码来源:api_kill_process.py

示例3: __init__

# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
    def __init__(self,action_id,ports_id,mode=1):
        Action.__init__(self,action_id)
        
#         print "creo setteraction %s" % str(ports_id)
        self.inverted_ports = {}
        if type(ports_id) == dict :
            self.involved_ports_id = ports_id.keys()                
            self.inverted_ports = [ k for k,v in ports_id.items()  if v ]
        else:
            self.involved_ports_id = ports_id
        self.mode = mode
开发者ID:juanchitot,项目名称:domo,代码行数:13,代码来源:setter_action.py

示例4: __init__

# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
    def __init__(self, action_command, bodyfilter=None, auth_sender=None,
                 quoted_firstline_re=None, quoted_actiontoken_re=None):

        Action.__init__(self, action_command, bodyfilter)

        if quoted_firstline_re is None:
            quoted_firstline_re = self.DEFAULT_QUOTED_FIRSTLINE_RE

        if quoted_actiontoken_re is None:
            quoted_actiontoken_re = self.DEFAULT_QUOTED_ACTIONTOKEN_RE

        self.quoted_firstline_re = quoted_firstline_re
        self.quoted_actiontoken_re = quoted_actiontoken_re

        self.auth_sender = auth_sender
开发者ID:lirazsiri,项目名称:mailpipe,代码行数:17,代码来源:reply.py

示例5: __init__

# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
 def __init__(self, verb, color=0x000000):
     Action.__init__(self, verb, None, TARGET_ACTION)
     self.color = color
开发者ID:ldevesine,项目名称:Lampost-Mud,代码行数:5,代码来源:channel.py

示例6: __init__

# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
 def __init__(self, name, parent, function, description='', args=None, kwargs=None):
     Item.__init__(self, parent)
     Action.__init__(self, name, function, description=description, args=args, kwargs=kwargs)
     self.item = parent
开发者ID:adozenlines,项目名称:freevo2,代码行数:6,代码来源:item.py

示例7: __init__

# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
	def __init__(self, status):
		Action.__init__(self)
		self.status = status
开发者ID:jchmb,项目名称:twitter-bots,代码行数:5,代码来源:tweet_action.py

示例8: __init__

# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
 def __init__(self, params_mgr, win, name, description, menuText=None, accelerator=None, iconXPM=None, help=None):
     Action.__init__(self, win, name, description, menuText, accelerator, iconXPM, help=help)
     self._params_mgr = params_mgr
     self._dialog = None
     self._cloned_params = None
     self._help_window = None
开发者ID:apdimier,项目名称:Etumos,代码行数:8,代码来源:params_action.py

示例9: __init__

# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
	def __init__(self, screenName):
		Action.__init__(self)
		self.screenName = screenName
开发者ID:jchmb,项目名称:twitter-bots,代码行数:5,代码来源:user_action.py

示例10: __init__

# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
 def __init__(self):
     Action.__init__(self, EMOTES.keys(), CLASS_BROADCAST, TARGET_GENERAL)
开发者ID:ldevesine,项目名称:Lampost-Mud,代码行数:4,代码来源:emote.py

示例11: __init__

# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
 def __init__(self):
     Action.__init__(self, "zap", CLASS_DAMAGE, TARGET_MONSTER)
     self.imm_level = IMM_LEVELS["creator"]
开发者ID:ldevesine,项目名称:Lampost-Mud,代码行数:5,代码来源:immortal.py

示例12: __init__

# 需要导入模块: from action import Action [as 别名]
# 或者: from action.Action import __init__ [as 别名]
 def __init__(self):
     Action.__init__(self, ("reply", "r"), self, TARGET_ACTION)
开发者ID:ldevesine,项目名称:Lampost-Mud,代码行数:4,代码来源:chat.py


注:本文中的action.Action.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。