Index: openacs-4/packages/xowiki/tcl/includelet-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/includelet-procs.tcl,v
diff -u -r1.25 -r1.26
--- openacs-4/packages/xowiki/tcl/includelet-procs.tcl 14 Apr 2008 12:12:36 -0000 1.25
+++ openacs-4/packages/xowiki/tcl/includelet-procs.tcl 15 Apr 2008 09:12:44 -0000 1.26
@@ -2618,7 +2618,7 @@
::xowiki::IncludeletClass create form-usages \
-superclass ::xowiki::Includelet \
-parameter {
- {__decoration none}
+ {__decoration plain}
{parameter_declaration {
{-form_item_id:integer}
{-form}
@@ -2627,7 +2627,7 @@
{-publish_states "ready|life"}
{-field_names}
{-unless}
- {-csv false}
+ {-csv true}
}}
}
@@ -2826,15 +2826,29 @@
}
}
- if {$csv} {
- return [t1 write_csv]
+ my instvar name
+ set includelet_key ""
+ foreach var {name form_item_id form publish_states field_names unless} {
+ if {[info exists $var]} {append includelet_key $var : [set $var] ,}
}
+
+ set given_includelet_key [::xo::cc query_parameter includelet_key ""]
+ if {$given_includelet_key ne ""} {
+ if {$given_includelet_key eq $includelet_key} {
+ return [t1 write_csv]
+ } else {
+ return ""
+ }
+ }
set base [$package_id pretty_link [$form_item name]]
set label [$form_item name]
append html [_ xowiki.entries_using_form [list form "$label"]]
append html [t1 asHTML]
- append html "csv"
+ if {$csv} {
+ set csv_href "[::xo::cc url]?[::xo::cc actual_query]&includelet_key=[ns_urlencode $includelet_key]"
+ append html "csv"
+ }
return $html
}
}