commit webyast-network-ws for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community,
here is the log from the commit of package webyast-network-ws for openSUSE:Factory
checked in at Wed May 4 11:01:55 CEST 2011.
--------
--- webyast-network-ws/webyast-network-ws.changes 2011-02-09 09:18:49.000000000 +0100
+++ /mounts/work_src_done/STABLE/webyast-network-ws/webyast-network-ws.changes 2011-05-02 14:36:15.000000000 +0200
@@ -1,0 +2,19 @@
+Mon May 2 12:34:35 UTC 2011 - schubi@novell.com
+
+- adapt caching to the new job handling
+- 0.2.4
+
+-------------------------------------------------------------------
+Tue Apr 12 13:18:01 UTC 2011 - schubi@novell.com
+
+- new caching
+- 0.2.3
+
+-------------------------------------------------------------------
+Mon Mar 28 13:49:35 UTC 2011 - vlewin@novell.com
+
+- undefined method `bootproto' for #Interface:0xb67416c8 (bnc#645231)
+- setting DHCP mode doesn't work for interface eth1
+- 0.2.2
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ webyast-network-ws.spec ++++++
--- /var/tmp/diff_new_pack.ulFCMD/_old 2011-05-04 11:01:31.000000000 +0200
+++ /var/tmp/diff_new_pack.ulFCMD/_new 2011-05-04 11:01:31.000000000 +0200
@@ -28,7 +28,7 @@
Group: Productivity/Networking/Web/Utilities
Url: http://en.opensuse.org/Portal:WebYaST
AutoReqProv: on
-Version: 0.2.1
+Version: 0.2.4
Release: 1
Summary: WebYaST - Network service
Source: www.tar.bz2
++++++ www.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/www/app/controllers/network/dns_controller.rb new/www/app/controllers/network/dns_controller.rb
--- old/www/app/controllers/network/dns_controller.rb 2010-08-27 14:58:55.000000000 +0200
+++ new/www/app/controllers/network/dns_controller.rb 2011-04-11 12:49:05.000000000 +0200
@@ -37,7 +37,7 @@
root["searches"] = (root["searches"] || "").split
root["nameservers"] = (root["nameservers"] || "").split
- @dns = DNS.new(root)
+ @dns = Dns.new(root)
@dns.save!
show
end
@@ -49,7 +49,7 @@
# Shows hostname settings. Requires read permission for network YaPI.
def show
- @dns = DNS.find
+ @dns = Dns.find
respond_to do |format|
format.xml { render :xml => @dns.to_xml( :root => "dns", :dasherize => false ) }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/www/app/models/dns.rb new/www/app/models/dns.rb
--- old/www/app/models/dns.rb 2011-02-01 10:49:11.000000000 +0100
+++ new/www/app/models/dns.rb 2011-04-29 18:23:25.000000000 +0200
@@ -18,11 +18,12 @@
# To contact Novell about this file by physical or electronic mail,
# you may find current contact information at www.novell.com
#++
-# = DNS model
+# = Dns model
# Provides set and gets resources from YaPI network module.
# Main goal is handle YaPI specific calls and data formats. Provides cleaned
# and well defined data.
-class DNS < BaseModel::Base
+
+class Dns < BaseModel::Base
# the short hostname
attr_accessor :searches
@@ -54,9 +55,11 @@
# fills time instance with data from YaPI.
#
# +warn+: Doesn't take any parameters.
- def DNS.find
- response = YastService.Call("YaPI::NETWORK::Read") # hostname: true
- ret = DNS.new response["dns"]
+ def Dns.find
+ YastCache.fetch(self) {
+ response = YastService.Call("YaPI::NETWORK::Read") # hostname: true
+ ret = Dns.new response["dns"]
+ }
end
# Saves data from model to system via YaPI. Saves only setted data,
@@ -69,6 +72,7 @@
vsettings = [ "a{sas}", settings ] # bnc#538050
YastService.Call("YaPI::NETWORK::Write",{"dns" => vsettings})
# TODO success or not?
+ YastCache.reset(self)
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/www/app/models/hostname.rb new/www/app/models/hostname.rb
--- old/www/app/models/hostname.rb 2011-02-01 10:49:11.000000000 +0100
+++ new/www/app/models/hostname.rb 2011-04-29 18:23:25.000000000 +0200
@@ -22,6 +22,7 @@
# Provides set and gets resources from YaPI network module.
# Main goal is handle YaPI specific calls and data formats. Provides cleaned
# and well defined data.
+
class Hostname < BaseModel::Base
# the short hostname
@@ -36,8 +37,10 @@
#
# +warn+: Doesn't take any parameters.
def self.find
- response = YastService.Call("YaPI::NETWORK::Read") # hostname: true
- Hostname.new response["hostname"]
+ YastCache.fetch(self) {
+ response = YastService.Call("YaPI::NETWORK::Read") # hostname: true
+ Hostname.new response["hostname"]
+ }
end
# Saves data from model to system via YaPI. Saves only setted data,
@@ -52,6 +55,7 @@
vsettings = [ "a{ss}", settings ] # bnc#538050
YastService.Call("YaPI::NETWORK::Write",{"hostname" => vsettings})
# TODO success or not?
+ YastCache.reset(self)
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/www/app/models/interface.rb new/www/app/models/interface.rb
--- old/www/app/models/interface.rb 2011-02-01 10:49:11.000000000 +0100
+++ new/www/app/models/interface.rb 2011-05-02 11:48:18.000000000 +0200
@@ -22,6 +22,7 @@
# Provides set and gets resources from YaPI network module.
# Main goal is handle YaPI specific calls and data formats. Provides cleaned
# and well defined data.
+
class Interface < BaseModel::Base
IPADDR_REGEX = /([0-9]{1,3}.){3}[0-9]{1,3}/
@@ -40,24 +41,27 @@
def initialize(args, id=nil)
super args
@id ||= id
- @ipaddr ||= ""
+ #@ipaddr ||= "" causes exception if bootproto=dhcp: "Raised resource Invalid exception - #
participants (1)
-
root@hilbert.suse.de