summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamie Lentin <jm@lentin.co.uk>2013-06-28 14:58:20 (GMT)
committerJamie Lentin <jm@lentin.co.uk>2013-06-28 15:03:03 (GMT)
commitce0522fe9127612898abf2d9a9c066fcd66d8863 (patch)
tree7e5995363d72ecf242a31a6354d3508a94d4aa74
parentf6d79e8b94abc5baac2f46e4b92d2f2b9716d9ad (diff)
downloadplone.formwidget.contenttree-ce0522fe9127612898abf2d9a9c066fcd66d8863.zip
plone.formwidget.contenttree-ce0522fe9127612898abf2d9a9c066fcd66d8863.tar.gz
plone.formwidget.contenttree-ce0522fe9127612898abf2d9a9c066fcd66d8863.tar.bz2
Some binder instances for use with plone.supermodel schemas
See https://github.com/plone/plone.app.relationfield/pull/1 for when they are useful. I'm guessing this is where they were supposed to be moved, but it never happened.
-rw-r--r--docs/HISTORY.txt4
-rw-r--r--plone/formwidget/contenttree/__init__.py5
2 files changed, 9 insertions, 0 deletions
diff --git a/docs/HISTORY.txt b/docs/HISTORY.txt
index 4dabcc1..2257dc7 100644
--- a/docs/HISTORY.txt
+++ b/docs/HISTORY.txt
@@ -4,6 +4,10 @@ Changelog
1.0.7 (unreleased)
------------------
+* Add in some default binder instances, mostly for use with supermodel XML
+ schemas.
+ [lentinj]
+
* Switch to ``plone.app.testing``
[saily]
diff --git a/plone/formwidget/contenttree/__init__.py b/plone/formwidget/contenttree/__init__.py
index 501f596..3dd02f1 100644
--- a/plone/formwidget/contenttree/__init__.py
+++ b/plone/formwidget/contenttree/__init__.py
@@ -6,3 +6,8 @@ from plone.formwidget.contenttree.widget import MultiContentTreeFieldWidget
from plone.formwidget.contenttree.source import PathSourceBinder,\
ObjPathSourceBinder, UUIDSourceBinder
+
+# Some binder instances for use with plone.supermodel schemas
+path_src_binder = PathSourceBinder()
+obj_path_src_binder = ObjPathSourceBinder()
+uuid_src_binder = UUIDSourceBinder()