Dominik Ruf wrote:
Hi,

sadly that doesn't work. I defined a transformation chain that works
correctly this the following script:

from Products.CMFCore.utils import getToolByName
portal_transforms = getToolByName(context, 'portal_transforms')
text = context.getText()
data = portal_transforms.convert('testchain', text)
html = data.getData()
return html

But it doesn't work if I register it as policy.

Besides. I don't think this whole policy thing is a good idea, because
realized that
kupu will overwrite the policy for text/x-html-safe if you check "Link
using UIDs".

Is there any other way to force a transformation?


Not sure. But as you've figured out you can of course invoke
it explicitly. I know that doesn't help you here and I consider
the problem with the chain in the policy a bug but no one
wants to touch portal_transforms as it is right now because
Hanno is reimplementing a transforms engine for Plone from scratch
anyway (planned for inclusion in Plone 4)

http://dev.plone.org/plone/browser/plone.transforms

Raphael


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to