comparison 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
comparison
equal deleted inserted replaced
2828:3a2f138fcb28 2829:aa1cb9df09c3
1 # $Id: client.py,v 1.191 2004-10-23 14:05:25 a1s Exp $ 1 # $Id: client.py,v 1.192 2004-10-25 10:43:20 a1s Exp $
2 2
3 """WWW request handler (also used in the stand-alone server). 3 """WWW request handler (also used in the stand-alone server).
4 """ 4 """
5 __docformat__ = 'restructuredtext' 5 __docformat__ = 'restructuredtext'
6 6
407 self.user = user 407 self.user = user
408 408
409 # reopen the database as the correct user 409 # reopen the database as the correct user
410 self.opendb(self.user) 410 self.opendb(self.user)
411 411
412 def determine_context(self, dre=re.compile(r'([^\d]+)(\d+)')): 412 def determine_context(self, dre=re.compile(r'([^\d]+)0*(\d+)')):
413 """Determine the context of this page from the URL: 413 """Determine the context of this page from the URL:
414 414
415 The URL path after the instance identifier is examined. The path 415 The URL path after the instance identifier is examined. The path
416 is generally only one entry long. 416 is generally only one entry long.
417 417

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