Mailinglist Archive: yast-devel (152 mails)

< Previous Next >
[yast-devel] Re: [yast-commit] <web-client> master : systemtime: test for commit
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Mon, 13 Jul 2009 09:06:12 +0200
  • Message-id: <4A5ADCE4.5010901@xxxxxxx>
mzugec wrote:
ref: refs/heads/master
commit d84d7b800e722ce8409bbd534c3065aa0ec30c05
Author: mzugec <mzugec@xxxxxxxxxx>
Date: Fri Jul 10 16:57:02 2009 +0200

systemtime: test for commit
---
.../app/controllers/system_time_controller.rb | 2 +-
.../test/functional/systemtime_controller_test.rb | 13 +++++++++++++
2 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/plugins/systemtime/app/controllers/system_time_controller.rb
b/plugins/systemtime/app/controllers/system_time_controller.rb
index 563dfbc..8320bc8 100644
--- a/plugins/systemtime/app/controllers/system_time_controller.rb
+++ b/plugins/systemtime/app/controllers/system_time_controller.rb
@@ -52,13 +52,13 @@ class SystemTimeController < ApplicationController
def commit_time
proxy =
YaST::ServiceResource.proxy_for('org.opensuse.yast.modules.yapi.time')
@permissions = proxy.permissions
-
begin
t = proxy.find
rescue ActiveResource::ClientError => e
flash[:error] = YaST::ServiceResource.error(e)
redirect_to :action => :index
end
+debugger

arr = params[:date][:date].split("/")
t.time = "#{arr[2]}-#{arr[0]}-#{arr[1]} - "+params[:currenttime]
<snip />

Please don't add debugger to code and don't submit it. At first it cause
problem it is not nice and second it can cause serious problem if we set
test server as debugger need interact.
--
Josef Reidinger
YaST team
maintainer of perl-Bootloader, YaST2-Repair, webyast modules language
and time
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages