From 576031311e5f8dd1ec3e49078e62e83221a5b8b7 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 1 Mar 2004 22:19:11 +0000 Subject: add Service type (Logical change 1.18) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@66 ce84e21b-d406-0410-9b95-82705330c041 --- src/Types.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Types.py') 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 = '''''' + 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) -- cgit v1.2.3-1-g7c22