[kernel] r9372 - people/waldi/dkt/lib/dkt/image
Bastian Blank
waldi at alioth.debian.org
Fri Aug 24 11:20:29 UTC 2007
Author: waldi
Date: Fri Aug 24 11:20:28 2007
New Revision: 9372
Log:
lib/dkt/image: Update.
Modified:
people/waldi/dkt/lib/dkt/image/base.py
people/waldi/dkt/lib/dkt/image/interfaces.py
Modified: people/waldi/dkt/lib/dkt/image/base.py
==============================================================================
--- people/waldi/dkt/lib/dkt/image/base.py (original)
+++ people/waldi/dkt/lib/dkt/image/base.py Fri Aug 24 11:20:28 2007
@@ -16,11 +16,23 @@
self.context = context
@property
+ def architecture(self):
+ return self.context.get('image', 'architecture')
+
+ @property
def type(self):
return self.context.get('image', 'type')
- @property
- def architecture(self):
- return self.context.get('image', 'architecture')
+ @propwery
+ def file(self):
+ return self.context.get('image', 'file')
+
+ @propwery
+ def version(self):
+ return self.context.get('image', 'version')
+
+ @propwery
+ def features(self):
+ return self.context.get('image', 'features').split()
registry.register([config_interfaces.IConfig], interfaces.IImageBaseConfig, '', BaseConfig._factory)
Modified: people/waldi/dkt/lib/dkt/image/interfaces.py
==============================================================================
--- people/waldi/dkt/lib/dkt/image/interfaces.py (original)
+++ people/waldi/dkt/lib/dkt/image/interfaces.py Fri Aug 24 11:20:28 2007
@@ -3,6 +3,9 @@
class IImageBaseConfig(Interface):
type = Attribute("")
architecture = Attribute("")
+ file = Attribute("")
+ version = Attribute("")
+ features = Attribute("")
class IImageLinuxInitramfsConfig(Interface):
pass
More information about the Kernel-svn-changes
mailing list