[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication - ZopePublication.py:1.1.2.38
Steve Alexander
steve@cat-box.net
Tue, 7 May 2002 04:21:12 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication
In directory cvs.zope.org:/tmp/cvs-serv32492/Zope/App/ZopePublication
Modified Files:
Tag: Zope-3x-branch
ZopePublication.py
Log Message:
use nice string.startswith rather than nasty string[:22]==
=== Zope3/lib/python/Zope/App/ZopePublication/ZopePublication.py 1.1.2.37 => 1.1.2.38 ===
if stack:
name = stack[-1]
- if name[:22] == 'ApplicationController;':
+ if name.startswith('ApplicationController;'):
parms = name.split(';')
if 'etc' in parms or 'ns=etc' in parms:
stack.pop() # consume the name