X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/b55f9ac5e9bd1a7404ded132c1e15a4da5cc8bba..256f20c7c3146b8035a1b03b250a715b64c96d30:/pymin/services/proxy/__init__.py diff --git a/pymin/services/proxy/__init__.py b/pymin/services/proxy/__init__.py index 2740cc8..54ff379 100644 --- a/pymin/services/proxy/__init__.py +++ b/pymin/services/proxy/__init__.py @@ -98,12 +98,14 @@ class UserHandler(Handler): def __init__(self, users): self.users = users - + + @handler('Adds a user') def add(self, user, password): if user in self.users: raise UserAlreadyExistsError(user) self.users[user] = crypt.crypt(password,'BA') - + + @handler('Deletes a user') def delete(self, user): if not user in self.users: raise UserNotFound(user) @@ -156,4 +158,4 @@ if __name__ == '__main__': px.host.delete('192.168.0.25.27') px.user.add('lala','soronga') px.user.add('culo','sarasa') - px.commit() \ No newline at end of file + px.commit()