From 2a90841f910213a12bdccf604fc7e2a24cf03ea6 Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Fri, 10 Jun 2011 16:00:40 +0200 Subject: [PATCH] add config template for command 'createconfig' --- sloth/conf/template/config_template.py | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sloth/conf/template/config_template.py diff --git a/sloth/conf/template/config_template.py b/sloth/conf/template/config_template.py new file mode 100644 index 0000000..2f6253e --- /dev/null +++ b/sloth/conf/template/config_template.py @@ -0,0 +1,36 @@ +# Import defaults. +# You can either overwrite or modify the defaults to your liking. +from sloth.conf.default_config import * + +LABELS = ( + ('Rect', {'type': 'rect'}), + ('Point', {'type': 'point'}), +) + +HOTKEYS = ( +) + +# Defines the mapping from the annotation type to the visualization item. The +# values need to be either python callables, or a module path string that +# points to a python callable. The callable is responsible for creating and +# returning the corresponding visualization item. +ITEMS = { + 'rect': 'sloth.items.RectItem', + 'point': 'sloth.items.PointItem', +} + +INSERTERS = { + 'rect': 'sloth.items.RectItemInserter', + 'point': 'sloth.items.PointItemInserter', +} + +CONTAINERS = ( + ('*.json', 'sloth.annotations.container.JsonContainer'), + ('*.yaml', 'sloth.annotations.container.YamlContainer'), + ('*.pickle', 'sloth.annotations.container.PickleContainer'), + ('*.sloth-init', 'sloth.annotations.container.FileNameListContainer'), +) + +PLUGINS = ( +) +