[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Publisher/Browser - IconDirective.py:1.4

Godefroid Chapelle gotcha@swing.be
Tue, 10 Dec 2002 16:41:26 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Publisher/Browser
In directory cvs.zope.org:/tmp/cvs-serv18996

Modified Files:
	IconDirective.py 
Log Message:
added url method to IconView


=== Zope3/lib/python/Zope/App/Publisher/Browser/IconDirective.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/Publisher/Browser/IconDirective.py:1.3	Tue Nov 19 18:25:13 2002
+++ Zope3/lib/python/Zope/App/Publisher/Browser/IconDirective.py	Tue Dec 10 16:41:25 2002
@@ -41,7 +41,12 @@
         src = resource()
         
         return ('<img src="%s" alt="%s" width="16" height="16" border="0" />'
-                % (src, self.alt))
+                % (src, self.alt))
+
+    def url(self):
+        resource = getResource(self.context, self.rname, self.request)
+        src = resource()
+        return src
 
 class IconViewFactory: