1 # vim: set encoding=utf-8 et sw=4 sts=4 :
5 from pymin.validation import Item, Field, FullyQualifiedHostName
6 from pymin.service.util import DictComposedSubHandler
8 __all__ = ('NameServerHandler',)
11 class NameServer(Item):
12 name = Field(FullyQualifiedHostName(not_empty=True))
14 class NameServerHandler(DictComposedSubHandler):
15 handler_help = u"Manage DNS name servers (NS)"
16 _comp_subhandler_cont = 'zones'
17 _comp_subhandler_attr = 'nss'
18 _comp_subhandler_class = NameServer