Révision 72d2e60f
Ajouté par Frédéric Péters il y a plus de 8 ans
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']) |
Formats disponibles : Unified diff
form: don't display portfolio pickers if instructed to do so (#7182)