Code

added info about structure/not:/path()
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 18 Feb 2003 21:10:42 +0000 (21:10 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 18 Feb 2003 21:10:42 +0000 (21:10 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1526 57a73879-2fb5-44c3-a270-3262357dd7e2

doc/customizing.txt

index bcaf3d3555e4154e037a3a561db1798f6d628ae5..b09e5e76bffa90c6bae754c17d5b690ab90d9668 100644 (file)
@@ -2,7 +2,7 @@
 Customising Roundup
 ===================
 
-:Version: $Revision: 1.74 $
+:Version: $Revision: 1.75 $
 
 .. This document borrows from the ZopeBook section on ZPT. The original is at:
    http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -998,6 +998,9 @@ forms:
    ``request/form/foo/value | default`` would simply leave the current HTML
    in place if the "foo" form variable doesn't exist.
 
+   You may use the python function ``path``, as in ``path("item/status")``, to
+   embed path expressions in Python expressions.
+
 **String Expressions** - eg. ``string:hello ${user/name}``
    These expressions are simple string interpolations - though they can be just
    plain strings with no interpolation if you want. The expression in the
@@ -1009,6 +1012,18 @@ forms:
    equivalent to ``item/status/checklist``, assuming that ``checklist`` is
    a method.
 
+Modifiers:
+
+**structure** - eg. ``structure python:msg.content.plain(hyperlink=1)``
+   The result of expressions are normally *escaped* to be safe for HTML
+   display (all "<", ">" and "&" are turned into special entities). The
+   ``structure`` expression modifier turns off this escaping - the result
+   of the expression is now assumed to be HTML structured text.
+
+**not:** - eg. ``not:python:1=1``
+   This simply inverts the logical true/false value of another expression.
+
+
 Template Macros
 ~~~~~~~~~~~~~~~