Exemplo n.º 1
0
    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
    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
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 def __init__(self):
     """ """
     Object.__init__(self)
     self.mustUnderstand = True
     self.tokens = []
     self.signatures = []
     self.references = []
     self.keys = []
Exemplo n.º 6
0
 def __init__(self):
     """ """
     Object.__init__(self)
     self.mustUnderstand = True
     self.tokens = []
     self.signatures = []
     self.references = []
     self.keys = []
Exemplo n.º 7
0
 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
Exemplo n.º 8
0
 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
Exemplo n.º 9
0
 def __init__(self, options):
     Object.__init__(self)
     self.cert = options.cert
     self.encrypted_parts = options.encryptedparts
     self.second_pass_encrypted_parts = options.secondpassencryptedparts
     self.blockEncryption = options.blockencryption
     self.keyTransport = options.keytransport
     self.keyReference = options.keyreference
     self.includeRefList = options.includereflist
     self.symmetricKey = buildSymmetricKey(self.blockEncryption)
     self.buildEncryptedKey()
Exemplo n.º 10
0
 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
Exemplo n.º 11
0
 def __init__(self, options):
     Object.__init__(self)
     self.cert = options.cert
     self.encrypted_parts = options.encryptedparts
     self.second_pass_encrypted_parts = options.secondpassencryptedparts
     self.blockEncryption = options.blockencryption
     self.keyTransport = options.keytransport
     self.keyReference = options.keyreference
     self.includeRefList = options.includereflist
     self.symmetricKey = buildSymmetricKey(self.blockEncryption)
     self.buildEncryptedKey()
Exemplo n.º 12
0
 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)
Exemplo n.º 13
0
 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))
Exemplo n.º 14
0
 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)
Exemplo n.º 15
0
 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
Exemplo n.º 16
0
 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
Exemplo n.º 17
0
 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 = []
Exemplo n.º 18
0
 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
Exemplo n.º 19
0
 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
Exemplo n.º 20
0
 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
Exemplo n.º 21
0
    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
Exemplo n.º 22
0
 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
Exemplo n.º 23
0
 def __init__(self):
         Object.__init__(self)
Exemplo n.º 24
0
 def __init__(self, method):
     Object.__init__(self)
     self.method = method
Exemplo n.º 25
0
 def __init__(self):
     Object.__init__(self)
Exemplo n.º 26
0
 def __init__(self, ids):
     Object.__init__(self)
     self.EntityId = ids
Exemplo n.º 27
0
 def __init__(self, node):
     Object.__init__(self)
     self.node = node
     self.data = None
     self.type = None
     self.text = None
Exemplo n.º 28
0
 def __init__(self, node):
     Object.__init__(self)
     self.node = node
     self.data = None
     self.type = None
     self.text = None
Exemplo n.º 29
0
 def __init__(self, method):
     Object.__init__(self)
     self.method = method
Exemplo n.º 30
0
 def __init__(self, action):
     Object.__init__(self)
     self.action = action
Exemplo n.º 31
0
 def __init__(self, location):
     Object.__init__(self)
     self.location = location