Index: openacs.org-dev/packages/cms/www/modules/templates/properties.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs.org-dev/packages/cms/www/modules/templates/properties.tcl,v
diff -u -r1.1.1.1 -r1.1.1.2
--- openacs.org-dev/packages/cms/www/modules/templates/properties.tcl 9 Jul 2002 17:35:04 -0000 1.1.1.1
+++ openacs.org-dev/packages/cms/www/modules/templates/properties.tcl 8 Oct 2002 15:47:03 -0000 1.1.1.2
@@ -6,32 +6,26 @@
if { ! [string equal $path {}] } {
- template::query get_id id onevalue "
- select
- content_item.get_id(:path, content_template.get_root_folder)
- from dual"
+ set id [db_string get_id ""]
- if { [string equal $id {}] } {
+ if { [string equal $id {}] } {
- set msg "The requested folder $path does not exist."
- request error invalid_path $msg
- }
+ set msg "The requested folder $path does not exist."
+ request error invalid_path $msg
+ }
} else {
if { [string equal $id {}] } {
- template::query get_root_id onevalue "
- select content_template.get_root_folder from dual"
+ set id [db_string get_root_id ""]
}
- template::query get_path path onevalue "
- select content_item.get_path(:id) from dual"
+ set path [db_string get_path ""]
}
# query for the content type and redirect if a folder
-template::query get_type type onevalue "
- select content_type from cr_items where item_id = :id"
+set type [db_string get_type ""]
if { [string equal $type content_folder] } {
template::forward index?id=$id