Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)

src/p/r/Products.AttachmentTypes-1.6/Products/AttachmentTypes/kss/views.py   Products.AttachmentTypes(Download)
from plone.app.layout.globals.interfaces import IViewView
 
from Products.AttachmentTypes.utils import getAttachments, getImages, getLinks
 
class DynamicAttachments(PloneKSSView):
    """
    """
 
    def getAttachmentsHTML(self):
        return self.context.widget_attachments_list(attachments=getAttachments(self.context))

src/p/r/Products.AttachmentTypes-1.6/Products/AttachmentTypes/widget/attachments.py   Products.AttachmentTypes(Download)
from AccessControl import ClassSecurityInfo
 
from Products.Archetypes.Widget import TypesWidget
from Products.Archetypes.Registry import registerWidget
from Products.AttachmentTypes.utils import getAttachments