Using ZReST in page templates or python scripts
Hi List, I'm wondering if there's a way to use restructuredText functionality from within a page template or python script? For example, I am storing information in a mysql database. A fair amount of this information could do with the ability to be formatted. I am hoping I can utilize restructuredText for this. I provide a through-the-web interface for editing this content, and I would like to teach my boss + coworkers simple ReST syntax, so they can edit it themselves. I would then like the either store it as is, and transform it when accessed, or transform it immeadiatly after editing, and store it that way. So a function from python that would convert ReST to HTML would really do the trick. Thanks, Alec Munro
see doc/RESTRUCTUREDTEXT.txt -aj --On Mittwoch, 6. August 2003 14:57 Uhr -0300 Alec Munro <alec.munro@eoascientific.com> wrote:
Hi List, I'm wondering if there's a way to use restructuredText functionality from within a page template or python script? For example, I am storing information in a mysql database. A fair amount of this information could do with the ability to be formatted. I am hoping I can utilize restructuredText for this. I provide a through-the-web interface for editing this content, and I would like to teach my boss + coworkers simple ReST syntax, so they can edit it themselves. I would then like the either store it as is, and transform it when accessed, or transform it immeadiatly after editing, and store it that way. So a function from python that would convert ReST to HTML would really do the trick. Thanks,
Alec Munro
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
I think that file's only in ZOPE 2.7 which is still at beta 1. "Zope 2.7 or higher integrates reST as part of the Python docutils package." Steven On Wed, 6 Aug 2003, Andreas Jung wrote:
see doc/RESTRUCTUREDTEXT.txt
-aj
--On Mittwoch, 6. August 2003 14:57 Uhr -0300 Alec Munro <alec.munro@eoascientific.com> wrote:
Hi List, I'm wondering if there's a way to use restructuredText functionality from within a page template or python script? For example, I am storing information in a mysql database. A fair amount of this information could do with the ability to be formatted. I am hoping I can utilize restructuredText for this. I provide a through-the-web interface for editing this content, and I would like to teach my boss + coworkers simple ReST syntax, so they can edit it themselves. I would then like the either store it as is, and transform it when accessed, or transform it immeadiatly after editing, and store it that way. So a function from python that would convert ReST to HTML would really do the trick. Thanks,
Alec Munro
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
There is also a 2.6 backport of REST available on zope.org. -aj --On Donnerstag, 7. August 2003 9:23 Uhr +0100 Steven Hayles <sh23@leicester.ac.uk> wrote:
I think that file's only in ZOPE 2.7 which is still at beta 1.
"Zope 2.7 or higher integrates reST as part of the Python docutils package."
Steven
On Wed, 6 Aug 2003, Andreas Jung wrote:
see doc/RESTRUCTUREDTEXT.txt
-aj
--On Mittwoch, 6. August 2003 14:57 Uhr -0300 Alec Munro <alec.munro@eoascientific.com> wrote:
Hi List, I'm wondering if there's a way to use restructuredText functionality from within a page template or python script? For example, I am storing information in a mysql database. A fair amount of this information could do with the ability to be formatted. I am hoping I can utilize restructuredText for this. I provide a through-the-web interface for editing this content, and I would like to teach my boss + coworkers simple ReST syntax, so they can edit it themselves. I would then like the either store it as is, and transform it when accessed, or transform it immeadiatly after editing, and store it that way. So a function from python that would convert ReST to HTML would really do the trick. Thanks,
Alec Munro
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Alec Munro -
Andreas Jung -
Steven Hayles