# HG changeset patch # User Daniele Nicolodi # Date 1313943447 -7200 # Node ID 9e2ae3d086ce1f765de75535930b540073668edc # Parent 7d03f602cade090586c56371453575777f1a287c Adapt admin module to user handling changes. diff -r 7d03f602cade -r 9e2ae3d086ce src/ltpdarepo/admin.py --- a/src/ltpdarepo/admin.py Sun Aug 21 18:17:26 2011 +0200 +++ b/src/ltpdarepo/admin.py Sun Aug 21 18:17:27 2011 +0200 @@ -94,8 +94,10 @@ user = User.load(username) if user is not None: raise Exception('User already present') - user = User(username, password=password, **kwargs) + user = User(username, **kwargs) user.create() + if password: + user.passwd(password) cmd = commands.add(useradd) cmd.add_argument('username', metavar='USERNAME')