diff doc/customizing.txt @ 6977:ff2c8b430738

flake8 - remove re.compile from method arg + test + doc changed 2 methods defined like: def method(..., dre=re.compile(r'...')): moved re.compile to module variables and passed the var name def method(..., dre=var_name): while doing this I found out that a url of .../issue0001 will behave like .../issue1. Who knew. Documented in customizing. Tested same in test_liveserver. Added msg1 as well so I could verify msg0001 worked. Also added some range tests as well.
author John Rouillard <rouilj@ieee.org>
date Wed, 14 Sep 2022 17:48:51 -0400
parents 234fefd7568a
children ca90f7270cd4 570abc4c6548
line wrap: on
line diff
--- a/doc/customizing.txt	Wed Sep 14 16:06:29 2022 -0400
+++ b/doc/customizing.txt	Wed Sep 14 17:48:51 2022 -0400
@@ -2232,6 +2232,12 @@
 
 8. ``/issue1``
 
+.. _strip_zeros:
+
+Note that a leading string of 0's will be stripped from the id part of
+the object designator in the URL. E.G. ``/issue001`` is the same as
+``/issue1``.  Similarly for ``/file01`` etc. However you should
+generate URL's without the extra zeros.
 
 Determining web context
 -----------------------
@@ -2262,6 +2268,7 @@
    identifies the tracker class to display.
 d. if the path is an item designator (as in examples 2 and 4, "issue1"
    and "file1"), then we're to display a specific item.
+   :ref:`Note. <strip_zeros>`
 e. if the path starts with an item designator and is longer than one
    entry (as in example 5, "file1/kitten.png"), then we're assumed to be
    handling an item of a ``FileClass``, and the extra path information

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