From ce0522fe9127612898abf2d9a9c066fcd66d8863 Mon Sep 17 00:00:00 2001 From: Jamie Lentin Date: Fri, 28 Jun 2013 15:58:20 +0100 Subject: [PATCH] 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. --- docs/HISTORY.txt | 4 ++++ plone/formwidget/contenttree/__init__.py | 5 +++++ 2 files changed, 9 insertions(+) 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()