Index: openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl,v diff -u -r1.283 -r1.284 --- openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 12 Jul 2010 15:13:19 -0000 1.283 +++ openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 14 Jul 2010 09:17:19 -0000 1.284 @@ -421,7 +421,6 @@ # # externally callable method: download # - File instproc download {} { my instvar mime_type package_id $package_id set mime_type $mime_type @@ -438,6 +437,22 @@ } # + # We handle delegation to target for most methods in + # Package->invoke. Otherwise, we would have to implement several + # forwarder methods like the following: + # + +# FormPage instproc download {} { +# # If there is a link to a file, it can be downloaded as well +# set target [my get_target_from_link_page] +# if {$target ne "" && [$target istype ::xowiki::File]} { +# $target download +# } else { +# [my package_id] error_msg "Method 'download' not implemented for this kind of object" +# } +# } + + # # helper methods for externally callable method: edit #