stx and python scripts
Hi all, I don't find any way to format """ %s""" % text in python scripts as in <dtml-var txt fmt="structured-text"> Thanks regards Max STURM
max mageos writes:
I don't find any way to format """ %s""" % text in python scripts as in <dtml-var txt fmt="structured-text"> Look at the "standard" module in "Products.PythonScripts". It provides the "fmt" functions.
Dieter
from Products.PythonScripts.standard import structured_text print """ %s """ % ( structured_text(text) ) At 17:14 2002-01-15 +0100, max mageos wrote:
Hi all,
I don't find any way to format """ %s""" % text in python scripts as in <dtml-var txt fmt="structured-text"> Thanks
regards Max STURM
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Dieter Maurer -
max mageos -
Peter Bengtsson