Пример #1
0
    def get_content(self):
        widget = self.view.w[self.field]

        if not widget.field.get(self._view.context):
            content = ''
        else:
            content = to_html_xweb_intelligent(widget.value)
        return '<div id="{}" class="{}">{}</div>'.format(
            widget.id, widget.klass, content)
Пример #2
0
 def get_description_html(self):
     return to_html_xweb_intelligent(self.get_description()) or None
Пример #3
0
 def get_title_html(self, include_number=False):
     return to_html_xweb_intelligent(self.get_title(include_number=include_number))
Пример #4
0
 def get_description(self):
     return to_html_xweb_intelligent(self.context.description)
Пример #5
0
 def get_description_html(self):
     return to_html_xweb_intelligent(self.get_description()) or None
Пример #6
0
 def get_title_html(self, include_number=False):
     return to_html_xweb_intelligent(
         self.get_title(include_number=include_number))
Пример #7
0
 def get_description(self):
     return to_html_xweb_intelligent(self.context.description)
Пример #8
0
 def get_content(self):
     widget = self.view.w[self.field]
     content = to_html_xweb_intelligent(widget.value)
     return '<div id="{}" class="{}">{}</div>'.format(widget.id, widget.klass, content)