diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2004-03-01 22:19:11 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2004-03-01 22:19:11 +0000 |
commit | 576031311e5f8dd1ec3e49078e62e83221a5b8b7 (patch) | |
tree | 97ee71e6bcf262a0f6afd048a9ae1f7988654383 /src | |
parent | 1e3dd22feface5ffb9534c4215ad8471b55850d8 (diff) | |
download | bcfg2-576031311e5f8dd1ec3e49078e62e83221a5b8b7.tar.gz bcfg2-576031311e5f8dd1ec3e49078e62e83221a5b8b7.tar.bz2 bcfg2-576031311e5f8dd1ec3e49078e62e83221a5b8b7.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/Types.py | 10 |
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) |