[Zope-CVS] CVS: Products/ExternalEditor - ExternalEditor.py:1.27.2.2
Zachery Bir
zbir at urbanape.com
Tue Aug 23 10:25:33 EDT 2005
Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv11134
Modified Files:
Tag: ExternalEditor-zbir-extra-methods-branch
ExternalEditor.py
Log Message:
Better generation of the URL to use for the external edit link
=== Products/ExternalEditor/ExternalEditor.py 1.27.2.1 => 1.27.2.2 ===
--- Products/ExternalEditor/ExternalEditor.py:1.27.2.1 Wed Aug 17 16:40:49 2005
+++ Products/ExternalEditor/ExternalEditor.py Tue Aug 23 10:25:32 2005
@@ -204,9 +204,9 @@
if borrow_lock:
query['borrow_lock'] = 1
- return "%s/externalEdit_/%s%s%s" % (object.aq_parent.absolute_url(),
- urllib.quote(object.getId()),
- ext, querystr(query))
+ path = object.absolute_url().split('/')
+ path.insert(-1, 'externalEdit_')
+ return "%s%s%s" % ('/'.join(path), ext, querystr(query))
return ''
def EditLink(self, object, borrow_lock=0):
More information about the Zope-CVS
mailing list