FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 06-18-2012, 03:29 PM
David Lehman
 
Default Store template for installed OS description for repeated use.

---
pyanaconda/ui/gui/spokes/custom.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index bf1589c..a313eda 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -109,6 +109,7 @@ class CustomPartitioningSpoke(NormalSpoke):

self._current_selector = None
self._ran_autopart = False
+ self._when_create_text = ""

def apply(self):
pass
@@ -135,6 +136,9 @@ class CustomPartitioningSpoke(NormalSpoke):

NormalSpoke.initialize(self)

+ label = self.builder.get_object("whenCreateLabel")
+ self._when_create_text = label.get_text()
+
self._grabObjects()
setViewportBackground(self.builder.get_object("ava ilableSpaceViewport"), "#db3279")
setViewportBackground(self.builder.get_object("tot alSpaceViewport"), "#60605b")
@@ -252,7 +256,7 @@ class CustomPartitioningSpoke(NormalSpoke):

self._partitionsNotebook.set_current_page(0)
label = self.builder.get_object("whenCreateLabel")
- label.set_text(label.get_text() % (productName, productVersion))
+ label.set_text(self._when_create_text % (productName, productVersion))

# Add in all the existing (or autopart-created) operating systems.
for root in self.storage.roots:
--
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 07:17 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org