]> git.llucax.com Git - software/pymin.git/blob - services/dns/ns.py
Split proxy handler in submodules (refs #2).
[software/pymin.git] / services / dns / ns.py
1 # vim: set encoding=utf-8 et sw=4 sts=4 :
2
3 # TODO documentation, validation
4
5 from pymin.seqtools import Sequence
6 from pymin.service.util import DictComposedSubHandler
7
8 __all__ = ('NameServerHandler',)
9
10
11 class NameServer(Sequence):
12     def __init__(self, name):
13         self.name = name
14     def as_tuple(self):
15         return (self.name,)
16
17 class NameServerHandler(DictComposedSubHandler):
18     handler_help = u"Manage DNS name servers (NS)"
19     _comp_subhandler_cont = 'zones'
20     _comp_subhandler_attr = 'nss'
21     _comp_subhandler_class = NameServer
22