Frédéric Péters
7f7c2558b0
do not fail on non-string missing value ( #4535 )
2014-03-24 10:56:13 +01:00
Patrick Gerken
b2ec35c636
proper messaging
2013-08-17 19:53:33 +02:00
Laurence Rowe
1a10c0e309
Ensure context is a content item of some sort.
2012-09-27 20:00:24 +01:00
Joscha Krutzki
7a610fb916
pep8 & Fix term title genration to use the brain id if there is not brain title
2012-07-09 16:11:30 +02:00
Patrick Gerken
5cfe8d8670
The LookupError lets one think that the database is missing an object, but in reality the select criterias are wrong
2012-05-29 19:59:41 +03:00
Nathan Van Gheem
9c97e00245
fix _getBrainByValue to check if value is traversable
...
first so we can provide the correct token.
2011-10-03 20:36:34 -05:00
Jamie Lentin
578ef5bd7f
Make placeholder terms for hidden / missing items
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49657
2011-05-16 15:49:44 +00:00
Jamie Lentin
601d12720a
Remove caching of bound_source, this can cache across requests
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49656
2011-05-16 15:20:57 +00:00
Jamie Lentin
4912d64543
Try getSite over the context of PUBLISHED, since during transmogrify.dexterity import this test results in <Application >, which isn't good enough as a context
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49639
2011-05-16 11:44:35 +00:00
Maurits van Rees
a633d724dc
Fake zope.globalrequest.getRequest when it cannot be imported (as in Plone 3).
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49589
2011-05-14 01:57:08 +00:00
Maurits van Rees
df5f13d933
Use unrestrictedSearchResults to search for a UID in the catalog in the UUIDSource, as at this point it may be impossible be authenticated.
...
Avoids exceptions in validation when as Manager having selected a private item.
svn path=/plone.formwidget.contenttree/trunk/; revision=49519
2011-05-13 14:22:39 +00:00
Maurits van Rees
7061256a46
Add some more defenses against uids or brains that are not found.
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49518
2011-05-13 13:55:39 +00:00
Maurits van Rees
1d2812a29d
In the UUIDSource warn when a brain has no UID value (Missing.Value).
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49411
2011-05-11 12:04:40 +00:00
Maurits van Rees
1aaeba25f3
Catch IndexError when checking if a value is in a source (like when no results are found for a uuid).
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49409
2011-05-11 10:41:12 +00:00
Maurits van Rees
43a186e30b
Hi. My name is Maurits and I am a pep8 fetishist. [From the annals of the pep8 fetishists anonymous support group.]
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49408
2011-05-11 10:19:31 +00:00
Maurits van Rees
3acd4f6960
Fixed undefined name 'token'.
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49407
2011-05-11 10:16:26 +00:00
Jamie Lentin
0bcebf7378
Change UUIDSource so it uses path tokens too
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49400
2011-05-10 13:20:38 +00:00
Jamie Lentin
e7b47cc6b9
Add more cases for finding context. Workaround for sources being used without being bound first
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49399
2011-05-10 13:20:22 +00:00
Jamie Lentin
27b541ac54
Check the request for context before falling back to getSite()
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49398
2011-05-10 13:20:08 +00:00
Jamie Lentin
a23f0d3120
Add a UUIDSource that has plone.uuid values. Refactor so public methods have public names
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49394
2011-05-09 15:08:44 +00:00
Jamie Lentin
8d9598a414
Alter terms so that token is the full path to an item
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49393
2011-05-09 15:08:22 +00:00
Jamie Lentin
024d0860dd
_filter is used outside the source, so not an internal helper function anymore.
...
svn path=/plone.formwidget.contenttree/trunk/; revision=49347
2011-05-06 16:35:31 +00:00
Maurits van Rees
4d4a59926a
Some pep8 and pyflakes in source.py
...
svn path=/plone.formwidget.contenttree/trunk/; revision=48762
2011-04-12 21:01:22 +00:00
Maurits van Rees
e57d420bad
Nuke trailing white space.
...
svn path=/plone.formwidget.contenttree/trunk/; revision=48748
2011-04-12 15:26:54 +00:00
Israel Saeta Pérez
7a6dbfadf7
Merge dukebody-context branch 37522:37945.
...
svn path=/plone.formwidget.contenttree/trunk/; revision=38231
2010-07-25 10:36:05 +00:00
Gaudenz Steinlin
4449d7f79e
Make it possible to restrict the field to objects below a path
...
The constructor of ObjPathSource takes a path keyword argument
with a PathIndex catalog query. This argument filters objects
outside of this path. If the navigation_tree_query does not have
a path argument, the path is also copied into this query.
svn path=/plone.formwidget.contenttree/trunk/; revision=37121
2010-06-09 08:59:11 +00:00
Carsten Senger
086966009b
cleanups: pep 8 and sort imports
...
svn path=/plone.formwidget.contenttree/trunk/; revision=32939
2010-01-10 16:13:59 +00:00
David Glick
0654f74412
we need to not security check the object during term generation, b/c it might be while traversing to the field, before authorization has taken place
...
svn path=/plone.formwidget.contenttree/trunk/; revision=25823
2009-03-12 06:33:24 +00:00
David Glick
e4ed4010c9
a few fixes to the path handling, and added ObjPathSource
...
svn path=/plone.formwidget.contenttree/trunk/; revision=25810
2009-03-11 11:44:16 +00:00
Martin Aspeli
3055d0d10f
Initial checkin
...
svn path=/plone.formwidget.contenttree/trunk/; revision=22458
2008-08-31 23:57:55 +00:00