Hello community,

here is the log from the commit of package webyast-ldap-ws for openSUSE:Factory
checked in at Wed May 4 11:14:09 CEST 2011.



--------
--- webyast-ldap-ws/webyast-ldap-ws.changes     2011-02-09 10:51:15.000000000 
+0100
+++ /mounts/work_src_done/STABLE/webyast-ldap-ws/webyast-ldap-ws.changes        
2011-05-02 14:26:34.000000000 +0200
@@ -1,0 +2,12 @@
+Mon May  2 12:25:37 UTC 2011 - [email protected]
+
+- adapt caching to the new job handling
+- 0.2.7 
+
+-------------------------------------------------------------------
+Tue Apr 12 13:14:55 UTC 2011 - [email protected]
+
+- new caching
+- 0.2.6 
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


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

Other differences:
------------------
++++++ webyast-ldap-ws.spec ++++++
--- /var/tmp/diff_new_pack.z13mzS/_old  2011-05-04 11:13:34.000000000 +0200
+++ /var/tmp/diff_new_pack.z13mzS/_new  2011-05-04 11:13:34.000000000 +0200
@@ -24,7 +24,7 @@
 Group:          Productivity/Networking/Web/Utilities
 Url:            http://en.opensuse.org/Portal:WebYaST
 AutoReqProv:    on
-Version:        0.2.5
+Version:        0.2.7
 Release:        1
 Summary:        WebYaST - service for configuration of LDAP client
 Source:         www.tar.bz2


++++++ www.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/www/app/models/ldap.rb new/www/app/models/ldap.rb
--- old/www/app/models/ldap.rb  2011-02-01 10:49:25.000000000 +0100
+++ new/www/app/models/ldap.rb  2011-04-29 18:23:25.000000000 +0200
@@ -32,16 +32,18 @@
 
 public
   def self.find
-    ret = YastService.Call("YaPI::LDAP::Read")
-    Rails.logger.info "Read LDAP config: #{ret.inspect}"
-    ldap       = Ldap.new({
+    YastCache.fetch(self) {
+      ret = YastService.Call("YaPI::LDAP::Read")
+      Rails.logger.info "Read LDAP config: #{ret.inspect}"
+      ldap     = Ldap.new({
        :server         => ret["ldap_server"],
        :base_dn        => ret["ldap_domain"],
        :tls            => ret["ldap_tls"] == "1",
        :enabled        => ret["start_ldap"] == "1"
-    })
-    ldap       = {} if ldap.nil?
-    return ldap
+      })
+      ldap     = {} if ldap.nil?
+      ldap
+    }
   end
 
   def save
@@ -53,6 +55,7 @@
     }
     yapi_ret = YastService.Call("YaPI::LDAP::Write", params)
     Rails.logger.debug "YaPI returns: '#{yapi_ret}'"
+    YastCache.reset(self)
     return true
   end
 


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



Remember to have fun...

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

Reply via email to