Home | Trees | Indices | Help |
|
---|
|
1 # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license 2 3 # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 4 # 5 # Permission to use, copy, modify, and distribute this software and its 6 # documentation for any purpose with or without fee is hereby granted, 7 # provided that the above copyright notice and this permission notice 8 # appear in all copies. 9 # 10 # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 16 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 18 import dns.rdtypes.mxbase 19 2022 23 """AFSDB record 24 25 @ivar subtype: the subtype value 26 @type subtype: int 27 @ivar hostname: the hostname name 28 @type hostname: dns.name.Name object""" 29 30 # Use the property mechanism to make "subtype" an alias for the 31 # "preference" attribute, and "hostname" an alias for the "exchange" 32 # attribute. 33 # 34 # This lets us inherit the UncompressedMX implementation but lets 35 # the caller use appropriate attribute names for the rdata type. 36 # 37 # We probably lose some performance vs. a cut-and-paste 38 # implementation, but this way we don't copy code, and that's 39 # good. 405642 return self.preference43 46 47 subtype = property(get_subtype, set_subtype) 4850 return self.exchange51 54 55 hostname = property(get_hostname, set_hostname)
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Dec 8 10:59:57 2018 | http://epydoc.sourceforge.net |