Back to index

plone3  3.1.7
convertContentForKupu Namespace Reference


tuple field = context.getField(fieldname)
tuple text_format = context.REQUEST.get('%s_text_format' % fieldname, context.getContentType(fieldname))
tuple encoding = context.getCharset()
tuple content = content.encode(encoding)
tuple transforms = getToolByName(context, 'portal_transforms')
tuple converted = transforms.convertToData('text/html', content, mimetype=text_format)

Variable Documentation

tuple convertContentForKupu.content = content.encode(encoding)

Definition at line 21 of file

tuple convertContentForKupu.converted = transforms.convertToData('text/html', content, mimetype=text_format)

Definition at line 27 of file

string convertContentForKupu.encoding = context.getCharset()

Definition at line 18 of file

tuple convertContentForKupu.field = context.getField(fieldname)

Definition at line 12 of file

tuple convertContentForKupu.text_format = context.REQUEST.get('%s_text_format' % fieldname, context.getContentType(fieldname))

Definition at line 13 of file

tuple convertContentForKupu.transforms = getToolByName(context, 'portal_transforms')

Definition at line 25 of file