src/pyams_portal/zmi/portlet.py
changeset 179 61229f2e93ce
parent 176 4ac5a1814dc0
child 203 cbfca7e0db4c
equal deleted inserted replaced
178:a1cd70c6496f 179:61229f2e93ce
   139         def get_form_factory(context, request):
   139         def get_form_factory(context, request):
   140             return PortletSettingsPropertiesEditor(context, request, self.parent_form)
   140             return PortletSettingsPropertiesEditor(context, request, self.parent_form)
   141 
   141 
   142         output = super(PortletSettingsPropertiesEditor, self).get_ajax_output(changes)
   142         output = super(PortletSettingsPropertiesEditor, self).get_ajax_output(changes)
   143         if 'renderer' in changes.get(IPortletSettings, ()):
   143         if 'renderer' in changes.get(IPortletSettings, ()):
   144             renderer = self.context.get_renderer()
   144             renderer = self.context.get_renderer(self.request)
   145             if (renderer is not None) and \
   145             if (renderer is not None) and \
   146                (renderer.target_interface is None) and \
   146                (renderer.target_interface is None) and \
   147                (renderer.settings_interface is not None):
   147                (renderer.settings_interface is not None):
   148                 output.update({
   148                 output.update({
   149                     'close_form': False
   149                     'close_form': False