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


Python Object.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self, node, **kwargs):
     Object.__init__(self)
     self.node = node
     self.data = None
     self.text = None
     for k,v in kwargs.items():
         setattr(self, k, v)
开发者ID:dkentw,项目名称:pi-tester,代码行数:9,代码来源:__init__.py

示例2: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
    def __init__(self, name, expire, record_type, content):
        """
        Constructs a new DnsEntry of the form
        www  IN  86400   A       127.0.0.1
        mail IN  86400   CNAME   @

        Note that the IN class is always mandatory for this Entry and this is implied.

        :param name: the name of this DnsEntry, e.g. www, mail or @
        :param expire: the expiration period of the dns entry, in seconds. For example 86400 for a day
        :param record_type: the type of this entry, one of the TYPE_ constants in this class
        :param content: content of of the dns entry, for example '10 mail', '127.0.0.1' or 'www'
        :type name: basestring
        :type expire: int
        :type record_type: basestring
        :type content: basestring
        """

        # Call the parent __init__
        SudsObject.__init__(self)

        # Assign the fields
        self.name = name
        self.expire = expire
        self.type = record_type
        self.content = content
开发者ID:prutseltje,项目名称:ansible_transip_dns_api,代码行数:28,代码来源:transip_dns.py

示例3: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self):
     """ """
     Object.__init__(self)
     self.mustUnderstand = True
     self.tokens = []
     self.signatures = []
     self.references = []
     self.keys = []
开发者ID:BhallaLab,项目名称:moose-gui,代码行数:10,代码来源:wsse.py

示例4: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self, options, sym_key=None):
     Object.__init__(self)
     self.key = options.key
     self.x509_issuer_serial = options.cert
     self.signed_parts = options.signedparts
     self.digest = options.digest
     self.keyReference = options.keyreference
     self.signatureAlgorithm = options.signaturealgorithm
     self.symmetricKey = sym_key
开发者ID:evandeaubl,项目名称:suds,代码行数:11,代码来源:__init__.py

示例5: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self, root):
     """
     @param root: An XML root element.
     @type root: L{Element}
     """
     Object.__init__(self)
     self.root = root
     pmd = Metadata()
     pmd.excludes = ['root']
     pmd.wrappers = dict(qname=repr)
     self.__metadata__.__print__ = pmd
开发者ID:azakuanov,项目名称:python_training_mantis,代码行数:13,代码来源:wsdl.py

示例6: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self, ref=None):
     """
     @param ref: The schema reference being queried.
     @type ref: qref
     """
     Object.__init__(self)
     self.id = objid(self)
     self.ref = ref
     self.history = []
     self.resolved = False
     if not isqref(self.ref):
         raise Exception('%s, must be qref' % tostr(self.ref))
开发者ID:chatoooo,项目名称:suds-ng,代码行数:14,代码来源:query.py

示例7: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self, tag=None, value=None, **kwargs):
     """
     @param tag: The content tag.
     @type tag: str
     @param value: The content's value.
     @type value: I{any}
     """
     Object.__init__(self)
     self.tag = tag
     self.value = value
     for k,v in list(kwargs.items()):
         setattr(self, k, v)
开发者ID:dilawar,项目名称:moose-gui,代码行数:14,代码来源:__init__.py

示例8: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self, tag=None, value=None, type=None):
     """
     @param tag: The content tag.
     @type tag: str
     @param value: The content's value.
     @type value: I{any}
     @param type: The (optional) content schema type.
     @type type: L{xsd.sxbase.SchemaObject}
     """
     Object.__init__(self)
     self.tag = tag
     self.value = value
     self.type = type
开发者ID:bigbang4u2,项目名称:mywork,代码行数:15,代码来源:__init__.py

示例9: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self, root, definitions=None):
     """
     @param root: An XML root element.
     @type root: L{Element}
     @param definitions: A definitions object.
     @type definitions: L{Definitions}
     """
     Object.__init__(self)
     self.root = root
     pmd = SFactory.metadata()
     pmd.excludes = ['root']
     pmd.wrappers = dict(qname=lambda x: repr(x))
     self.__metadata__.__print__ = pmd
开发者ID:bigbang4u2,项目名称:mywork,代码行数:15,代码来源:wsdl.py

示例10: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self, timestamp=False):
     """
     Create a new WS-Security object.
     @param timestamp: Whether or not to create a Security Timestamp
     @type timestamp: bool
     """
     Object.__init__(self)
     self.mustUnderstand = True
     self.timestamp = timestamp
     self.tokens = []
     self.signatures = []
     self.references = []
     self.keys = []
开发者ID:tic-ull,项目名称:defensatfc-proto,代码行数:15,代码来源:wsse.py

示例11: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self, root, definitions=None):
     """
     @param root: An XML root element.
     @type root: L{Element}
     @param definitions: A definitions object.
     @type definitions: L{Definitions}
     """
     Object.__init__(self)
     self.root = root
     pmd = Metadata()
     pmd.excludes = ["root"]
     pmd.wrappers = dict(qname=repr)
     self.__metadata__.__print__ = pmd
开发者ID:evandeaubl,项目名称:suds,代码行数:15,代码来源:wsdl.py

示例12: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
    def __init__(self):
        Object.__init__(self)
        self.wsseEnabled = False
        self.includeTimestamp = False
        self.addressing = False
        self.headerLayout = None
        self.protectTokens = False
        self.onlySignEntireHeadersAndBody = False
        self.clientCertRequired = False
        self.blockEncryption = None
        self.digestAlgorithm = None
        self.keyTransport = None
        self.usernameRequired = False
        self.signatureRequired = False
        self.encryptionRequired = False
        self.encryptThenSign = False
        self.signedParts = []
        self.tokens = []
        self.signatures = []
        self.keys = []
	self.wsse11 = None
开发者ID:analytehealth,项目名称:suds,代码行数:23,代码来源:wspolicy.py

示例13: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self, action):
     Object.__init__(self)
     self.action = action
开发者ID:OnroerendErfgoed,项目名称:crabpy,代码行数:5,代码来源:wsa.py

示例14: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self, node):
     Object.__init__(self)
     self.node = node
     self.data = None
     self.type = None
     self.text = None
开发者ID:tic-ull,项目名称:defensatfc-proto,代码行数:8,代码来源:unmarshaller.py

示例15: __init__

# 需要导入模块: from suds.sudsobject import Object [as 别名]
# 或者: from suds.sudsobject.Object import __init__ [as 别名]
 def __init__(self, ids):
     Object.__init__(self)
     self.EntityId = ids
开发者ID:AppsFuel,项目名称:python-resuds,代码行数:5,代码来源:factory.py


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