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 > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 04-01-2011, 10:05 AM
Martin Gracik
 
Default Added reconfig property to module and moduleset

---
firstboot/module.py | 4 ++++
firstboot/moduleset.py | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/firstboot/module.py b/firstboot/module.py
index 6e94b8d..1b7fadc 100644
--- a/firstboot/module.py
+++ b/firstboot/module.py
@@ -184,3 +184,7 @@ class Module:
that need other behavior should override this method.
"""
return True
+
+ @property
+ def reconfig(self):
+ return self.mode == MODE_RECONFIG
diff --git a/firstboot/moduleset.py b/firstboot/moduleset.py
index 32cf009..e356288 100644
--- a/firstboot/moduleset.py
+++ b/firstboot/moduleset.py
@@ -154,3 +154,7 @@ class ModuleSet:
behavior should override this method.
"""
return True
+
+ @property
+ def reconfig(self):
+ return self.mode == MODE_RECONFIG
--
1.7.3.2

_______________________________________________
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 05:38 AM.

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