summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaudenz Steinlin <gaudenz@soziologie.ch>2013-06-06 13:35:09 (GMT)
committerGaudenz Steinlin <gaudenz@soziologie.ch>2013-06-06 13:35:09 (GMT)
commitf6d79e8b94abc5baac2f46e4b92d2f2b9716d9ad (patch)
tree5b3d1c0182888681e15b54eb9b9c2733d3b5bac2
parent2a5d6457233554da85e449c70f01c748b0737213 (diff)
downloadplone.formwidget.contenttree-f6d79e8b94abc5baac2f46e4b92d2f2b9716d9ad.zip
plone.formwidget.contenttree-f6d79e8b94abc5baac2f46e4b92d2f2b9716d9ad.tar.gz
plone.formwidget.contenttree-f6d79e8b94abc5baac2f46e4b92d2f2b9716d9ad.tar.bz2
Ignore missing values
Content objects can go away or the content of a source may change. Don't throw an exception in this case.
-rw-r--r--docs/HISTORY.txt3
-rw-r--r--plone/formwidget/contenttree/widget.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/HISTORY.txt b/docs/HISTORY.txt
index 8e3fd52..4dabcc1 100644
--- a/docs/HISTORY.txt
+++ b/docs/HISTORY.txt
@@ -15,6 +15,9 @@ Changelog
* Do not exclude content types which are not allowed in navigation [ebrehault]
+* Ignore missing values, content objects can go away or the content of a source may change.
+ [gaudenz]
+
1.0.6 (2012-09-28)
------------------
diff --git a/plone/formwidget/contenttree/widget.py b/plone/formwidget/contenttree/widget.py
index 9b9d64b..00b6694 100644
--- a/plone/formwidget/contenttree/widget.py
+++ b/plone/formwidget/contenttree/widget.py
@@ -121,6 +121,7 @@ class ContentTreeBase(Explicit):
hidden_template = ViewPageTemplateFile('hidden.pt')
display_template = None # set by subclass
recurse_template = ViewPageTemplateFile('input_recurse.pt')
+ ignoreMissing = True
# Parameters passed to the JavaScript function
folderEvent = 'click'