Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <rest-service> jr_ntp : change to provide backend for updated service, expect more changes
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Thu, 20 Aug 2009 14:11:34 +0200
  • Message-id: <E1Mpkq2-0004g3-SW@xxxxxxxxxxxxxxxx>
ref: refs/heads/jr_ntp
commit 8f179a7d995d6a5a31565decddb2f24c0d6e3ac8
Author: Josef Reidinger <jreidinger@xxxxxxx>
Date: Thu Aug 20 14:11:34 2009 +0200

change to provide backend for updated service, expect more changes
---
.../app/controllers/basesystem_controller.rb | 2 +-
plugins/basesystem/app/models/basesystem.rb | 10 ++--------
plugins/basesystem/config/basesystemsteps.conf | 3 ++-
3 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/plugins/basesystem/app/controllers/basesystem_controller.rb
b/plugins/basesystem/app/controllers/basesystem_controller.rb
index 2e7ce57..dfee744 100644
--- a/plugins/basesystem/app/controllers/basesystem_controller.rb
+++ b/plugins/basesystem/app/controllers/basesystem_controller.rb
@@ -11,7 +11,7 @@ class BasesystemController < ApplicationController

def update
@basesystem = Basesystem.find
- @basesystem.next_step params[:basesystem][:current]
+ @basesystem.finish
@basesystem.save
render :show
end
diff --git a/plugins/basesystem/app/models/basesystem.rb
b/plugins/basesystem/app/models/basesystem.rb
index 591003a..0daff03 100644
--- a/plugins/basesystem/app/models/basesystem.rb
+++ b/plugins/basesystem/app/models/basesystem.rb
@@ -44,14 +44,8 @@ class Basesystem
return ret
end

- def next_step (current)
-
- index = @steps.index current
- if index == @steps.size() -1
- @current = END_STRING
- else
- @current = @steps[index+1]
- end
+ def finish
+ @current = END_STRING
end

#stores to system Basesystem settings
diff --git a/plugins/basesystem/config/basesystemsteps.conf
b/plugins/basesystem/config/basesystemsteps.conf
index 184f94b..e55c710 100644
--- a/plugins/basesystem/config/basesystemsteps.conf
+++ b/plugins/basesystem/config/basesystemsteps.conf
@@ -1 +1,2 @@
-systemtime
\ No newline at end of file
+systemtime
+language
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages