示例#1
0
文件: models.py 项目: apit/rinjani
 def process_inline_attachments(self, src):
     if self.attachments:
         pip = AttachmentInline(self.attachments)
         processor.register('attachment', pip)
         pis = SlideshowInline(self.attachments)
         processor.register('slideshow', pis)
     return processor.process(src)
示例#2
0
 def process_inline_attachments(self, src):
     if self.attachments:
         pip = AttachmentInline(self.attachments)
         processor.register('attachment', pip)
         pis = SlideshowInline(self.attachments)
         processor.register('slideshow', pis)
     return processor.process(src)
示例#3
0
文件: models.py 项目: apit/rinjani
    def process_inline(self, field, src):
        if field not in self.inline_fields:
            return src

        if self.attachments:
            pip = AttachmentInline(self.attachments)
            processor.register('attachment', pip)
            pis = SlideshowInline(self.attachments)
            processor.register('slideshow', pis)
        return processor.process(src)
示例#4
0
    def process_inline(self, field, src):
        if field not in self.inline_fields:
            return src

        if self.attachments:
            pip = AttachmentInline(self.attachments)
            processor.register('attachment', pip)
            pis = SlideshowInline(self.attachments)
            processor.register('slideshow', pis)
        return processor.process(src)