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
b3248fba
Commit
b3248fba
authored
Jun 17, 2010
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- TraversalError is now LocationError
- import cleanup
parent
4529cae0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
src/OFS/Traversable.py
src/OFS/Traversable.py
+3
-3
src/ZPublisher/BaseRequest.py
src/ZPublisher/BaseRequest.py
+10
-6
No files found.
src/OFS/Traversable.py
View file @
b3248fba
...
...
@@ -35,7 +35,7 @@ from ZODB.POSException import ConflictError
from
zope.interface
import
implements
from
zope.interface
import
Interface
from
zope.component
import
queryMultiAdapter
from
zope.
traversing.interfaces
import
Traversal
Error
from
zope.
location.interfaces
import
Location
Error
from
zope.traversing.namespace
import
namespaceLookup
from
zope.traversing.namespace
import
nsParse
...
...
@@ -204,7 +204,7 @@ class Traversable:
if
restricted
and
not
validate
(
obj
,
obj
,
name
,
next
):
raise
Unauthorized
(
name
)
except
Traversal
Error
:
except
Location
Error
:
raise
AttributeError
(
name
)
elif
bobo_traverse
is
not
None
:
...
...
src/ZPublisher/BaseRequest.py
View file @
b3248fba
...
...
@@ -14,22 +14,26 @@
$Id$
"""
from
urllib
import
quote
as
urllib_quote
import
xmlrpc
from
zExceptions
import
Forbidden
,
NotFound
from
Acquisition
import
aq_base
from
Acquisition.interfaces
import
IAcquirer
from
z
ope.interface
import
implements
,
Interface
from
zExceptions
import
Forbidden
from
z
Exceptions
import
NotFound
from
zope.component
import
queryMultiAdapter
from
zope.event
import
notify
from
zope.interface
import
implements
from
zope.interface
import
Interface
from
zope.location.interfaces
import
LocationError
from
zope.publisher.defaultview
import
queryDefaultViewName
from
zope.publisher.interfaces
import
EndRequestEvent
from
zope.publisher.interfaces
import
IPublishTraverse
from
zope.publisher.interfaces
import
NotFound
as
ztkNotFound
from
zope.publisher.interfaces.browser
import
IBrowserPublisher
from
zope.traversing.
interfaces
import
TraversalError
from
zope.traversing.namespace
import
nsParse
,
namespaceLookup
from
zope.traversing.
namespace
import
namespaceLookup
from
zope.traversing.namespace
import
nsParse
UNSPECIFIED_ROLES
=
''
...
...
@@ -319,7 +323,7 @@ class BaseRequest:
if
ns
:
try
:
ob2
=
namespaceLookup
(
ns
,
nm
,
ob
,
self
)
except
Traversal
Error
:
except
Location
Error
:
raise
ztkNotFound
(
ob
,
name
)
if
IAcquirer
.
providedBy
(
ob2
):
...
...
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