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


Python Resource.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from resource import Resource [as 别名]
# 或者: from resource.Resource import __init__ [as 别名]
 def __init__(self, manager, id):
     Resource.__init__(self, manager, id)
     self.data = None
     self.size = None
     self.hash = None
     self.controllers = []
     self.remaining_controllers = None
     logging.debug("New buffer: %s", self)
开发者ID:spirali,项目名称:aislinn,代码行数:10,代码来源:controller.py

示例2: __init__

# 需要导入模块: from resource import Resource [as 别名]
# 或者: from resource.Resource import __init__ [as 别名]
 def __init__(self,router,server):
     Resource.__init__(self)
     self._responseMaker = server.response
     self._converter = server.converter
     self._router = router
开发者ID:legibe,项目名称:platin,代码行数:7,代码来源:service.py

示例3: __init__

# 需要导入模块: from resource import Resource [as 别名]
# 或者: from resource.Resource import __init__ [as 别名]
	def __init__(self, name, resFile):
		Resource.__init__(self, name, resFile)

		self.sound = None
开发者ID:damie3,项目名称:96pxgames,代码行数:6,代码来源:sound.py

示例4: __init__

# 需要导入模块: from resource import Resource [as 别名]
# 或者: from resource.Resource import __init__ [as 别名]
 def __init__(self, template=None):
     Resource.__init__(self, template)
开发者ID:TrendMicroDCS,项目名称:omelet,代码行数:4,代码来源:ec2_resource.py

示例5: __init__

# 需要导入模块: from resource import Resource [as 别名]
# 或者: from resource.Resource import __init__ [as 别名]
 def __init__(self, xmlfile):
     Resource.__init__(self, "pool", "pool")
     self.__registChildren(xmlfile)
     self.__createMap(xmlfile)
开发者ID:harrytan007,项目名称:TestStation,代码行数:6,代码来源:pool.py

示例6: __init__

# 需要导入模块: from resource import Resource [as 别名]
# 或者: from resource.Resource import __init__ [as 别名]
    def __init__(self, client, attrs):
        Resource.__init__(self, client, attrs)

        if hasattr(self, 'stack'):
            self.stack = AttributeGetter(self.stack)
开发者ID:CognitiveScale,项目名称:industry-models,代码行数:7,代码来源:project.py


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