1 # vim: set encoding=utf-8 et sw=4 sts=4 :
5 from pymin.seqtools import Sequence
6 from pymin.service.util import DictSubHandler
8 __all__ = ('UserHandler',)
12 def __init__(self, name, password):
14 self.password = crypt.crypt(password,'BA')
16 return (self.name, self.password)
17 def update(self, password=None):
18 if password is not None:
19 self.password = crypt.crypt(password,'BA')
21 class UserHandler(DictSubHandler):
23 handler_help = u"Manage proxy users"
25 _cont_subhandler_attr = 'users'
26 _cont_subhandler_class = User