]> git.llucax.com Git - software/pymin.git/blob - services/dns/ns.py
Add GPL v3 license to the project
[software/pymin.git] / services / dns / ns.py
1 # vim: set encoding=utf-8 et sw=4 sts=4 :
2
3 # TODO documentation
4
5 from pymin.validation import Item, Field, FullyQualifiedHostName
6 from pymin.service.util import DictComposedSubHandler
7
8 __all__ = ('NameServerHandler',)
9
10
11 class NameServer(Item):
12     name = Field(FullyQualifiedHostName(not_empty=True))
13
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
19