src/pyams_content/component/paragraph/zmi/verbatim.py
changeset 1081 a7a2eeb833b7
parent 1015 ac47f95d7bd6
parent 1079 a5e56749ca3d
child 1083 112b6aa11de4
equal deleted inserted replaced
1080:11d950caf9d2 1081:a7a2eeb833b7
    70 
    70 
    71     fields = field.Fields(IVerbatimParagraph).omit(*PARAGRAPH_HIDDEN_FIELDS)
    71     fields = field.Fields(IVerbatimParagraph).omit(*PARAGRAPH_HIDDEN_FIELDS)
    72     edit_permission = MANAGE_CONTENT_PERMISSION
    72     edit_permission = MANAGE_CONTENT_PERMISSION
    73 
    73 
    74     def updateWidgets(self, prefix=None):
    74     def updateWidgets(self, prefix=None):
    75         super(VerbatimParagraphAddForm, self).updateWidgets(prefix)
    75         super().updateWidgets(prefix)
    76         if 'quote' in self.widgets:
    76         if 'quote' in self.widgets:
    77             self.widgets['quote'].widget_css_class = 'input height-100'
    77             self.widgets['quote'].widget_css_class = 'input height-200'
    78 
    78 
    79     def create(self, data):
    79     def create(self, data):
    80         return VerbatimParagraph()
    80         return VerbatimParagraph()
    81 
    81 
    82     def add(self, object):
    82     def add(self, object):
   113     edit_permission = MANAGE_CONTENT_PERMISSION
   113     edit_permission = MANAGE_CONTENT_PERMISSION
   114 
   114 
   115     def updateWidgets(self, prefix=None):
   115     def updateWidgets(self, prefix=None):
   116         super(VerbatimParagraphPropertiesEditForm, self).updateWidgets(prefix)
   116         super(VerbatimParagraphPropertiesEditForm, self).updateWidgets(prefix)
   117         if 'quote' in self.widgets:
   117         if 'quote' in self.widgets:
   118             self.widgets['quote'].widget_css_class = 'input height-100'
   118             self.widgets['quote'].widget_css_class = 'input height-200'
   119 
   119 
   120     def get_ajax_output(self, changes):
   120     def get_ajax_output(self, changes):
   121         output = super(self.__class__, self).get_ajax_output(changes)
   121         output = super(self.__class__, self).get_ajax_output(changes)
   122         if 'quote' in changes.get(IVerbatimParagraph, ()):
   122         if 'quote' in changes.get(IVerbatimParagraph, ()):
   123             if 'title' not in changes.get(IBaseParagraph, ()):
   123             if 'title' not in changes.get(IBaseParagraph, ()):