ref: refs/heads/master
commit 961e2a6072a99b0baab9f8d483ffe73944d59630
Author: Michal Zugec
Date: Sun Aug 30 12:45:27 2009 +0200
commented unused code
---
.../network/app/controllers/network_controller.rb | 44 +++++++++++---------
1 files changed, 24 insertions(+), 20 deletions(-)
diff --git a/plugins/network/app/controllers/network_controller.rb b/plugins/network/app/controllers/network_controller.rb
index a9fff36..129aced 100644
--- a/plugins/network/app/controllers/network_controller.rb
+++ b/plugins/network/app/controllers/network_controller.rb
@@ -29,6 +29,9 @@ class NetworkController < ApplicationController
hn = load_proxy "org.opensuse.yast.modules.yapi.network.hostname"
return false unless hn
+# rt = load_proxy "org.opensuse.yast.modules.yapi.network.routes"
+# return false unless rt
+
unless @permissions[:read]
flash[:warning] = _("No permissions for hostname module")
redirect_to root_path
@@ -37,32 +40,33 @@ class NetworkController < ApplicationController
@name = hn.name
@domain = hn.domain
+# @default_route = rt.default
end
# GET /users/new
# GET /users/new.xml
def new
return unless network_permissions
- @user = @client.new( :id => :nil,
- :no_home=>nil,
- :default_group=>nil,
- :new_login_name=>nil,
- :login_name=>nil,
- :groups=>[],
- :grp_string=>nil,
- :home_directory=>nil,
- :full_name=>nil,
- :uid=>nil,
- :sshkey=>nil,
- :new_uid=>nil,
- :login_shell=>"/bin/bash",
- :password=>nil,
- :type=>"local",
- :id=>nil )
- respond_to do |format|
- format.html # new.html.erb
- format.xml { render :xml => @user }
- end
+# @user = @client.new( :id => :nil,
+# :no_home=>nil,
+# :default_group=>nil,
+# :new_login_name=>nil,
+# :login_name=>nil,
+# :groups=>[],
+# :grp_string=>nil,
+# :home_directory=>nil,
+# :full_name=>nil,
+# :uid=>nil,
+# :sshkey=>nil,
+# :new_uid=>nil,
+# :login_shell=>"/bin/bash",
+# :password=>nil,
+# :type=>"local",
+# :id=>nil )
+# respond_to do |format|
+# format.html # new.html.erb
+# format.xml { render :xml => @user }
+# end
end
# GET /users/1/edit
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org