[Zope-CVS] CVS: Products/ExternalEditor - ExternalEditor.py:1.19
Casey Duncan
casey@zope.com
Tue, 20 Aug 2002 13:51:00 -0400
Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv20417
Modified Files:
ExternalEditor.py
Log Message:
Added url quoting to link generator
=== Products/ExternalEditor/ExternalEditor.py 1.18 => 1.19 ===
--- Products/ExternalEditor/ExternalEditor.py:1.18 Tue Aug 20 00:48:43 2002
+++ Products/ExternalEditor/ExternalEditor.py Tue Aug 20 13:50:59 2002
@@ -17,6 +17,7 @@
# Zope External Editor Product by Casey Duncan
from string import join # For Zope 2.3 compatibility
+import urllib
import Acquisition
from Globals import InitializeClass
from AccessControl.SecurityManagement import getSecurityManager
@@ -42,6 +43,7 @@
def __before_publishing_traverse__(self, self2, request):
path = request['TraversalRequestNameStack']
target = path[-1]
+ print `request['TraversalRequestNameStack']`
request.set('target', target)
path[:] = []
@@ -144,7 +146,7 @@
'<img src="%s/misc_/ExternalEditor/edit_icon" '
'align="middle" hspace="2" border="0" alt="External Editor" />'
'</a>' % (object.aq_parent.absolute_url(),
- object.getId(),
+ urllib.quote(object.getId()),
object.REQUEST.BASEPATH1)
)
else: