[yast-commit] <web-client> master : hacks to not lose camelCased variables

ref: refs/heads/master commit 1f08a8318ef32a703d0a21cabc7d15a904038e4d Author: Jiri Suchomel <jsuchome@suse.cz> Date: Fri Jul 17 15:52:10 2009 +0200 hacks to not lose camelCased variables --- plugins/users/app/controllers/users_controller.rb | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/plugins/users/app/controllers/users_controller.rb b/plugins/users/app/controllers/users_controller.rb index afa0002..d719856 100644 --- a/plugins/users/app/controllers/users_controller.rb +++ b/plugins/users/app/controllers/users_controller.rb @@ -56,12 +56,14 @@ class UsersController < ApplicationController :homeDirectory => nil, :cn => nil, :uid => nil, + :uidNumber => nil, :sshkey => nil, :loginShell => "/bin/bash", :userPassword => nil, :type => "local", :id => nil ) + @user.grp_string = "" respond_to do |format| format.html # new.html.erb format.xml { render :xml => @user } @@ -90,6 +92,14 @@ class UsersController < ApplicationController @user.type = "" @user.id = @user.uid @user.grp_string = "" + + # FIXME hack, this must be done properly + # (my keys in camelCase were transformed to under_scored) + @user.uidNumber = @user.uid_number + @user.homeDirectory = @user.home_directory + @user.loginShell = @user.login_shell + @user.userPassword = @user.user_password + counter = 0 @user.grouplist.each do |group| if counter == 0 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
Jiri Suchomel