select sn1.object_id
Index: openacs-4/packages/dotlrn-bm/tcl/dotlrn-bm-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-bm/tcl/dotlrn-bm-procs.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn-bm/tcl/dotlrn-bm-procs.tcl 24 May 2002 01:58:45 -0000 1.3
+++ openacs-4/packages/dotlrn-bm/tcl/dotlrn-bm-procs.tcl 22 Jun 2002 20:11:03 -0000 1.4
@@ -186,7 +186,7 @@
} {
returns the URL for the dotlrn-bm package
} {
- return [site_nodes::get_url_from_package_id -package_id [get_package_id]]
+ return [site_node::get_url_from_object_id -object_id [get_package_id]]
}
}
Index: openacs-4/packages/dotlrn-bm/www/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-bm/www/Attic/index.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn-bm/www/index.tcl 16 May 2002 04:34:51 -0000 1.1
+++ openacs-4/packages/dotlrn-bm/www/index.tcl 22 Jun 2002 20:11:03 -0000 1.2
@@ -22,7 +22,7 @@
set table_def {
{send_date {Send Date} {bulk_mail_messages.send_date $order} {[util_AnsiDatetoPrettyDate $send_date] | }}
{from_addr From {bulk_mail_messages.from_addr $order} {$from_addr | }}
- {subject Subject {bulk_mail_messages.subject $order} {$subject | }}
+ {subject Subject {bulk_mail_messages.subject $order} {$subject | }}
{sent_p {Sent?} {bulk_mail_messages.sent_p $order} {[ad_decode $sent_p t Yes No] | }}
}
Index: openacs-4/packages/dotlrn-calendar/tcl/dotlrn-calendar-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-calendar/tcl/dotlrn-calendar-procs.tcl,v
diff -u -r1.59 -r1.60
--- openacs-4/packages/dotlrn-calendar/tcl/dotlrn-calendar-procs.tcl 21 Jun 2002 21:06:19 -0000 1.59
+++ openacs-4/packages/dotlrn-calendar/tcl/dotlrn-calendar-procs.tcl 22 Jun 2002 20:11:03 -0000 1.60
@@ -123,9 +123,9 @@
# ** setup stuff **
#
# automount calendar in this community
- set node_id [site_nodes::get_node_id_from_url \
- -url [dotlrn_community::get_url_from_package_id \
- -package_id [dotlrn_community::get_package_id $community_id]]]
+ set node_id [site_node::get_node_id \
+ -url [site_node::get_url_from_object_id -object_id [dotlrn_community::get_package_id $community_id]] \
+ ]
set package_id [dotlrn::mount_package \
-parent_node_id $node_id \
Index: openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl,v
diff -u -r1.68 -r1.69
--- openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl 21 Jun 2002 21:06:19 -0000 1.68
+++ openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl 22 Jun 2002 20:11:03 -0000 1.69
@@ -59,10 +59,13 @@
Used for one-time init - must be repeatable!
} {
if {![dotlrn::is_package_mounted -package_key [package_key]]} {
+
set package_id [dotlrn::mount_package \
- -package_key [package_key] \
-url [package_key] \
- -directory_p t]
+ -package_key [package_key] \
+ -pretty_name "User Folders" \
+ -directory_p t \
+ ]
# create the root folder for this instance
set folder_id [fs::new_root_folder \
@@ -71,9 +74,8 @@
-description "User Folders" \
]
- site_node_object_map::new \
- -object_id $folder_id \
- -node_id [site_nodes::get_node_id_from_package_id -package_id $package_id]
+ set node_id [site_node::get_node_id_from_object_id -object_id $package_id]
+ site_node_object_map::new -object_id $folder_id -node_id $node_id
set party_id [acs_magic_object registered_users]
permission::grant -party_id $party_id -object_id $folder_id -privilege read
@@ -115,7 +117,7 @@
-description "${community_name}'s Files" \
]
- set node_id [site_nodes::get_node_id_from_package_id -package_id $package_id]
+ set node_id [site_node::get_node_id_from_object_id -object_id $package_id]
site_node_object_map::new -object_id $folder_id -node_id $node_id
set party_id [acs_magic_object registered_users]
@@ -252,7 +254,7 @@
-parent_id $root_folder_id \
]
- set node_id [site_nodes::get_node_id_from_package_id -package_id $package_id]
+ set node_id [site_node::get_node_id_from_object_id -object_id $package_id]
if {[empty_string_p $user_root_folder_id]} {
@@ -469,7 +471,7 @@
-description "${community_name}'s Files" \
]
- set node_id [site_nodes::get_node_id_from_package_id -package_id $package_id]
+ set node_id [site_node::get_node_id_from_object_id -object_id $package_id]
site_node_object_map::new -object_id $folder_id -node_id $node_id
set party_id [acs_magic_object registered_users]
@@ -681,7 +683,7 @@
} {
returns the URL for the dotlrn-fs package
} {
- return [site_nodes::get_url_from_package_id -package_id [get_package_id]]
+ return [site_node::get_url_from_object_id -object_id [get_package_id]]
}
ad_proc -private get_public_folder_id {
Index: openacs-4/packages/faq-portlet/www/faq-admin-portlet.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/faq-portlet/www/faq-admin-portlet.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/faq-portlet/www/faq-admin-portlet.tcl 29 Mar 2002 19:25:19 -0000 1.2
+++ openacs-4/packages/faq-portlet/www/faq-admin-portlet.tcl 22 Jun 2002 20:11:03 -0000 1.3
@@ -36,11 +36,15 @@
set package_id [lindex $list_of_package_ids 0]
-db_multirow faqs select_faqs "select f.faq_id,
-f.faq_name from
-faqs f, acs_objects o
-where faq_id= object_id and context_id = :package_id"
+db_multirow faqs select_faqs {
+ select f.faq_id,
+ f.faq_name
+ from faqs f,
+ acs_objects o
+ where f.faq_id = o.object_id
+ and o.context_id = :package_id
+}
-set url [dotlrn_community::get_url_from_package_id -package_id $package_id]
+set url [site_node::get_url_from_object_id -object_id $package_id]
ad_return_template
Index: openacs-4/packages/forums-portlet/www/forums-admin-portlet.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/forums-portlet/www/forums-admin-portlet.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/forums-portlet/www/forums-admin-portlet.tcl 5 Jun 2002 19:14:19 -0000 1.2
+++ openacs-4/packages/forums-portlet/www/forums-admin-portlet.tcl 22 Jun 2002 20:11:03 -0000 1.3
@@ -40,7 +40,7 @@
where package_id = :package_id
}
-set url [dotlrn_community::get_url_from_package_id -package_id $package_id]
+set url [site_node::get_url_from_object_id -object_id $package_id]
set package_id [ad_conn package_id]
set default_name [db_string select_package_name {
Index: openacs-4/packages/news-portlet/www/news-admin-portlet.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/news-portlet/www/news-admin-portlet.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/news-portlet/www/news-admin-portlet.tcl 12 May 2002 18:15:04 -0000 1.4
+++ openacs-4/packages/news-portlet/www/news-admin-portlet.tcl 22 Jun 2002 20:11:03 -0000 1.5
@@ -36,6 +36,6 @@
set package_id [lindex $list_of_package_ids 0]
-set url [dotlrn_community::get_url_from_package_id -package_id $package_id]
+set url [site_node::get_url_from_object_id -object_id $package_id]
ad_return_template