summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Types.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Types.py b/src/Types.py
index af4c4e56b..03159e04d 100644
--- a/src/Types.py
+++ b/src/Types.py
@@ -19,4 +19,14 @@ class ConfigFile(object):
def XMLSerialize(self):
return self.format%(self.name,self.owner,self.group,self.perms,self.encoding,self.xcontent)
+class Service(object):
+ format = '''<Service name='%s' type='%s' status='%s' scope='%s'/>'''
+ def __init__(self,name,stype,status,scope):
+ self.name = name
+ self.type = stype
+ self.status = status
+ self.scope = scope
+
+ def XMLSerialize(self):
+ return self.format%(self.name,self.type,self.status,self.scope)