comparison doc/customizing.txt @ 2957:4129ecd31eea maint-0.7

tweaks
author Richard Jones <richard@users.sourceforge.net>
date Thu, 25 Nov 2004 22:14:05 +0000
parents f203541b1116
children 6fbc8633a4c8
comparison
equal deleted inserted replaced
2955:6d3e2848e0ba 2957:4129ecd31eea
1766 1766
1767 "structure python:msg.content.plain(hyperlink=1)" 1767 "structure python:msg.content.plain(hyperlink=1)"
1768 1768
1769 The text is automatically HTML-escaped before the hyperlinking 1769 The text is automatically HTML-escaped before the hyperlinking
1770 transformation done in the plain() method. 1770 transformation done in the plain() method.
1771
1771 hyperlinked The same as msg.content.plain(hyperlink=1), but nicer:: 1772 hyperlinked The same as msg.content.plain(hyperlink=1), but nicer::
1772 1773
1773 "structure msg/content/hyperlinked" 1774 "structure msg/content/hyperlinked"
1774 1775
1775 field render an appropriate form edit field for the property - for 1776 field render an appropriate form edit field for the property - for
1776 most types this is a text entry box, but for Booleans it's a 1777 most types this is a text entry box, but for Booleans it's a
1777 tri-state yes/no/neither selection. 1778 tri-state yes/no/neither selection. This method may take some
1779 arguments:
1780
1781 size
1782 Sets the width in characters of the edit field
1783
1784 format (Date properties only)
1785 Sets the format of the date in the field - uses the same
1786 format string argument as supplied to the ``pretty`` method
1787 below.
1788
1778 stext only on String properties - render the value of the property 1789 stext only on String properties - render the value of the property
1779 as StructuredText (requires the StructureText module to be 1790 as StructuredText (requires the StructureText module to be
1780 installed separately) 1791 installed separately)
1781 multiline only on String properties - render a multiline form edit 1792 multiline only on String properties - render a multiline form edit
1782 field for the property 1793 field for the property
1802 python:context.activity.pretty('%Y-%m-%d') 1813 python:context.activity.pretty('%Y-%m-%d')
1803 1814
1804 Will format as "2004-03-19" instead. 1815 Will format as "2004-03-19" instead.
1805 1816
1806 Interval properties - render the interval in a pretty 1817 Interval properties - render the interval in a pretty
1807 format (eg. "yesterday") 1818 format (eg. "yesterday"). The format arguments are those used
1819 in the standard ``strftime`` call (see the `Python Library
1820 Reference: time module`__)
1808 menu only on Link and Multilink properties - render a form select 1821 menu only on Link and Multilink properties - render a form select
1809 list for this property 1822 list for this property
1810 reverse only on Multilink properties - produce a list of the linked 1823 reverse only on Multilink properties - produce a list of the linked
1811 items in reverse order 1824 items in reverse order
1812 isset returns True if the property has been set to a value 1825 isset returns True if the property has been set to a value
1813 =========== ================================================================ 1826 =========== ================================================================
1827
1828 __ http://docs.python.org/lib/module-time.html
1814 1829
1815 All of the above functions perform checks for permissions required to 1830 All of the above functions perform checks for permissions required to
1816 display or edit the data they are manipulating. The simplest case is 1831 display or edit the data they are manipulating. The simplest case is
1817 editing an issue title. Including the expression:: 1832 editing an issue title. Including the expression::
1818 1833

Roundup Issue Tracker: http://roundup-tracker.org/