[Zope3-checkins] CVS: Zope3/src/zope/app/browser -
absoluteurl.py:1.13
Sidnei da Silva
sidnei at x3ng.com.br
Thu Aug 28 19:40:55 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser
In directory cvs.zope.org:/tmp/cvs-serv26568/src/zope/app/browser
Modified Files:
absoluteurl.py
Log Message:
Protect publishTraverse as well, so it's actually possible to traverse from the add/edit view. Moved 'extra' for the vocabulary widget from the outer div to the inner <select>, so you can actually use stuff like 'onchange='somefunction()''. It was not really useful otherwise.
=== Zope3/src/zope/app/browser/absoluteurl.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/browser/absoluteurl.py:1.12 Fri Aug 8 14:07:06 2003
+++ Zope3/src/zope/app/browser/absoluteurl.py Thu Aug 28 18:40:24 2003
@@ -48,7 +48,7 @@
name = dict['name']
except KeyError:
raise TypeError, _insufficientContext
-
+
if name:
url += '/'+name
@@ -75,7 +75,7 @@
name = dict['name']
except KeyError:
raise TypeError, _insufficientContext
-
+
if name:
base += ({'name': name,
'url': ("%s/%s" % (base[-1]['url'], name))
@@ -99,7 +99,7 @@
name = dict.get('name')
if name:
url += '/'+name
-
+
return url
__call__ = __str__
@@ -123,5 +123,5 @@
'url': ("%s/%s" % (base[-1]['url'], name))
}, )
-
+
return base
More information about the Zope3-Checkins
mailing list