Re: batch x-rst to html

"Jens W. Klein" <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization Klein & Partner KG, BlueDynamics Alliance
Message-ID <1294684673.1497.62.camel@minime>
Am Montag, den 10.01.2011, 18:35 +0000 schrieb Michael Graf:
> Vielleicht hab ich ja etwas wichtiges vergessen:
> Leider gibt mir Plone weiterhin den x-rst Text zurück wenn ich in den Edit-Modus gehe, was ich ja nicht will.
> 
> 
> ----
>     portal_catalog = getToolByName(self, 'portal_catalog')
>     portal_transform = getToolByName(self, 'portal_transforms')
>     results = portal_catalog.searchResults(portal_type='Document')
>     for result in results:
>         if result.getObject is not None:
> #      print context.run_convertall(oldid)
>           ob = result.getObject()
>           transformed = portal_transform.convert('rest_to_html', ob.getText())
>           ob.setText(transformed.getData())

hier musst du den neuen mime-type mitgeben





_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.