summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Plugins/GBundler.py39
-rw-r--r--src/lib/Server/Plugins/__init__.py1
2 files changed, 0 insertions, 40 deletions
diff --git a/src/lib/Server/Plugins/GBundler.py b/src/lib/Server/Plugins/GBundler.py
deleted file mode 100644
index a5abe407b..000000000
--- a/src/lib/Server/Plugins/GBundler.py
+++ /dev/null
@@ -1,39 +0,0 @@
-
-import logging, re
-import genshi.template
-import SGenshi
-
-pattern = '(.*/)?(\S+)\.xml(\.((H_(?P<hostname>\S+))|'
-pattern += '(G(?P<prio>\d+)_(?P<group>\S+))))?$'
-
-matcher = re.compile(pattern)
-
-logger = logging.getLogger('GBundler')
-
-class GBundlerEntrySet(SGenshi.SGenshiEntrySet):
- def BuildStructures(self, metadata):
- '''Build SGenshi structures'''
- ret = []
- found = []
- build = []
- matching = self.get_matching(metadata)
- matching.sort(lambda x,y: cmp(x.specific, y.specific))
- for entry in matching[:]:
- rem = matcher.match(entry.name)
- bname = rem.group(2)
- if bname in metadata.bundles and bname not in found:
- found.append(bname)
- build.append(entry)
-
- for entry in build:
- try:
- ret.append(entry.get_xml_value(metadata))
- except genshi.template.TemplateError, terror:
- logger.error('Genshi template error: %s' % terror)
- logger.error("GBundler: Failed to template file %s" % entry.name)
- return ret
-
-class GBundler(GBundlerEntrySet, SGenshi.SGenshi):
- name = 'GBundler'
- __version__ = '$Revision$'
-
diff --git a/src/lib/Server/Plugins/__init__.py b/src/lib/Server/Plugins/__init__.py
index 4b724c3dd..8db59ecc0 100644
--- a/src/lib/Server/Plugins/__init__.py
+++ b/src/lib/Server/Plugins/__init__.py
@@ -9,7 +9,6 @@ __all__ = [
'Cfg',
'Decisions',
'Fossil',
- 'GBundler',
'Git',
'GroupPatterns',
'Hostbase',