Hello community,

here is the log from the commit of package webyast-time-ws for openSUSE:Factory
checked in at Wed May 4 10:38:13 CEST 2011.



--------
--- webyast-time-ws/webyast-time-ws.changes     2010-08-23 16:42:57.000000000 
+0200
+++ /mounts/work_src_done/STABLE/webyast-time-ws/webyast-time-ws.changes        
2011-04-12 15:35:40.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Apr 12 13:35:10 UTC 2011 - [email protected]
+
+- new caching
+- 0.2.1 
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ webyast-time-ws.spec ++++++
--- /var/tmp/diff_new_pack.LWvtMY/_old  2011-05-04 10:37:57.000000000 +0200
+++ /var/tmp/diff_new_pack.LWvtMY/_new  2011-05-04 10:37:57.000000000 +0200
@@ -26,7 +26,7 @@
 Group:          Productivity/Networking/Web/Utilities
 Url:            http://en.opensuse.org/Portal:WebYaST
 AutoReqProv:    on
-Version:        0.2.0
+Version:        0.2.1
 Release:        1
 Summary:        WebYaST - time management
 Source:         www.tar.bz2

++++++ www.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/www/app/controllers/systemtime_controller.rb 
new/www/app/controllers/systemtime_controller.rb
--- old/www/app/controllers/systemtime_controller.rb    2010-07-15 
10:31:45.000000000 +0200
+++ new/www/app/controllers/systemtime_controller.rb    2011-02-01 
10:49:25.000000000 +0100
@@ -19,7 +19,7 @@
 # you may find current contact information at www.novell.com
 #++
 
-require 'systemtime'
+require 'systemtime' # RORSCAN_ITL
 
 # = Systemtime controller
 # Provides access to time settings for authentificated users.
@@ -39,12 +39,12 @@
     yapi_perm_check "time.write"
     root = params[:systemtime]
     if root == nil
-      logger.error "Response doesn't contain systemtime key"
+      logger.error "Response doesn't contain systemtime key" # RORSCAN_ITL
       raise InvalidParameters.new :timezone => "Missing"
     end
     
-    systemtime = Systemtime.new(root)    
-    systemtime.save
+    systemtime = Systemtime.new(root) # RORSCAN_ITL    
+    systemtime.save # RORSCAN_ITL
     show
   end
 
@@ -56,11 +56,11 @@
   # Shows time settings. Requires read permission for time YaPI.
   def show
     yapi_perm_check "time.read"
-    systemtime = Systemtime.find
+    systemtime = Systemtime.find # RORSCAN_ITL
 
     respond_to do |format|
-      format.xml { render  :xml => systemtime.to_xml( :dasherize => false ) }
-      format.json { render :json => systemtime.to_json( :dasherize => false ) }
+      format.xml { render  :xml => systemtime.to_xml( :dasherize => false ) } 
# RORSCAN_ITL
+      format.json { render :json => systemtime.to_json( :dasherize => false ) 
} # RORSCAN_ITL
     end
 
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/www/app/models/systemtime.rb 
new/www/app/models/systemtime.rb
--- old/www/app/models/systemtime.rb    2010-07-15 10:31:45.000000000 +0200
+++ new/www/app/models/systemtime.rb    2011-04-11 12:49:05.000000000 +0200
@@ -23,6 +23,11 @@
 # Provides set and gets resources from YaPI time module.
 # Main goal is handle YaPI specific calls and data formats. Provides cleaned
 # and well defined data.
+
+# CACHING makes currently no sense cause the current time has to be 
+# evaluate everytime which will be also made by YaST:YAPI 
+# (It is not so easy as it sounds :-))
+
 class Systemtime < BaseModel::Base
 
   # Date settings format is dd/mm/yyyy


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to