Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 2829:aa1cb9df09c3
ignore leading zeroes in the ID part of a node designator
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Mon, 25 Oct 2004 10:43:20 +0000 |
| parents | 18c28d22b3b5 |
| children | 9ab32261216b |
line wrap: on
line diff
--- a/roundup/cgi/client.py Mon Oct 25 10:20:58 2004 +0000 +++ b/roundup/cgi/client.py Mon Oct 25 10:43:20 2004 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.191 2004-10-23 14:05:25 a1s Exp $ +# $Id: client.py,v 1.192 2004-10-25 10:43:20 a1s Exp $ """WWW request handler (also used in the stand-alone server). """ @@ -409,7 +409,7 @@ # reopen the database as the correct user self.opendb(self.user) - def determine_context(self, dre=re.compile(r'([^\d]+)(\d+)')): + def determine_context(self, dre=re.compile(r'([^\d]+)0*(\d+)')): """Determine the context of this page from the URL: The URL path after the instance identifier is examined. The path
