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
d1acdb6e
Commit
d1acdb6e
authored
May 24, 1999
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix absolute_url URL quoting so that it doesn't URL quote the "http://" part of the URL.
parent
eafa99f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+4
-4
No files found.
lib/python/OFS/SimpleItem.py
View file @
d1acdb6e
...
...
@@ -89,8 +89,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.5
3 1999/05/24 16:55:38 brian
Exp $'''
__version__
=
'$Revision: 1.5
3
$'
[
11
:
-
2
]
$Id: SimpleItem.py,v 1.5
4 1999/05/24 21:18:50 amos
Exp $'''
__version__
=
'$Revision: 1.5
4
$'
[
11
:
-
2
]
import
regex
,
sys
,
Globals
,
App
.
Management
,
Acquisition
from
webdav.Resource
import
Resource
...
...
@@ -299,11 +299,11 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
url
=
[]
while
hasattr
(
obj
,
'aq_parent'
)
and
hasattr
(
obj
.
aq_parent
,
'id'
):
id
=
callable
(
obj
.
id
)
and
obj
.
id
()
or
str
(
obj
.
id
)
url
.
append
(
id
)
url
.
append
(
quote
(
id
)
)
obj
=
obj
.
aq_parent
if
not
relative
:
url
.
append
(
self
.
aq_acquire
(
'REQUEST'
).
script
)
url
.
reverse
()
return
quote
(
join
(
url
,
'/'
)
)
return
join
(
url
,
'/'
)
def
__len__
(
self
):
return
1
...
...
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