Index: openacs.org-dev/www/bboard-migr/cat-migr.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs.org-dev/www/bboard-migr/cat-migr.tcl,v
diff -u -r1.1 -r1.2
--- openacs.org-dev/www/bboard-migr/cat-migr.tcl 10 Jul 2002 19:29:04 -0000 1.1
+++ openacs.org-dev/www/bboard-migr/cat-migr.tcl 30 Jul 2002 21:00:12 -0000 1.2
@@ -1,7 +1,7 @@
#hardcode if you're not in the correct package instance...
#set package_id [ad_conn package_id]
-set package_id 3189
+set package_id 3061
#hardcode regexp for link replacement
#... later
Index: openacs.org-dev/www/bboard-migr/msg-migr.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs.org-dev/www/bboard-migr/msg-migr.tcl,v
diff -u -r1.5 -r1.6
--- openacs.org-dev/www/bboard-migr/msg-migr.tcl 22 Jul 2002 20:08:54 -0000 1.5
+++ openacs.org-dev/www/bboard-migr/msg-migr.tcl 30 Jul 2002 21:00:12 -0000 1.6
@@ -5,7 +5,7 @@
set bboard_package "forums"
#set package_id [ad_conn package_id]
-set package_id 12679
+set package_id 3061
set olddb [ns_db gethandle acs32]
Index: openacs.org-dev/www/bboard-migr/subs-forum-migr.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs.org-dev/www/bboard-migr/subs-forum-migr.tcl,v
diff -u -r1.2 -r1.3
--- openacs.org-dev/www/bboard-migr/subs-forum-migr.tcl 29 Jul 2002 09:03:13 -0000 1.2
+++ openacs.org-dev/www/bboard-migr/subs-forum-migr.tcl 30 Jul 2002 21:00:12 -0000 1.3
@@ -41,6 +41,8 @@
(forum_id, subscriber_id) values
(:new_forum_id, :new_user_id)"
+ set id_description "forum-user"
+
} else {
# assume it's the new "forums" package
@@ -54,22 +56,23 @@
and user_id = :new_user_id
and object_id = :new_forum_id
"
+
+ set id_description "request_id"
}
set nil [set new [list]]
set output ""
- while { [ns_db getrow $olddb $selection] } {
- set_variables_after_query
+while { [ns_db getrow $olddb $selection] } {
+ set_variables_after_query
-db_transaction {
+ db_transaction {
#also lookup forum and user mapping
db_1row q $forum_mapping_sql
db_1row q $user_mapping_sql
incr n_tried_old
-
if [db_0or1row r $mapped_subs_sql] {
##already mapped, sets new_map_id
set new_id $new_map_id
@@ -84,18 +87,20 @@
if {[string equal $frequency "Monday/Thursday"]} {
set frequency "every other day"
}
- set interval_id [notification::get_interval_id $frequency]
+ set interval_id [notification::get_interval_id \
+ -name $frequency]
set request_id [notification::request::new -type_id $type_id \
- -user_id :new_user_id -object_id :new_forum_id \
- -interval_id $interval_id \
+ -user_id $new_user_id -object_id $new_forum_id \
+ -interval_id $interval_id \
-delivery_method_id $delivery_method_id -format "text"]
+
}
set new_id "$new_forum_id-$new_user_id"
set action "new"
}
set html "
- forum-user: $new_id
+ $id_description: $new_id
"
lappend $action $html
@@ -112,7 +117,7 @@
[join $nil]
+[join $nil]
[join $new]