client/rhel/rhn-client-tools/src/up2date_client/hardware_hal.py | 8 --
client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py | 30 ----------
client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py | 23 -------
client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py | 4 -
4 files changed, 65 deletions(-)
New commits:
commit 5e7f86b0226527cce64a6e749249d5d5b512b4aa
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri May 28 16:48:58 2010 +0200
Method resetServerList not used in our code, removing.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
b/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
index 8ca327a..9aa55b6 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rpcServer.py
@@ -103,10 +103,6 @@ class ServerList:
return None
return self.server()
- def resetServerList(self, serverlist):
- self.serverList = serverlist
- self.index = 0
-
def resetServerIndex(self):
self.index = 0
commit 933762fe6e3269589102d5cbb9f3beb10c95f08d
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri May 28 16:48:34 2010 +0200
When startRhnCheck was replaced by spawnRhnCheckForUI, it became unused, removing.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
index df6193a..fdaa0eb 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
@@ -58,12 +58,6 @@ def startRhnsd():
if rc:
os.system("/sbin/service rhnsd start > /dev/null")
-def startRhnCheck():
- if os.access("/usr/sbin/rhn_check", os.R_OK|os.X_OK):
- os.system("/usr/sbin/rhn_check")
- else:
- print _("Warning: unable to run rhn_check")
-
def getOemInfo():
configFile = cfg["oemInfoFile"] or "/etc/sysconfig/rhn/oeminfo"
commit 681157b4a38719f00cc76e791dff5d54af5399db
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri May 28 16:42:29 2010 +0200
Method getFailedSystemSlots not used in our code, removing.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
index 8152bf2..df6193a 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
@@ -269,9 +269,6 @@ class RegistrationResult:
def getSystemSlotDescriptions(self):
return map(self._getSlotDescription, self._systemSlots)
- def getFailedSystemSlots(self):
- return self._failedSystemSlots
-
def getFailedSystemSlotDescriptions(self):
return map(self._getFailedSlotDescription, self._failedSystemSlots)
commit bbed67d7b8507d793b261d0babbbb80c11d065f0
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri May 28 16:41:37 2010 +0200
get_device_property not used in our code, removing.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/hardware_hal.py
b/client/rhel/rhn-client-tools/src/up2date_client/hardware_hal.py
index 703a24a..73a606c 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/hardware_hal.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/hardware_hal.py
@@ -324,14 +324,6 @@ def get_device_pcitype(node):
return pcitype
-def get_device_property(device, property_name):
- """ Return a hal device property, or None if it does not exist.
"""
- if device.PropertyExists(property_name):
- # Convert from unicode to ascii in case the server can't handle it.
- return str(device.GetProperty(property_name))
- else:
- return None
-
def get_hal_computer():
bus = dbus.SystemBus()
computer_obj = bus.get_object("org.freedesktop.Hal",
commit 1eace720d6856d318f4905d2dc69449e7ed1c1c2
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri May 28 16:40:29 2010 +0200
termsAndConditions not used in our code, removing.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
index 0b36d95..8152bf2 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
@@ -229,11 +229,6 @@ def getCaps():
# figure out if were missing any needed caps
s.capabilities.validate()
-def termsAndConditions():
- s = rhnserver.RhnServer()
-
- return s.registration.terms_and_conditionsi()
-
def reserveUser(username, password):
s = rhnserver.RhnServer()
return s.registration.reserve_user(username, password)
commit 30e7446f8be219655bdc56882dcd611ea796af3b
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri May 28 16:40:00 2010 +0200
sat_supports_virt_guest_registration not used in our code, removing.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
index 8f1d5d9..0b36d95 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
@@ -450,18 +450,6 @@ def updateContactInfo(username, password, productInfo):
def server_supports_eus():
return cfg["supportsEUS"]
-def sat_supports_virt_guest_registration():
- s = rhnserver.RhnServer()
-
- if s.capabilities.has_key('registration.remaining_subscriptions'):
- if
int(s.capabilities['registration.remaining_subscriptions']['version'])
> 1:
- return True
- else:
- return False
- else:
- return False
-
-
def sendHardware(systemId, hardwareList):
s = rhnserver.RhnServer()
s.registration.add_hw_profile(systemId, hardwareList)
commit fbd1a534d4d3309c1eb39f99296343a6d7c18486
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri May 28 16:38:37 2010 +0200
finishMessage not used in our code, removing.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
index eb9df6d..8f1d5d9 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
@@ -224,10 +224,6 @@ def welcomeText():
return s.registration.welcome_message()
-def finishMessage(systemId):
- s = rhnserver.RhnServer()
- return s.registration.finish_message(systemId)
-
def getCaps():
s = rhnserver.RhnServer()
# figure out if were missing any needed caps
commit 20b01cb7a0aa6322f410e5b9ed123d65dcc0e6cb
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri May 28 16:37:30 2010 +0200
When autoActivateNumbersOnce was removed, autoActivatedHardwareInfo was made unused,
removing.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py
b/client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py
index faa0ff9..81cc0a6 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py
@@ -109,17 +109,6 @@ class ReviewLog:
def getTextBuffer(self):
return self._text
- def autoActivatedHardwareInfo(self, activationResult):
- self.addBoldText(_("Automatic Subscription Activation"))
- text = rhnreg_constants.SUB_NUM % activationResult.getRegistrationNumber()
- text = text + ' ' + rhnreg_constants.SUB_NUM_RESULT
- self.addText(text)
- for channel, quantity in activationResult.getChannelsActivated().items():
- self.addBulletedText("%s (%s)" % (channel, quantity))
- for service, quantity in activationResult.getSystemSlotsActivated().items():
- self.addBulletedText("%s (%s)" % (service, quantity))
- self.addText('') # adds newline
-
def usedUniversalActivationKey(self, keyName):
self.addBoldText(_("Notice"))
keys = ', '.join(keyName)
commit b913aab6ee9c1d4055906b247ec338f9b5e89103
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri May 28 16:36:16 2010 +0200
When ActivateSubscriptionPage was removed, activatedRegistrationNumber was made
unused, removing.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py
b/client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py
index 3722ffb..faa0ff9 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rhnregGui.py
@@ -120,18 +120,6 @@ class ReviewLog:
self.addBulletedText("%s (%s)" % (service, quantity))
self.addText('') # adds newline
- def activatedRegistrationNumber(self, registrationNumber,
- activationResult):
- self.addBoldText(_("Subscription Activation"))
- text = rhnreg_constants.SUB_NUM % registrationNumber
- text = text + ' ' + rhnreg_constants.SUB_NUM_RESULT
- self.addText(text)
- for channel, quantity in activationResult.getChannelsActivated().items():
- self.addBulletedText("%s (%s)" % (channel, quantity))
- for service, quantity in activationResult.getSystemSlotsActivated().items():
- self.addBulletedText("%s (%s)" % (service, quantity))
- self.addText('') # adds newline
-
def usedUniversalActivationKey(self, keyName):
self.addBoldText(_("Notice"))
keys = ', '.join(keyName)