Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
53edfbd0
Commit
53edfbd0
authored
Jul 16, 2002
by
Casey Duncan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed browser_default to __browser_default__ to remove it from the TTW namespace.
parent
fff34bfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
lib/python/ZPublisher/BaseRequest.py
lib/python/ZPublisher/BaseRequest.py
+6
-7
No files found.
lib/python/ZPublisher/BaseRequest.py
View file @
53edfbd0
...
...
@@ -10,7 +10,7 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
__version__
=
'$Revision: 1.4
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
8
$'
[
11
:
-
2
]
from
urllib
import
quote
...
...
@@ -200,7 +200,7 @@ class BaseRequest:
# Probably a browser
no_acquire_flag
=
0
# index_html is still the default method, only any object can
# override it by implementing its own
browser_default
method
# override it by implementing its own
__browser_default__
method
method
=
'index_html'
elif
self
.
maybe_webdav_client
:
# Probably a WebDAV client.
...
...
@@ -252,16 +252,15 @@ class BaseRequest:
# Check for method:
if
path
:
entry_name
=
path
.
pop
()
elif
hasattr
(
getattr
(
object
,
'aq_base'
,
object
),
'browser_default'
):
elif
hasattr
(
object
,
'__browser_default__'
):
# If we have reached the end of the path. We look to see
# if the object implements
browser_default
. If so, we
# if the object implements
__browser_default__
. If so, we
# call it to let the object tell us how to publish it
#
browser_default
returns the object to be published
#
__browser_default__
returns the object to be published
# (usually self) and a sequence of names to traverse to
# find the method to be published. (Casey)
request
.
_hacked_path
=
1
object
,
default_path
=
object
.
browser_default
(
request
)
object
,
default_path
=
object
.
__browser_default__
(
request
)
if
len
(
default_path
)
>
1
:
path
=
list
(
default_path
)
method
=
path
.
pop
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment