[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/Browser - browser.zcml:1.1.2.1 AttributePublisher.py:1.1.2.11 BrowserRequest.py:1.1.4.3 metaConfigure.py:1.1.2.14
Stephan Richter
srichter@cbu.edu
Wed, 27 Mar 2002 09:50:02 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/Browser
In directory cvs.zope.org:/tmp/cvs-serv16355/Browser
Modified Files:
Tag: Zope-3x-branch
AttributePublisher.py BrowserRequest.py metaConfigure.py
Added Files:
Tag: Zope-3x-branch
browser.zcml
Log Message:
- Added XML-RPC support
- tweaked refactoring a little tp better support other HTTP sub-protocols
- Worked on security
=== Added File Zope3/lib/python/Zope/Publisher/Browser/browser.zcml ===
<zopeConfigure
xmlns='http://namespaces.zope.org/zope'
xmlns:security='http://namespaces.zope.org/security'
>
<security:protectClass name=".BrowserRequest."
permission_id="Zope.View" />
</zopeConfigure>
=== Zope3/lib/python/Zope/Publisher/Browser/AttributePublisher.py 1.1.2.10 => 1.1.2.11 ===
def browserDefault(self, request):
'''See interface IBrowserPublisher'''
+
return self, ("index.html",)
=== Zope3/lib/python/Zope/Publisher/Browser/BrowserRequest.py 1.1.4.2 => 1.1.4.3 ===
# We need to check for default documents
publication = self.getPublication()
-
+
nsteps = 0
ob, add_steps = publication.getDefaultTraversal(self, ob)
while add_steps:
@@ -441,7 +441,6 @@
if nsteps > self._endswithslash:
base_needed = 1
redirect = self.use_redirect
-
if base_needed:
url = self.getURL()
=== Zope3/lib/python/Zope/Publisher/Browser/metaConfigure.py 1.1.2.13 => 1.1.2.14 ===
if for_ is not None:
for_ = _context.resolve(for_)
- factory = map(_context.resolve, factory.split(' '))
+ factory = map(_context.resolve, factory.split())
return [
Action(
@@ -32,7 +32,7 @@
def view(_context, name, factory, for_=None, layer=''):
if for_ is not None:
for_ = _context.resolve(for_)
- factory = map(_context.resolve, factory.split(' '))
+ factory = map(_context.resolve, factory.split())
return [
Action(