update default config

- actually define default labels
- document ITEMS
- add pickle to containers
This commit is contained in:
Martin Baeuml
2011-06-07 15:01:01 +02:00
parent beac08ee5d
commit 3a30563b4d
+9 -2
View File
@@ -1,9 +1,15 @@
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',
@@ -15,8 +21,9 @@ INSERTERS = {
}
CONTAINERS = (
('*.json', 'sloth.annotations.container.JSONContainer'),
('*.yaml', 'sloth.annotations.container.YAMLContainer'),
('*.json', 'sloth.annotations.container.JSONContainer'),
('*.yaml', 'sloth.annotations.container.YAMLContainer'),
('*.pickle', 'sloth.annotations.container.PickleContainer'),
)
PLUGINS = (