@@ -3710,8 +3710,8 @@ The utils variable
37103710~~~~~~~~~~~~~~~~~~
37113711
37123712This is implemented by the
3713- ``roundup.cgi.templating.TemplatingUtils`` class, which may be extended
3714- with additional methods by extensions_.
3713+ ``roundup.cgi.templating.TemplatingUtils`` class. New methods can
3714+ be added to the variable by using extensions_.
37153715
37163716.. table::
37173717 :class: valign-top
@@ -3728,7 +3728,7 @@ with additional methods by extensions_.
37283728 html_calendar renders an HTML calendar used by the
37293729 ``_generic.calendar.html`` template (itself invoked by
37303730 the popupCalendar DateHTMLProperty method
3731- readfile read Javascript or other content in an external
3731+ readfile read JavaScript or other content in an external
37323732 file into the template.
37333733 url_quote quote some text as safe for a URL (ie. space, %, ...)
37343734 =============== ========================================================
@@ -3773,13 +3773,13 @@ The parameters are:
37733773 ========= ==============================================================
37743774 Parameter Usage
37753775 ========= ==============================================================
3776- sequence a list of HTMLItems
3777- size how big to make the sequence.
3778- start where to start (0-indexed) in the sequence.
37793776 end where to end (0-indexed) in the sequence.
37803777 orphan if the next batch would contain less items than this value,
37813778 then it is combined with this batch
37823779 overlap the number of items shared between adjacent batches
3780+ sequence a list of HTMLItems
3781+ size how big to make the sequence.
3782+ start where to start (0-indexed) in the sequence.
37833783 ========= ==============================================================
37843784
37853785All of the parameters are assigned as attributes on the batch object. In
@@ -3791,11 +3791,11 @@ addition, it has several more attributes:
37913791 =============== ========================================================
37923792 Attribute Description
37933793 =============== ========================================================
3794- start indicates the start index of the batch. *Unlike
3795- the argument, is a 1-based index (I know, lame)*
37963794 first indicates the start index of the batch *as a 0-based
37973795 index*
37983796 length the actual number of elements in the batch
3797+ start indicates the start index of the batch. *Unlike
3798+ the argument, is a 1-based index (I know, lame)*
37993799 sequence_length the length of the original, unbatched, sequence.
38003800 =============== ========================================================
38013801
@@ -3825,7 +3825,7 @@ An example of batching::
38253825 </tr>
38263826 </table>
38273827
3828- ... which will produce a table with four columns containing the items of
3828+ will produce a table with four columns containing the items of
38293829the "keyword" class (well, their "name" anyway).
38303830
38313831
@@ -3859,7 +3859,7 @@ from your template. For TAL based templates, something like this::
38593859 'Content-Type', 'application/atom+xml'
38603860 )"/>
38613861
3862- will set the Content-Type header. The header name is case sensitive,
3862+ will set the `` Content-Type`` header. The header name is case sensitive,
38633863so use capital letters as shown. If you don't you end up with multiple
38643864Content-Type definitions returned to the browser.
38653865
@@ -3869,7 +3869,7 @@ Displaying Properties
38693869Properties appear in the user interface in three contexts: in indices,
38703870in editors, and as search arguments. For each type of property, there
38713871are several display possibilities. For example, in an index view, a
3872- string property may just be printed as a plain string, but in an editor
3872+ string property may just be printed as a plain string. In an editor
38733873view, that property may be displayed in an editable field.
38743874
38753875
@@ -3895,20 +3895,21 @@ been added for clarity)::
38953895
38963896The index view is determined by two parts of the specifier: the layout
38973897part and the filter part. The layout part consists of the query
3898- parameters that begin with colons, and it determines the way that the
3899- properties of selected items are displayed. The filter part consists of
3900- all the other query parameters, and it determines the criteria by which
3901- items are selected for display. The filter part is interactively
3902- manipulated with the form widgets displayed in the filter section. The
3903- layout part is interactively manipulated by clicking on the column
3904- headings in the table.
3898+ parameters that begin with the '@' character, and it determines
3899+ the way that the properties of selected items are displayed. The
3900+ filter part consists of all the other query parameters, and it
3901+ determines the criteria by which items are selected for
3902+ display. The filter part is interactively manipulated with the
3903+ form widgets displayed in the filter section. The layout part is
3904+ interactively manipulated by clicking on the column headings in
3905+ the table.
39053906
39063907The filter part selects the union of the sets of items with values
39073908matching any specified Link properties and the intersection of the sets
3908- of items with values matching any specified Multilink properties.
3909+ of items with values matching any specified MultiLink properties.
39093910
39103911The example specifies an index of "issue" items. Only items with a
3911- "status" of either "unread" or "in-progress" or "resolved" are
3912+ "status" of either "unread", "in-progress" or "resolved" are
39123913displayed, and only items with "keyword" values including both "security"
39133914and "ui" are displayed. The items are grouped by priority arranged in
39143915ascending order and in descending order by status; and within
@@ -3963,7 +3964,7 @@ This is one of the class context views. The template used is typically
39633964- sets up additional filtering, as well as performing indexed text
39643965 searching
39653966- sets the ``@filter`` variable correctly
3966- - saves the query off if ``@query_name`` is set.
3967+ - saves the query to the user's query list if ``@query_name`` is set.
39673968
39683969The search page should lay out any fields that you wish to allow the
39693970user to search on. If your schema contains a large number of properties,
@@ -3983,7 +3984,7 @@ provide an additional argument:
39833984 Argument Description
39843985 ============ =============================================================
39853986 @query_name if supplied, the index parameters (including @search_text)
3986- will be saved off as a the query item and registered against
3987+ will be saved as a the query item and registered against
39873988 the user's queries property. Note that the *classic* template
39883989 schema has this ability, but the *minimal* template schema
39893990 does not.
@@ -4049,13 +4050,13 @@ template)::
40494050 <tr>
40504051 <th>Change Note</th>
40514052 <td colspan="3">
4052- <textarea name=": note" wrap="hard" rows="5" cols="60"></textarea>
4053+ <textarea name="@ note" wrap="hard" rows="5" cols="60"></textarea>
40534054 </td>
40544055 </tr>
40554056
40564057 <tr>
40574058 <th>File</th>
4058- <td colspan="3"><input type="file" name=": file" size="40"></td>
4059+ <td colspan="3"><input type="file" name="@ file" size="40"></td>
40594060 </tr>
40604061
40614062 <tr>
@@ -4069,7 +4070,7 @@ template)::
40694070
40704071When a change is submitted, the system automatically generates a message
40714072describing the changed properties. As shown in the example, the editor
4072- template can use the ": note" and ": file" fields, which are added to the
4073+ template can use the "@ note" and "@ file" fields, which are added to the
40734074standard changenote message generated by Roundup.
40744075
40754076
@@ -4080,9 +4081,9 @@ We have a number of ways to pull properties out of the form in order to
40804081meet the various needs of:
40814082
408240831. editing the current item (perhaps an issue item)
4083- 2. editing information related to the current item (eg . messages or
4084+ 2. editing information related to the current item (e.g . messages or
40844085 attached files)
4085- 3. creating new information to be linked to the current item (eg . time
4086+ 3. creating new information to be linked to the current item (e.g . time
40864087 spent on an issue)
40874088
40884089In the following, ``<bracketed>`` values are variable, ":" may be one of
@@ -4100,7 +4101,7 @@ Properties are specified as form variables:
41004101 property on the Nth new item of classname (generally for creating new
41014102 items to attach to the current item)
41024103
4103- Once we have determined the "propname", we check to see if it is one of
4104+ Once we have determined the "propname", check to see if it is one of
41044105the special form values:
41054106
41064107``@required``
@@ -4174,15 +4175,15 @@ templating through the "journal" method of the item*::
41744175Defining new web actions
41754176------------------------
41764177
4177- You may define new actions to be triggered by the ``@action`` form variable.
4178- These are added to the tracker ``extensions`` directory and registered
4178+ You may define new actions triggered by the ``@action`` form variable.
4179+ These defined in the tracker's ``extensions`` directory and registered
41794180using ``instance.registerAction``.
41804181
4181- All the existing Actions are defined in ``roundup.cgi.actions``.
4182+ All the pre- existing Actions are defined in ``roundup.cgi.actions``.
41824183
41834184Adding action classes takes three steps; first you `define the new
41844185action class`_, then you `register the action class`_ with the cgi
4185- interface so it may be triggered by the ``@action`` form variable.
4186+ interface so it can be triggered by the ``@action`` form variable.
41864187Finally you `use the new action`_ in your HTML form.
41874188
41884189See `setting up a "wizard" (or "druid") for controlled adding of
@@ -4253,15 +4254,17 @@ override the content type indicated to the user by calling ``setHeader``::
42534254 self.client.setHeader('Content-Type', 'text/csv')
42544255
42554256This example indicates that the value sent back to the user is actually
4256- comma-separated value content (eg. something to be loaded into a
4257+ comma-separated value content (i.e. something to load into a
42574258spreadsheet or database).
42584259
42594260
426042618-bit character set support in Web interface
42614262--------------------------------------------
42624263
4263- The web interface uses UTF-8 default. It may be overridden in both forms
4264- and a browser cookie.
4264+ The web interface uses UTF-8 default. It may be overridden in
4265+ both forms and a browser cookie. In general, the UTF-8 standard
4266+ should work with all modern browsers. You shouldn't have to
4267+ make any modifications from this section.
42654268
42664269- In forms, use the ``@charset`` variable.
42674270- To use the cookie override, have the ``roundup_charset`` cookie set.
@@ -4272,8 +4275,8 @@ In both cases, the value is a valid charset name (eg. ``utf-8`` or
42724275Inside Roundup, all strings are stored and processed in utf-8.
42734276Unfortunately, some older browsers do not work properly with
42744277utf-8-encoded pages (e.g. Netscape Navigator 4 displays wrong
4275- characters in form fields). This version allows one to change
4276- the character set for http transfers. To do so, you may add
4278+ characters in form fields). Roundup allows one to change
4279+ the character set for http transfers. To do so, you may add
42774280the following code to your ``page.html`` template::
42784281
42794282 <tal:block define="uri string:${request/base}${request/env/PATH_INFO}">
@@ -4296,9 +4299,6 @@ should be changed to include actual character set name::
42964299The charset is also sent in the http header.
42974300
42984301
4299-
4300-
4301-
43024302Debugging Trackers
43034303==================
43044304
0 commit comments