diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2004-06-30 15:03:30 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2004-06-30 15:03:30 +0000 |
commit | 308717b0fa5ce5971e0aea3c00c6d699fc5f6c6f (patch) | |
tree | 81b0020fabfeccf8bdc3e62d0dc8581647d30ea1 /src/Core.py | |
parent | 016ae450dc3ec09ba716f4d15ca11d77f305543c (diff) | |
download | bcfg2-308717b0fa5ce5971e0aea3c00c6d699fc5f6c6f.tar.gz bcfg2-308717b0fa5ce5971e0aea3c00c6d699fc5f6c6f.tar.bz2 bcfg2-308717b0fa5ce5971e0aea3c00c6d699fc5f6c6f.zip |
add support for structures
(Logical change 1.22)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@100 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/Core.py')
-rw-r--r-- | src/Core.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Core.py b/src/Core.py index b230b6a4e..637e3e5d3 100644 --- a/src/Core.py +++ b/src/Core.py @@ -50,10 +50,14 @@ class PublishedValue(object): self.value=value class Core(object): - def __init__(self, repository, generators): + def __init__(self, repository, structures, generators): self.datastore = repository self.fam = fam() self.pubspace = {} + self.structures = [] + for structure in structures: + s = getattr(__import__(structure),structure) + self.structures.append(s(self, self.datastore)) self.generators = [] for generator in generators: g = getattr(__import__(generator),generator) |