[yast-commit] <rest-service> master : added inxed.xml?background parameter
ref: refs/heads/master commit cde0fecee580fc32ed1b08de41b7fee3042ee6b1 Author: Ladislav Slezak <lslezak@novell.com> Date: Wed Nov 11 15:23:40 2009 +0100 added inxed.xml?background parameter for reading patches in background --- .../patches/app/controllers/patches_controller.rb | 7 ++++--- plugins/patches/app/models/background_status.rb | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/patches/app/controllers/patches_controller.rb b/plugins/patches/app/controllers/patches_controller.rb index 6468c0c..b8dad76 100644 --- a/plugins/patches/app/controllers/patches_controller.rb +++ b/plugins/patches/app/controllers/patches_controller.rb @@ -42,9 +42,10 @@ class PatchesController < ApplicationController # GET /patch_updates.xml def index # note: permission check was performed in :before_filter -# ActionController::Base.benchmark("Patches read") do - @patches = Patch.find(:available, {:background => true}) -# end + bgr = params['background'] + Rails.logger.info "Reading patches in background" if bgr + + @patches = Patch.find(:available, {:background => bgr}) respond_to do |format| format.xml { render :xml => @patches.to_xml( :root => "patches", :dasherize => false ) } diff --git a/plugins/patches/app/models/background_status.rb b/plugins/patches/app/models/background_status.rb index 9ee50f0..23966cf 100644 --- a/plugins/patches/app/models/background_status.rb +++ b/plugins/patches/app/models/background_status.rb @@ -1,5 +1,4 @@ -# To change this template, choose Tools | Templates -# and open the template in the editor. +# This class collects progress data of a background process class BackgroundStatus -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
Ladislav Slezak