class ICSVSourceFields(ITitledContent):

    file = silvaschema.Bytes(title=_("file"),
                             description=_("File to upload as source data."),
                             required=True)
    data_encoding = schema.Choice(
        title=_("character encoding"),
        description=_('Character encoding of the source data.'),
        source=encoding_source,
        required=False)
Ejemplo n.º 2
0
class IImageAddFields(ITitledContent):
    image = silvaschema.Bytes(title=_("Image"), required=True)
Ejemplo n.º 3
0
class IFileAddFields(ITitledContent):
    file = silvaschema.Bytes(title=_(u"File"), required=True)