comparison doc/customizing.txt @ 2180:58b6d1747973

Web interface tweaks. - added a favicon - added url_quote and html_quote methods to the utils object - added isset method to HTMLProperty - added "download_url" method to generate a correctly quoted URL for file download links [SF#927745]
author Richard Jones <richard@users.sourceforge.net>
date Mon, 05 Apr 2004 00:51:45 +0000
parents c22329f379ae
children b1a29edd6214
comparison
equal deleted inserted replaced
2179:5aa74f9879ac 2180:58b6d1747973
1 =================== 1 ===================
2 Customising Roundup 2 Customising Roundup
3 =================== 3 ===================
4 4
5 :Version: $Revision: 1.131 $ 5 :Version: $Revision: 1.132 $
6 6
7 .. This document borrows from the ZopeBook section on ZPT. The original is at: 7 .. This document borrows from the ZopeBook section on ZPT. The original is at:
8 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx 8 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
9 9
10 .. contents:: 10 .. contents::
1600 hasPermission specific to the "user" class - determine whether the 1600 hasPermission specific to the "user" class - determine whether the
1601 user has a Permission 1601 user has a Permission
1602 is_edit_ok is the user allowed to Edit the current item? 1602 is_edit_ok is the user allowed to Edit the current item?
1603 is_view_ok is the user allowed to View the current item? 1603 is_view_ok is the user allowed to View the current item?
1604 is_retired is the item retired? 1604 is_retired is the item retired?
1605 download_url generates a url-quoted link for download of FileClass
1606 item contents (ie. file<id>/<name>)
1605 =============== ======================================================== 1607 =============== ========================================================
1606 1608
1607 Note that if you have a property of the same name as one of the above 1609 Note that if you have a property of the same name as one of the above
1608 methods, you'll need to access it using a python "item access" 1610 methods, you'll need to access it using a python "item access"
1609 expression. For example:: 1611 expression. For example::
1711 format (eg. "yesterday") 1713 format (eg. "yesterday")
1712 menu only on Link and Multilink properties - render a form select 1714 menu only on Link and Multilink properties - render a form select
1713 list for this property 1715 list for this property
1714 reverse only on Multilink properties - produce a list of the linked 1716 reverse only on Multilink properties - produce a list of the linked
1715 items in reverse order 1717 items in reverse order
1718 isset returns True if the property has been set to a value
1716 =========== ================================================================ 1719 =========== ================================================================
1717 1720
1718 All of the above functions perform checks for permissions required to 1721 All of the above functions perform checks for permissions required to
1719 display or edit the data they are manipulating. The simplest case is 1722 display or edit the data they are manipulating. The simplest case is
1720 editing an issue title. Including the expression:: 1723 editing an issue title. Including the expression::
1860 1863
1861 =============== ======================================================== 1864 =============== ========================================================
1862 Method Description 1865 Method Description
1863 =============== ======================================================== 1866 =============== ========================================================
1864 Batch return a batch object using the supplied list 1867 Batch return a batch object using the supplied list
1868 url_quote quote some text as safe for a URL (ie. space, %, ...)
1869 html_quote quote some text as safe in HTML (ie. <, >, ...)
1865 =============== ======================================================== 1870 =============== ========================================================
1866 1871
1867 You may add additional utility methods by writing them in your tracker 1872 You may add additional utility methods by writing them in your tracker
1868 ``interfaces.py`` module's ``TemplatingUtils`` class. See `adding a time 1873 ``interfaces.py`` module's ``TemplatingUtils`` class. See `adding a time
1869 log to your issues`_ for an example. The TemplatingUtils class itself 1874 log to your issues`_ for an example. The TemplatingUtils class itself

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