0001-form-don-t-display-portfolio-pickers-if-instructed-t.patch
extra/modules/form.py | ||
---|---|---|
4 | 4 |
class FileWithPreviewAndStrongboxWidget(FileWithPreviewWidget): |
5 | 5 |
def render_hint(self, hint): |
6 | 6 |
t = CompositeWidget.render_hint(self, hint) |
7 |
if not self.allow_portfolio_picking: |
|
8 |
return t |
|
7 | 9 |
root_url = get_publisher().get_root_url() |
8 | 10 |
if get_publisher().has_site_option('strongbox') and get_request().user and not self.preview: |
9 | 11 |
get_response().add_javascript(['../../aq/js/strongbox.js']) |
10 |
- |