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

All Samples(41)  |  Call(20)  |  Derive(0)  |  Import(21)

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/Field.py   Products.Archetypes(Download)
from Products.Archetypes.utils import mapply
from Products.Archetypes.utils import shasattr
from Products.Archetypes.utils import contentDispositionHeader
from Products.Archetypes.mimetype_utils import getAllowedContentTypes as getAllowedContentTypesProperty
from Products.Archetypes import config
                filename = unicode(filename, instance.getCharset())
            header_value = contentDispositionHeader(
                disposition='attachment',
                filename=filename)
            RESPONSE.setHeader("Content-Disposition", header_value)

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/Field.py   Products.Archetypes(Download)
from Products.Archetypes.utils import mapply
from Products.Archetypes.utils import shasattr
from Products.Archetypes.utils import contentDispositionHeader
from Products.Archetypes.mimetype_utils import getAllowedContentTypes as getAllowedContentTypesProperty
from Products.Archetypes import config
                filename = unicode(filename, instance.getCharset())
            header_value = contentDispositionHeader(
                disposition='attachment',
                filename=filename)
            RESPONSE.setHeader("Content-Disposition", header_value)

src/p/r/Products.PloneFormGen-1.7.14/Products/PloneFormGen/content/saveDataAdapter.py   Products.PloneFormGen(Download)
 
from Products.Archetypes.public import *
from Products.Archetypes.utils import contentDispositionHeader
from Products.ATContentTypes.content.base import registerATCT
 
        if filename.find('.') < 0:
            filename = '%s.tsv' % filename
        header_value = contentDispositionHeader('attachment', self.getCharset(), filename=filename)
        RESPONSE.setHeader("Content-Disposition", header_value)
        RESPONSE.setHeader("Content-Type", 'text/tab-separated-values;charset=%s' % self.getCharset())
        if filename.find('.') < 0:
            filename = '%s.csv' % filename
        header_value = contentDispositionHeader('attachment', self.getCharset(), filename=filename)
        RESPONSE.setHeader("Content-Disposition", header_value)
        RESPONSE.setHeader("Content-Type", 'text/comma-separated-values;charset=%s' % self.getCharset())

src/p/r/Products.PloneFormGen-HEAD/Products/PloneFormGen/content/saveDataAdapter.py   Products.PloneFormGen(Download)
 
from Products.Archetypes.public import *
from Products.Archetypes.utils import contentDispositionHeader
from Products.ATContentTypes.content.base import registerATCT
 
        if filename.find('.') < 0:
            filename = '%s.tsv' % filename
        header_value = contentDispositionHeader('attachment', self.getCharset(), filename=filename)
        RESPONSE.setHeader("Content-Disposition", header_value)
        RESPONSE.setHeader("Content-Type", 'text/tab-separated-values;charset=%s' % self.getCharset())
        if filename.find('.') < 0:
            filename = '%s.csv' % filename
        header_value = contentDispositionHeader('attachment', self.getCharset(), filename=filename)
        RESPONSE.setHeader("Content-Disposition", header_value)
        RESPONSE.setHeader("Content-Type", 'text/comma-separated-values;charset=%s' % self.getCharset())

src/p/l/plone.app.blob-1.5.10/src/plone/app/blob/field.py   plone.app.blob(Download)
from Products.Archetypes.atapi import PrimaryFieldMarshaller
from Products.Archetypes.Registry import registerField
from Products.Archetypes.utils import contentDispositionHeader
 
from plone.i18n.normalizer.interfaces import IUserPreferredFileNameNormalizer
                filename)
            header_value = contentDispositionHeader(
                disposition=disposition,
                filename=filename)
            RESPONSE.setHeader("Content-disposition", header_value)

src/c/o/collective.plone.gsxml-0.4.7/src/collective/plone/gsxml/utils.py   collective.plone.gsxml(Download)
 
import mimetypes
from Products.Archetypes.utils import contentDispositionHeader
 
 
    RESPONSE.setHeader('Content-Length', size )
    RESPONSE.setHeader('Content-Type', mime_type )
    header_value = contentDispositionHeader('attachment', "utf-8", filename=name )
    RESPONSE.setHeader("Content-disposition", header_value)
    file.seek(0)

src/p/l/plone.app.blob-HEAD/src/plone/app/blob/field.py   plone.app.blob(Download)
from Products.Archetypes.atapi import PrimaryFieldMarshaller
from Products.Archetypes.Registry import registerField
from Products.Archetypes.utils import contentDispositionHeader
 
from plone.i18n.normalizer.interfaces import IUserPreferredFileNameNormalizer
                filename)
            header_value = contentDispositionHeader(
                disposition=disposition,
                filename=filename)
            RESPONSE.setHeader("Content-disposition", header_value)

src/p/r/Products.Poi-2.2.6/Products/Poi/browser/response.py   Products.Poi(Download)
from OFS.Image import File
from Products.Archetypes.atapi import DisplayList
from Products.Archetypes.utils import contentDispositionHeader
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone import PloneMessageFactory as PMF
                filename = safe_unicode(filename, context.getCharset())
            header_value = contentDispositionHeader(
                disposition='attachment',
                filename=filename)
            request.response.setHeader("Content-disposition", header_value)

src/w/i/wildcard.pdfpal-0.7b6/wildcard/pdfpal/browser/views.py   wildcard.pdfpal(Download)
from Products.Five import BrowserView
from zope.component import getUtility
from Products.CMFPlone.utils import base_hasattr
from Products.Archetypes.utils import contentDispositionHeader
from os import fstat
    def render_blob_version(self, blob):
        # done much like it is done in plone.app.blob's index_html
        header_value = contentDispositionHeader(disposition='attachment', filename='image_%s.jpg' % self.image_type)
 
        blobfi = openBlob(blob)

src/m/a/mailtoplone.base-0.2.7/mailtoplone/base/browser/emailview.py   mailtoplone.base(Download)
from Products.Five import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.Archetypes.utils import contentDispositionHeader
 
from plone.memoize.instance import memoize
        if filename is not None:
            header_value = contentDispositionHeader(
                disposition='attachment',
                filename=filename)
            RESPONSE.setHeader("Content-disposition", header_value)

  1 | 2 | 3  Next