exposer folder-tree everywhere
This commit is contained in:
parent
26fed25347
commit
1be0b1fed0
|
@ -62,5 +62,12 @@
|
|||
permission="zope.Public"
|
||||
class=".link.Fetch"
|
||||
/>
|
||||
<browser:page
|
||||
name="foldertree-fetch"
|
||||
for="*"
|
||||
permission="zope.Public"
|
||||
class=".link.Fetch"
|
||||
/>
|
||||
|
||||
|
||||
</configure>
|
||||
|
|
|
@ -46,21 +46,6 @@ class Fetch(plone.formwidget.contenttree.widget.Fetch):
|
|||
recurse_template = ViewPageTemplateFile('input_recurse.pt')
|
||||
|
||||
def __call__(self):
|
||||
# We want to check that the user was indeed allowed to access the
|
||||
# form for this widget. We can only this now, since security isn't
|
||||
# applied yet during traversal.
|
||||
self.validate_access()
|
||||
|
||||
widget = self.context
|
||||
context = widget.context
|
||||
|
||||
# Update the widget before accessing the source.
|
||||
# The source was only bound without security applied
|
||||
# during traversal before.
|
||||
widget.update()
|
||||
source = widget.bound_source
|
||||
|
||||
# Convert token from request to the path to the object
|
||||
token = self.request.form.get('href', None)
|
||||
level = self.request.form.get('rel', 0)
|
||||
|
||||
|
|
Reference in New Issue