Not a User
-Visit @admin_pretty_name@.
+
+Visit @admin_pretty_name@.
+
+
+
Thank you. Your registration request has been sent to the System Administrator.
Index: openacs-4/packages/dotlrn-bm/sql/oracle/dotlrn-bm-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-bm/sql/oracle/dotlrn-bm-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn-bm/sql/oracle/dotlrn-bm-create.sql 15 May 2002 22:12:16 -0000 1.1
+++ openacs-4/packages/dotlrn-bm/sql/oracle/dotlrn-bm-create.sql 31 Jul 2002 21:18:32 -0000 1.2
@@ -128,6 +128,14 @@
impl_pl => 'TCL'
);
+ foo := acs_sc_impl.new_alias(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_bm',
+ impl_operation_name => 'ChangeEventHandler',
+ impl_alias => 'dotlrn_bm::change_event_handler',
+ impl_pl => 'TCL'
+ );
+
acs_sc_binding.new(
contract_name => 'dotlrn_applet',
impl_name => 'dotlrn_bm'
Index: openacs-4/packages/dotlrn-bm/sql/postgresql/dotlrn-bm-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-bm/sql/postgresql/dotlrn-bm-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn-bm/sql/postgresql/dotlrn-bm-create.sql 15 Jul 2002 20:43:41 -0000 1.1
+++ openacs-4/packages/dotlrn-bm/sql/postgresql/dotlrn-bm-create.sql 31 Jul 2002 21:18:32 -0000 1.2
@@ -128,10 +128,15 @@
'TCL'
);
+select acs_sc_impl_alias__new(
+ 'dotlrn_applet',
+ 'dotlrn_bm',
+ 'ChangeEventHandler',
+ 'dotlrn_bm::change_event_handler',
+ 'TCL'
+);
+
select acs_sc_binding__new(
'dotlrn_applet', --contract name
'dotlrn_bm' --impl name
);
-
-
-
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.7 -r1.8
--- openacs-4/packages/dotlrn-bm/tcl/dotlrn-bm-procs.tcl 13 Jul 2002 03:05:24 -0000 1.7
+++ openacs-4/packages/dotlrn-bm/tcl/dotlrn-bm-procs.tcl 31 Jul 2002 21:18:32 -0000 1.8
@@ -173,6 +173,16 @@
add_applet_to_community $new_community_id
}
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ listens for the following events:
+ } {
+ }
+
ad_proc -public get_package_id {
} {
returns the package_id of the dotlrn-bm package
Index: openacs-4/packages/dotlrn-calendar/sql/oracle/dotlrn-calendar-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-calendar/sql/oracle/dotlrn-calendar-create.sql,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/dotlrn-calendar/sql/oracle/dotlrn-calendar-create.sql 10 May 2002 06:35:14 -0000 1.6
+++ openacs-4/packages/dotlrn-calendar/sql/oracle/dotlrn-calendar-create.sql 31 Jul 2002 21:18:32 -0000 1.7
@@ -140,6 +140,14 @@
impl_pl => 'TCL'
);
+ foo := acs_sc_impl.new_alias (
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_calendar',
+ impl_operation_name => 'ChangeEventHandler',
+ impl_alias => 'dotlrn_calendar::change_event_handler',
+ impl_pl => 'TCL'
+ );
+
-- Add the binding
acs_sc_binding.new (
contract_name => 'dotlrn_applet',
Index: openacs-4/packages/dotlrn-calendar/sql/postgresql/dotlrn-calendar-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-calendar/sql/postgresql/dotlrn-calendar-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn-calendar/sql/postgresql/dotlrn-calendar-create.sql 9 Jul 2002 18:53:27 -0000 1.1
+++ openacs-4/packages/dotlrn-calendar/sql/postgresql/dotlrn-calendar-create.sql 31 Jul 2002 21:18:32 -0000 1.2
@@ -144,6 +144,14 @@
''TCL''
);
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_calendar'',
+ ''ChangeEventHandler'',
+ ''dotlrn_calendar::change_event_handler'',
+ ''TCL''
+ );
+
-- Add the binding
perform acs_sc_binding__new (
''dotlrn_applet'',
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.62 -r1.63
--- openacs-4/packages/dotlrn-calendar/tcl/dotlrn-calendar-procs.tcl 13 Jul 2002 00:13:09 -0000 1.62
+++ openacs-4/packages/dotlrn-calendar/tcl/dotlrn-calendar-procs.tcl 31 Jul 2002 21:18:32 -0000 1.63
@@ -432,6 +432,31 @@
db_dml copy_cal_item_types {}
}
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ listens for the following events: rename
+ } {
+ switch $event {
+ rename {
+ handle_rename -community_id $community_id -old_value $old_value -new_value $new_value
+ }
+ }
+ }
+
+ ad_proc -private handle_rename {
+ {-community_id:required}
+ {-old_value:required}
+ {-new_value:required}
+ } {
+ what to do in calendar when a dotlrn community is renamed
+ } {
+ calendar::rename -calendar_id [get_group_calendar_id -community_id $community_id] -name $new_value
+ }
+
#
# Some dotlrn_calendar specific procs
#
Index: openacs-4/packages/dotlrn-dotlrn/sql/oracle/dotlrn-dotlrn-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-dotlrn/sql/oracle/dotlrn-dotlrn-create.sql,v
diff -u -r1.9 -r1.10
--- openacs-4/packages/dotlrn-dotlrn/sql/oracle/dotlrn-dotlrn-create.sql 24 May 2002 01:58:46 -0000 1.9
+++ openacs-4/packages/dotlrn-dotlrn/sql/oracle/dotlrn-dotlrn-create.sql 31 Jul 2002 21:18:32 -0000 1.10
@@ -147,6 +147,15 @@
impl_alias => 'dotlrn_dotlrn::clone',
impl_pl => 'TCL'
);
+
+ foo := acs_sc_impl.new_alias (
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_dotlrn',
+ impl_operation_name => 'ChangeEventHandler',
+ impl_alias => 'dotlrn_dotlrn::change_event_handler',
+ impl_pl => 'TCL'
+ );
+
-- Add the binding
acs_sc_binding.new (
contract_name => 'dotlrn_applet',
Index: openacs-4/packages/dotlrn-dotlrn/sql/oracle/dotlrn-members-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-dotlrn/sql/oracle/dotlrn-members-create.sql,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/dotlrn-dotlrn/sql/oracle/dotlrn-members-create.sql 10 May 2002 06:35:14 -0000 1.4
+++ openacs-4/packages/dotlrn-dotlrn/sql/oracle/dotlrn-members-create.sql 31 Jul 2002 21:18:32 -0000 1.5
@@ -147,6 +147,14 @@
impl_pl => 'TCL'
);
+ foo := acs_sc_impl.new_alias (
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_members',
+ impl_operation_name => 'ChangeEventHandler',
+ impl_alias => 'dotlrn_members::change_event_handler',
+ impl_pl => 'TCL'
+ );
+
-- Add the binding
acs_sc_binding.new (
contract_name => 'dotlrn_applet',
Index: openacs-4/packages/dotlrn-dotlrn/sql/oracle/dotlrn-members-staff-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-dotlrn/sql/oracle/dotlrn-members-staff-create.sql,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/dotlrn-dotlrn/sql/oracle/dotlrn-members-staff-create.sql 10 May 2002 06:35:14 -0000 1.4
+++ openacs-4/packages/dotlrn-dotlrn/sql/oracle/dotlrn-members-staff-create.sql 31 Jul 2002 21:18:32 -0000 1.5
@@ -147,6 +147,14 @@
impl_pl => 'TCL'
);
+ foo := acs_sc_impl.new_alias (
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_members_staff',
+ impl_operation_name => 'ChangeEventHandler',
+ impl_alias => 'dotlrn_members_staff::change_event_handler',
+ impl_pl => 'TCL'
+ );
+
-- Add the binding
acs_sc_binding.new (
contract_name => 'dotlrn_applet',
Index: openacs-4/packages/dotlrn-dotlrn/sql/postgresql/dotlrn-dotlrn-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-dotlrn/sql/postgresql/dotlrn-dotlrn-create.sql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn-dotlrn/sql/postgresql/dotlrn-dotlrn-create.sql 8 Jul 2002 23:00:32 -0000 1.3
+++ openacs-4/packages/dotlrn-dotlrn/sql/postgresql/dotlrn-dotlrn-create.sql 31 Jul 2002 21:18:32 -0000 1.4
@@ -150,6 +150,15 @@
''dotlrn_dotlrn::clone'',
''TCL''
);
+
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_dotlrn'',
+ ''ChangeEventHandler'',
+ ''dotlrn_dotlrn::change_event_handler'',
+ ''TCL''
+ );
+
-- Add the binding
perform acs_sc_binding__new (
''dotlrn_applet'',
Index: openacs-4/packages/dotlrn-dotlrn/sql/postgresql/dotlrn-members-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-dotlrn/sql/postgresql/dotlrn-members-create.sql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/dotlrn-dotlrn/sql/postgresql/dotlrn-members-create.sql 8 Jul 2002 23:00:32 -0000 1.2
+++ openacs-4/packages/dotlrn-dotlrn/sql/postgresql/dotlrn-members-create.sql 31 Jul 2002 21:18:32 -0000 1.3
@@ -145,8 +145,8 @@
foo := acs_sc_impl_alias__new (
''dotlrn_applet'',
''dotlrn_members'',
- ''Clone'',
- ''dotlrn_members::clone'',
+ ''ChangeEventHandler'',
+ ''dotlrn_members::change_event_handler'',
''TCL''
);
Index: openacs-4/packages/dotlrn-dotlrn/sql/postgresql/dotlrn-members-staff-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-dotlrn/sql/postgresql/dotlrn-members-staff-create.sql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn-dotlrn/sql/postgresql/dotlrn-members-staff-create.sql 8 Jul 2002 23:00:32 -0000 1.3
+++ openacs-4/packages/dotlrn-dotlrn/sql/postgresql/dotlrn-members-staff-create.sql 31 Jul 2002 21:18:32 -0000 1.4
@@ -150,6 +150,14 @@
''TCL''
);
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_members_staff'',
+ ''ChangeEventHandler'',
+ ''dotlrn_members_staff::change_event_handler'',
+ ''TCL''
+ );
+
-- Add the binding
perform acs_sc_binding__new (
''dotlrn_applet'',
Index: openacs-4/packages/dotlrn-dotlrn/tcl/dotlrn-dotlrn-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-dotlrn/tcl/dotlrn-dotlrn-procs.tcl,v
diff -u -r1.32 -r1.33
--- openacs-4/packages/dotlrn-dotlrn/tcl/dotlrn-dotlrn-procs.tcl 13 Jul 2002 00:13:09 -0000 1.32
+++ openacs-4/packages/dotlrn-dotlrn/tcl/dotlrn-dotlrn-procs.tcl 31 Jul 2002 21:18:32 -0000 1.33
@@ -275,6 +275,15 @@
return [add_applet_to_community $new_community_id]
}
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ listens for the following events:
+ } {
+ }
# misc procs
Index: openacs-4/packages/dotlrn-dotlrn/tcl/dotlrn-members-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-dotlrn/tcl/dotlrn-members-procs.tcl,v
diff -u -r1.15 -r1.16
--- openacs-4/packages/dotlrn-dotlrn/tcl/dotlrn-members-procs.tcl 13 Jul 2002 00:13:09 -0000 1.15
+++ openacs-4/packages/dotlrn-dotlrn/tcl/dotlrn-members-procs.tcl 31 Jul 2002 21:18:32 -0000 1.16
@@ -186,6 +186,16 @@
return [dotlrn_members::add_applet_to_community $new_community_id]
}
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ listens for the following events:
+ } {
+ }
+
#
# misc procs
#
Index: openacs-4/packages/dotlrn-dotlrn/tcl/dotlrn-members-staff-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-dotlrn/tcl/dotlrn-members-staff-procs.tcl,v
diff -u -r1.12 -r1.13
--- openacs-4/packages/dotlrn-dotlrn/tcl/dotlrn-members-staff-procs.tcl 13 Jul 2002 00:13:09 -0000 1.12
+++ openacs-4/packages/dotlrn-dotlrn/tcl/dotlrn-members-staff-procs.tcl 31 Jul 2002 21:18:32 -0000 1.13
@@ -159,4 +159,15 @@
} {
return [add_applet_to_community $new_community_id]
}
+
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ listens for the following events:
+ } {
+ }
+
}
Index: openacs-4/packages/dotlrn-faq/sql/oracle/dotlrn-faq-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-faq/sql/oracle/dotlrn-faq-create.sql,v
diff -u -r1.7 -r1.8
--- openacs-4/packages/dotlrn-faq/sql/oracle/dotlrn-faq-create.sql 10 May 2002 06:35:14 -0000 1.7
+++ openacs-4/packages/dotlrn-faq/sql/oracle/dotlrn-faq-create.sql 31 Jul 2002 21:18:32 -0000 1.8
@@ -147,6 +147,14 @@
impl_pl => 'TCL'
);
+ foo := acs_sc_impl.new_alias (
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_faq',
+ impl_operation_name => 'ChangeEventHandler',
+ impl_alias => 'dotlrn_faq::change_event_handler',
+ impl_pl => 'TCL'
+ );
+
-- Add the binding
acs_sc_binding.new (
contract_name => 'dotlrn_applet',
Index: openacs-4/packages/dotlrn-faq/sql/postgresql/dotlrn-faq-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-faq/sql/postgresql/dotlrn-faq-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn-faq/sql/postgresql/dotlrn-faq-create.sql 10 Jul 2002 16:56:04 -0000 1.1
+++ openacs-4/packages/dotlrn-faq/sql/postgresql/dotlrn-faq-create.sql 31 Jul 2002 21:18:33 -0000 1.2
@@ -150,6 +150,14 @@
'TCL'
);
+select acs_sc_impl_alias__new (
+ 'dotlrn_applet',
+ 'dotlrn_faq',
+ 'ChangeEventHandler',
+ 'dotlrn_faq::change_event_handler',
+ 'TCL'
+);
+
-- Add the binding
select acs_sc_binding__new (
'dotlrn_applet',
Index: openacs-4/packages/dotlrn-faq/tcl/dotlrn-faq-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-faq/tcl/dotlrn-faq-procs.tcl,v
diff -u -r1.37 -r1.38
--- openacs-4/packages/dotlrn-faq/tcl/dotlrn-faq-procs.tcl 13 Jul 2002 00:16:37 -0000 1.37
+++ openacs-4/packages/dotlrn-faq/tcl/dotlrn-faq-procs.tcl 31 Jul 2002 21:18:33 -0000 1.38
@@ -239,4 +239,14 @@
return $new_package_id
}
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ listens for the following events:
+ } {
+ }
+
}
Index: openacs-4/packages/dotlrn-forums/sql/oracle/dotlrn-forums-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-forums/sql/oracle/dotlrn-forums-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn-forums/sql/oracle/dotlrn-forums-create.sql 30 May 2002 06:28:03 -0000 1.1
+++ openacs-4/packages/dotlrn-forums/sql/oracle/dotlrn-forums-create.sql 31 Jul 2002 21:18:33 -0000 1.2
@@ -14,144 +14,133 @@
-- details.
--
-
--
-- The forums applet for dotLRN
--- copyright 2001, OpenForce
--- distributed under GPL v2.0
--
+-- @author Ben Adida (ben@openforce.net)
+-- @creation-date 2002-05-29
+-- @version $Id$
--
--- ben,arjun@openforce.net
---
--- 10/05/2001
--- redone for Forums by Ben 05/29/2002
---
-
declare
- foo integer;
+ foo integer;
begin
- -- create the implementation
- foo := acs_sc_impl.new (
- 'dotlrn_applet',
- 'dotlrn_forums',
- 'dotlrn_forums'
- );
- -- add all the hooks
+ foo := acs_sc_impl.new(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_forums',
+ impl_owner_name => 'dotlrn_forums'
+ );
- -- GetPrettyName
- foo := acs_sc_impl.new_alias (
- 'dotlrn_applet',
- 'dotlrn_forums',
- 'GetPrettyName',
- 'dotlrn_forums::get_pretty_name',
- 'TCL'
- );
+ foo := acs_sc_impl.new_alias(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_forums',
+ impl_operation_name => 'GetPrettyName',
+ impl_alias => 'dotlrn_forums::get_pretty_name',
+ impl_pl => 'TCL'
+ );
- -- AddApplet
- foo := acs_sc_impl.new_alias (
- 'dotlrn_applet',
- 'dotlrn_forums',
- 'AddApplet',
- 'dotlrn_forums::add_applet',
- 'TCL'
- );
+ foo := acs_sc_impl.new_alias(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_forums',
+ impl_operation_name => 'AddApplet',
+ impl_alias => 'dotlrn_forums::add_applet',
+ impl_pl => 'TCL'
+ );
- -- RemoveApplet
- foo := acs_sc_impl.new_alias (
- 'dotlrn_applet',
- 'dotlrn_forums',
- 'RemoveApplet',
- 'dotlrn_forums::remove_applet',
- 'TCL'
- );
+ foo := acs_sc_impl.new_alias(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_forums',
+ impl_operation_name => 'RemoveApplet',
+ impl_alias => 'dotlrn_forums::remove_applet',
+ impl_pl => 'TCL'
+ );
- -- AddAppletToCommunity
- foo := acs_sc_impl.new_alias (
- 'dotlrn_applet',
- 'dotlrn_forums',
- 'AddAppletToCommunity',
- 'dotlrn_forums::add_applet_to_community',
- 'TCL'
- );
+ foo := acs_sc_impl.new_alias(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_forums',
+ impl_operation_name => 'AddAppletToCommunity',
+ impl_alias => 'dotlrn_forums::add_applet_to_community',
+ impl_pl => 'TCL'
+ );
- -- RemoveAppletFromCommunity
- foo := acs_sc_impl.new_alias (
- 'dotlrn_applet',
- 'dotlrn_forums',
- 'RemoveAppletFromCommunity',
- 'dotlrn_forums::remove_applet_from_community',
- 'TCL'
- );
- -- AddUser
- foo := acs_sc_impl.new_alias (
- 'dotlrn_applet',
- 'dotlrn_forums',
- 'AddUser',
- 'dotlrn_forums::add_user',
- 'TCL'
- );
+ foo := acs_sc_impl.new_alias(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_forums',
+ impl_operation_name => 'RemoveAppletFromCommunity',
+ impl_alias => 'dotlrn_forums::remove_applet_from_community',
+ impl_pl => 'TCL'
+ );
- -- RemoveUser
- foo := acs_sc_impl.new_alias (
- 'dotlrn_applet',
- 'dotlrn_forums',
- 'RemoveUser',
- 'dotlrn_forums::remove_user',
- 'TCL'
- );
+ foo := acs_sc_impl.new_alias(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_forums',
+ impl_operation_name => 'AddUser',
+ impl_alias => 'dotlrn_forums::add_user',
+ impl_pl => 'TCL'
+ );
- -- AddUserToCommunity
- foo := acs_sc_impl.new_alias (
- 'dotlrn_applet',
- 'dotlrn_forums',
- 'AddUserToCommunity',
- 'dotlrn_forums::add_user_to_community',
- 'TCL'
- );
+ foo := acs_sc_impl.new_alias(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_forums',
+ impl_operation_name => 'RemoveUser',
+ impl_alias => 'dotlrn_forums::remove_user',
+ impl_pl => 'TCL'
+ );
- -- RemoveUserFromCommunity
- foo := acs_sc_impl.new_alias (
- 'dotlrn_applet',
- 'dotlrn_forums',
- 'RemoveUserFromCommunity',
- 'dotlrn_forums::remove_user_from_community',
- 'TCL'
- );
+ foo := acs_sc_impl.new_alias(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_forums',
+ impl_operation_name => 'AddUserToCommunity',
+ impl_alias => 'dotlrn_forums::add_user_to_community',
+ impl_pl => 'TCL'
+ );
- -- AddPortlet
- foo := acs_sc_impl.new_alias (
+ foo := acs_sc_impl.new_alias(
impl_contract_name => 'dotlrn_applet',
impl_name => 'dotlrn_forums',
+ impl_operation_name => 'RemoveUserFromCommunity',
+ impl_alias => 'dotlrn_forums::remove_user_from_community',
+ impl_pl => 'TCL'
+ );
+
+ foo := acs_sc_impl.new_alias(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_forums',
impl_operation_name => 'AddPortlet',
impl_alias => 'dotlrn_forums::add_portlet',
impl_pl => 'TCL'
);
- -- RemovePortlet
- foo := acs_sc_impl.new_alias (
+ foo := acs_sc_impl.new_alias(
impl_contract_name => 'dotlrn_applet',
impl_name => 'dotlrn_forums',
impl_operation_name => 'RemovePortlet',
impl_alias => 'dotlrn_forums::remove_portlet',
impl_pl => 'TCL'
);
- -- Clone
- foo := acs_sc_impl.new_alias (
+ foo := acs_sc_impl.new_alias(
impl_contract_name => 'dotlrn_applet',
impl_name => 'dotlrn_forums',
impl_operation_name => 'Clone',
impl_alias => 'dotlrn_forums::clone',
impl_pl => 'TCL'
);
- -- Add the binding
- acs_sc_binding.new (
- contract_name => 'dotlrn_applet',
- impl_name => 'dotlrn_forums'
- );
+ foo := acs_sc_impl.new_alias(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_forums',
+ impl_operation_name => 'ChangeEventHandler',
+ impl_alias => 'dotlrn_forums::change_event_handler',
+ impl_pl => 'TCL'
+ );
+
+ acs_sc_binding.new(
+ contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_forums'
+ );
+
end;
/
show errors
Index: openacs-4/packages/dotlrn-forums/sql/postgresql/dotlrn-forums-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-forums/sql/postgresql/dotlrn-forums-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn-forums/sql/postgresql/dotlrn-forums-create.sql 15 Jul 2002 20:43:41 -0000 1.1
+++ openacs-4/packages/dotlrn-forums/sql/postgresql/dotlrn-forums-create.sql 31 Jul 2002 21:18:33 -0000 1.2
@@ -14,125 +14,109 @@
-- details.
--
-
--
-- The forums applet for dotLRN
--- copyright 2001, OpenForce
--- distributed under GPL v2.0
--
+-- @author Ben Adida (ben@openforce.net)
+-- @creation-date 2002-05-29
+-- @version $Id$
--
--- ben,arjun@openforce.net
---
--- 10/05/2001
--- redone for Forums by Ben 05/29/2002
---
-- ported to postgres by mohan pakkurti (mohan@pakkurti.com)
-- 2002-07-12
+--
create function inline_0()
returns integer as '
declare
- foo integer;
+ foo integer;
begin
- -- create the implementation
- foo := acs_sc_impl__new (
- ''dotlrn_applet'',
- ''dotlrn_forums'',
- ''dotlrn_forums''
- );
- -- add all the hooks
+ foo := acs_sc_impl__new (
+ ''dotlrn_applet'',
+ ''dotlrn_forums'',
+ ''dotlrn_forums''
+ );
- -- GetPrettyName
- foo := acs_sc_impl_alias__new (
- ''dotlrn_applet'',
- ''dotlrn_forums'',
- ''GetPrettyName'',
- ''dotlrn_forums::get_pretty_name'',
- ''TCL''
- );
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_forums'',
+ ''GetPrettyName'',
+ ''dotlrn_forums::get_pretty_name'',
+ ''TCL''
+ );
- -- AddApplet
- foo := acs_sc_impl_alias__new (
- ''dotlrn_applet'',
- ''dotlrn_forums'',
- ''AddApplet'',
- ''dotlrn_forums::add_applet'',
- ''TCL''
- );
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_forums'',
+ ''AddApplet'',
+ ''dotlrn_forums::add_applet'',
+ ''TCL''
+ );
- -- RemoveApplet
- foo := acs_sc_impl_alias__new (
- ''dotlrn_applet'',
- ''dotlrn_forums'',
- ''RemoveApplet'',
- ''dotlrn_forums::remove_applet'',
- ''TCL''
- );
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_forums'',
+ ''RemoveApplet'',
+ ''dotlrn_forums::remove_applet'',
+ ''TCL''
+ );
- -- AddAppletToCommunity
- foo := acs_sc_impl_alias__new (
- ''dotlrn_applet'',
- ''dotlrn_forums'',
- ''AddAppletToCommunity'',
- ''dotlrn_forums::add_applet_to_community'',
- ''TCL''
- );
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_forums'',
+ ''AddAppletToCommunity'',
+ ''dotlrn_forums::add_applet_to_community'',
+ ''TCL''
+ );
- -- RemoveAppletFromCommunity
- foo := acs_sc_impl_alias__new (
- ''dotlrn_applet'',
- ''dotlrn_forums'',
- ''RemoveAppletFromCommunity'',
- ''dotlrn_forums::remove_applet_from_community'',
- ''TCL''
- );
- -- AddUser
- foo := acs_sc_impl_alias__new (
- ''dotlrn_applet'',
- ''dotlrn_forums'',
- ''AddUser'',
- ''dotlrn_forums::add_user'',
- ''TCL''
- );
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_forums'',
+ ''RemoveAppletFromCommunity'',
+ ''dotlrn_forums::remove_applet_from_community'',
+ ''TCL''
+ );
- -- RemoveUser
- foo := acs_sc_impl_alias__new (
- ''dotlrn_applet'',
- ''dotlrn_forums'',
- ''RemoveUser'',
- ''dotlrn_forums::remove_user'',
- ''TCL''
- );
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_forums'',
+ ''AddUser'',
+ ''dotlrn_forums::add_user'',
+ ''TCL''
+ );
- -- AddUserToCommunity
- foo := acs_sc_impl_alias__new (
- ''dotlrn_applet'',
- ''dotlrn_forums'',
- ''AddUserToCommunity'',
- ''dotlrn_forums::add_user_to_community'',
- ''TCL''
- );
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_forums'',
+ ''RemoveUser'',
+ ''dotlrn_forums::remove_user'',
+ ''TCL''
+ );
- -- RemoveUserFromCommunity
- foo := acs_sc_impl_alias__new (
- ''dotlrn_applet'',
- ''dotlrn_forums'',
- ''RemoveUserFromCommunity'',
- ''dotlrn_forums::remove_user_from_community'',
- ''TCL''
- );
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_forums'',
+ ''AddUserToCommunity'',
+ ''dotlrn_forums::add_user_to_community'',
+ ''TCL''
+ );
- -- AddPortlet
foo := acs_sc_impl_alias__new (
''dotlrn_applet'',
''dotlrn_forums'',
+ ''RemoveUserFromCommunity'',
+ ''dotlrn_forums::remove_user_from_community'',
+ ''TCL''
+ );
+
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_forums'',
''AddPortlet'',
''dotlrn_forums::add_portlet'',
''TCL''
);
- -- RemovePortlet
foo := acs_sc_impl_alias__new (
''dotlrn_applet'',
''dotlrn_forums'',
@@ -141,7 +125,6 @@
''TCL''
);
- -- Clone
foo := acs_sc_impl_alias__new (
''dotlrn_applet'',
''dotlrn_forums'',
@@ -150,14 +133,21 @@
''TCL''
);
- -- Add the binding
- perform acs_sc_binding__new (
- ''dotlrn_applet'',
- ''dotlrn_forums''
- );
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_forums'',
+ ''ChangeEventHandler'',
+ ''dotlrn_forums::change_event_handler'',
+ ''TCL''
+ );
- return 0;
+ perform acs_sc_binding__new (
+ ''dotlrn_applet'',
+ ''dotlrn_forums''
+ );
+ return 0;
+
end;' language 'plpgsql';
select inline_0();
Index: openacs-4/packages/dotlrn-forums/tcl/dotlrn-forums-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-forums/tcl/dotlrn-forums-procs.tcl,v
diff -u -r1.7 -r1.8
--- openacs-4/packages/dotlrn-forums/tcl/dotlrn-forums-procs.tcl 13 Jul 2002 03:05:24 -0000 1.7
+++ openacs-4/packages/dotlrn-forums/tcl/dotlrn-forums-procs.tcl 31 Jul 2002 21:18:33 -0000 1.8
@@ -97,17 +97,12 @@
]
# mount attachments under forums, if available
- # attachments requires that dotlrn-fs is already mounted
- if {[apm_package_registered_p attachments]
- && [dotlrn_community::applet_active_p \
- -community_id $community_id \
- -applet_key [dotlrn_fs::applet_key]]} {
+ # attachments requires that dotlrn-fs is already mounted
+ if {[apm_package_registered_p attachments] && [dotlrn_community::applet_active_p -community_id $community_id -applet_key [dotlrn_fs::applet_key]]} {
set attachments_node_id [site_node::new \
-name [attachments::get_url] \
- -parent_id [site_node::get_node_id_from_object_id \
- -object_id $package_id
- ]
+ -parent_id [site_node::get_node_id_from_object_id -object_id $package_id]
]
site_node::mount \
@@ -116,18 +111,16 @@
set fs_package_id [dotlrn_community::get_applet_package_id \
-community_id $community_id \
- -applet_key [dotlrn_fs::applet_key]
+ -applet_key [dotlrn_fs::applet_key] \
]
-
+
# map the fs root folder to the package_id of the new forums pkg
attachments::map_root_folder \
-package_id $package_id \
- -folder_id [fs::get_root_folder -package_id $fs_package_id]
-
- } else {
- ns_log Warning "DOTLRN-FORUMS: Warning attachments or dotlrn-fs not found!"
+ -folder_id [fs::get_root_folder -package_id $fs_package_id]
+
}
-
+
set auto_create_forum_p [parameter::get_from_package_key \
-package_key [my_package_key] \
-parameter auto_create_forum_p \
@@ -326,4 +319,47 @@
dotlrn_forums::add_applet_to_community $new_community_id
}
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ listens for the following events: rename
+ } {
+ switch $event {
+ rename {
+ handle_rename -community_id $community_id -old_value $old_value -new_value $new_value
+ }
+ }
+ }
+
+ ad_proc -private handle_rename {
+ {-community_id:required}
+ {-old_value:required}
+ {-new_value:required}
+ } {
+ what to do with forums when the name of the community changes
+ } {
+ set package_id [dotlrn_community::get_applet_package_id \
+ -community_id $community_id \
+ -applet_key [applet_key] \
+ ]
+ set name "$old_value Forum"
+
+ db_foreach select_forums_with_old_name {
+ select *
+ from forums_forums
+ where package_id = :package_id
+ and name = :name
+ } {
+ forum::edit \
+ -forum_id $forum_id \
+ -name "$new_value Forum" \
+ -charter $charter \
+ -presentation_type $presentation_type \
+ -posting_policy $posting_policy
+ }
+ }
+
}
Index: openacs-4/packages/dotlrn-fs/dotlrn-fs.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-fs/dotlrn-fs.info,v
diff -u -r1.17 -r1.18
--- openacs-4/packages/dotlrn-fs/dotlrn-fs.info 9 Jul 2002 21:42:16 -0000 1.17
+++ openacs-4/packages/dotlrn-fs/dotlrn-fs.info 31 Jul 2002 21:18:33 -0000 1.18
@@ -24,17 +24,22 @@
+
+
+
+
+
-
-
-
-
+
+
+
+
Index: openacs-4/packages/dotlrn-fs/sql/oracle/dotlrn-fs-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-fs/sql/oracle/dotlrn-fs-create.sql,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/dotlrn-fs/sql/oracle/dotlrn-fs-create.sql 10 May 2002 06:35:15 -0000 1.8
+++ openacs-4/packages/dotlrn-fs/sql/oracle/dotlrn-fs-create.sql 31 Jul 2002 21:18:33 -0000 1.9
@@ -37,9 +37,6 @@
'dotlrn_fs'
);
- -- add all the hooks
-
- -- GetPrettyName
foo := acs_sc_impl.new_alias (
'dotlrn_applet',
'dotlrn_fs',
@@ -48,7 +45,6 @@
'TCL'
);
- -- AddApplet
foo := acs_sc_impl.new_alias (
'dotlrn_applet',
'dotlrn_fs',
@@ -57,7 +53,6 @@
'TCL'
);
- -- RemoveApplet
foo := acs_sc_impl.new_alias (
'dotlrn_applet',
'dotlrn_fs',
@@ -66,7 +61,6 @@
'TCL'
);
- -- AddAppletToCommunity
foo := acs_sc_impl.new_alias (
'dotlrn_applet',
'dotlrn_fs',
@@ -75,7 +69,6 @@
'TCL'
);
- -- RemoveAppletFromCommunity
foo := acs_sc_impl.new_alias (
'dotlrn_applet',
'dotlrn_fs',
@@ -84,7 +77,6 @@
'TCL'
);
- -- AddUser
foo := acs_sc_impl.new_alias (
'dotlrn_applet',
'dotlrn_fs',
@@ -93,7 +85,6 @@
'TCL'
);
- -- RemoveUser
foo := acs_sc_impl.new_alias (
'dotlrn_applet',
'dotlrn_fs',
@@ -102,7 +93,6 @@
'TCL'
);
- -- AddUserToCommunity
foo := acs_sc_impl.new_alias (
'dotlrn_applet',
'dotlrn_fs',
@@ -111,7 +101,6 @@
'TCL'
);
- -- RemoveUserFromCommunity
foo := acs_sc_impl.new_alias (
'dotlrn_applet',
'dotlrn_fs',
@@ -120,7 +109,6 @@
'TCL'
);
- -- AddPortlet
foo := acs_sc_impl.new_alias (
impl_contract_name => 'dotlrn_applet',
impl_name => 'dotlrn_fs',
@@ -129,7 +117,6 @@
impl_pl => 'TCL'
);
- -- RemovePortlet
foo := acs_sc_impl.new_alias (
impl_contract_name => 'dotlrn_applet',
impl_name => 'dotlrn_fs',
@@ -138,7 +125,6 @@
impl_pl => 'TCL'
);
- -- Clone
foo := acs_sc_impl.new_alias (
impl_contract_name => 'dotlrn_applet',
impl_name => 'dotlrn_fs',
@@ -147,11 +133,18 @@
impl_pl => 'TCL'
);
- -- Add the binding
- acs_sc_binding.new (
- contract_name => 'dotlrn_applet',
- impl_name => 'dotlrn_fs'
- );
+ foo := acs_sc_impl.new_alias (
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_fs',
+ impl_operation_name => 'ChangeEventHandler',
+ impl_alias => 'dotlrn_fs::change_event_handler',
+ impl_pl => 'TCL'
+ );
+
+ acs_sc_binding.new (
+ contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_fs'
+ );
end;
/
show errors
Index: openacs-4/packages/dotlrn-fs/sql/postgresql/dotlrn-fs-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-fs/sql/postgresql/dotlrn-fs-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn-fs/sql/postgresql/dotlrn-fs-create.sql 9 Jul 2002 20:11:22 -0000 1.1
+++ openacs-4/packages/dotlrn-fs/sql/postgresql/dotlrn-fs-create.sql 31 Jul 2002 21:18:33 -0000 1.2
@@ -143,7 +143,6 @@
''TCL''
);
- -- Clone
foo := acs_sc_impl_alias__new (
''dotlrn_applet'',
''dotlrn_fs'',
@@ -152,16 +151,22 @@
''TCL''
);
- -- Add the binding
- perform acs_sc_binding__new (
- ''dotlrn_applet'',
- ''dotlrn_fs''
- );
+ foo := acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_fs'',
+ ''ChangeEventHandler'',
+ ''dotlrn_fs::change_event_handler'',
+ ''TCL''
+ );
- return 0;
+ perform acs_sc_binding__new (
+ ''dotlrn_applet'',
+ ''dotlrn_fs''
+ );
+ return 0;
+
end;' language 'plpgsql';
select inline_0();
drop function inline_0();
-
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.75 -r1.76
--- openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl 13 Jul 2002 00:16:37 -0000 1.75
+++ openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl 31 Jul 2002 21:18:33 -0000 1.76
@@ -199,7 +199,7 @@
# non-member portal stuff
set non_member_portal_id [dotlrn_community::get_non_member_portal_id \
- -community_id $community_id
+ -community_id $community_id
]
# Make public-folder the only one available at non-member page
@@ -633,13 +633,44 @@
file_id => :object_id,
target_folder_id => :target_folder_id,
creation_user => :user_id,
- creation_ip => NULL
+ creation_ip => null
);
end;
}
}
}
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ dotlrn-fs listens for the following events: rename
+ } {
+ switch $event {
+ rename {
+ handle_rename -community_id $community_id -old_value $old_value -new_value $new_value
+ }
+ }
+ }
+
+ ad_proc -private handle_rename {
+ {-community_id:required}
+ {-old_value:required}
+ {-new_value:required}
+ } {
+ what we do when a community is renamed
+ } {
+ fs::rename_folder \
+ -folder_id [get_community_root_folder -community_id $community_id] \
+ -name "${new_value}'s Files"
+
+ fs::rename_folder \
+ -folder_id [get_community_shared_folder -community_id $community_id] \
+ -name "${new_value}'s Shared Files"
+ }
+
ad_proc -public get_user_default_page {} {
return the user default page to add the portlet to
} {
@@ -728,4 +759,27 @@
} -default ""]
}
+ ad_proc -public get_community_root_folder {
+ {-community_id:required}
+ } {
+ get the community's root folder id
+ } {
+ set package_id [dotlrn_community::get_applet_package_id \
+ -community_id $community_id \
+ -applet_key [applet_key] \
+ ]
+
+ return [fs::get_root_folder -package_id $package_id]
+ }
+
+ ad_proc -public get_community_shared_folder {
+ {-community_id:required}
+ } {
+ get the community's sahred folder id
+ } {
+ set root_folder_id [get_community_root_folder -community_id $community_id]
+
+ return [db_string select_community_shared_folder {} -default ""]
+ }
+
}
Fisheye: Tag 1.5 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/dotlrn-news/sql/oracle/dotlrn-news-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-news/sql/oracle/dotlrn-news-create.sql,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/dotlrn-news/sql/oracle/dotlrn-news-create.sql 10 May 2002 06:35:15 -0000 1.6
+++ openacs-4/packages/dotlrn-news/sql/oracle/dotlrn-news-create.sql 31 Jul 2002 21:18:33 -0000 1.7
@@ -147,6 +147,14 @@
impl_pl => 'TCL'
);
+ foo := acs_sc_impl.new_alias (
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_news',
+ impl_operation_name => 'ChangeEventHandler',
+ impl_alias => 'dotlrn_news::change_event_handler',
+ impl_pl => 'TCL'
+ );
+
-- Add the binding
acs_sc_binding.new (
contract_name => 'dotlrn_applet',
Index: openacs-4/packages/dotlrn-news/sql/postgresql/dotlrn-news-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-news/sql/postgresql/dotlrn-news-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn-news/sql/postgresql/dotlrn-news-create.sql 10 Jul 2002 16:57:42 -0000 1.1
+++ openacs-4/packages/dotlrn-news/sql/postgresql/dotlrn-news-create.sql 31 Jul 2002 21:18:33 -0000 1.2
@@ -147,6 +147,14 @@
'TCL'
);
+select acs_sc_impl_alias__new (
+ 'dotlrn_applet',
+ 'dotlrn_news',
+ 'ChangeEventHandler',
+ 'dotlrn_news::change_event_handler',
+ 'TCL'
+);
+
-- Add the binding
select acs_sc_binding__new (
'dotlrn_applet',
Index: openacs-4/packages/dotlrn-news/tcl/dotlrn-news-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-news/tcl/dotlrn-news-procs.tcl,v
diff -u -r1.27 -r1.28
--- openacs-4/packages/dotlrn-news/tcl/dotlrn-news-procs.tcl 13 Jul 2002 03:05:24 -0000 1.27
+++ openacs-4/packages/dotlrn-news/tcl/dotlrn-news-procs.tcl 31 Jul 2002 21:18:33 -0000 1.28
@@ -208,4 +208,14 @@
return $new_package_id
}
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ listens for the following events:
+ } {
+ }
+
}
Index: openacs-4/packages/dotlrn-research/sql/oracle/dotlrn-research-applet-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-research/sql/oracle/dotlrn-research-applet-create.sql,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/dotlrn-research/sql/oracle/dotlrn-research-applet-create.sql 26 Jul 2002 21:15:00 -0000 1.6
+++ openacs-4/packages/dotlrn-research/sql/oracle/dotlrn-research-applet-create.sql 31 Jul 2002 21:18:33 -0000 1.7
@@ -128,6 +128,14 @@
impl_pl => 'TCL'
);
+ foo := acs_sc_impl.new_alias(
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_research',
+ impl_operation_name => 'ChangeEventHandler',
+ impl_alias => 'dotlrn_research::change_event_handler',
+ impl_pl => 'TCL'
+ );
+
acs_sc_binding.new(
contract_name => 'dotlrn_applet',
impl_name => 'dotlrn_research'
Index: openacs-4/packages/dotlrn-research/sql/postgresql/dotlrn-research-applet-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-research/sql/postgresql/dotlrn-research-applet-create.sql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/dotlrn-research/sql/postgresql/dotlrn-research-applet-create.sql 26 Jul 2002 21:15:00 -0000 1.2
+++ openacs-4/packages/dotlrn-research/sql/postgresql/dotlrn-research-applet-create.sql 31 Jul 2002 21:18:33 -0000 1.3
@@ -128,6 +128,14 @@
'TCL'
);
+select acs_sc_impl_alias__new (
+ 'dotlrn_applet',
+ 'dotlrn_research',
+ 'ChangeEventHandler',
+ 'dotlrn_research::change_event_handler',
+ 'TCL'
+);
+
select acs_sc_binding__new (
'dotlrn_applet',
'dotlrn_research'
Index: openacs-4/packages/dotlrn-research/tcl/dotlrn-research-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-research/tcl/dotlrn-research-procs.tcl,v
diff -u -r1.14 -r1.15
--- openacs-4/packages/dotlrn-research/tcl/dotlrn-research-procs.tcl 26 Jul 2002 23:34:21 -0000 1.14
+++ openacs-4/packages/dotlrn-research/tcl/dotlrn-research-procs.tcl 31 Jul 2002 21:18:33 -0000 1.15
@@ -143,4 +143,14 @@
add_applet_to_community $new_community_id
}
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ listens for the following events:
+ } {
+ }
+
}
Index: openacs-4/packages/dotlrn-static/sql/oracle/dotlrn-static-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-static/sql/oracle/dotlrn-static-create.sql,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/dotlrn-static/sql/oracle/dotlrn-static-create.sql 10 May 2002 06:35:15 -0000 1.5
+++ openacs-4/packages/dotlrn-static/sql/oracle/dotlrn-static-create.sql 31 Jul 2002 21:18:33 -0000 1.6
@@ -145,6 +145,14 @@
impl_pl => 'TCL'
);
+ foo := acs_sc_impl.new_alias (
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_static',
+ impl_operation_name => 'ChangeEventHandler',
+ impl_alias => 'dotlrn_static::change_event_handler',
+ impl_pl => 'TCL'
+ );
+
-- Add the binding
acs_sc_binding.new (
contract_name => 'dotlrn_applet',
Index: openacs-4/packages/dotlrn-static/sql/postgresql/dotlrn-static-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-static/sql/postgresql/dotlrn-static-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn-static/sql/postgresql/dotlrn-static-create.sql 15 Jul 2002 20:43:41 -0000 1.1
+++ openacs-4/packages/dotlrn-static/sql/postgresql/dotlrn-static-create.sql 31 Jul 2002 21:18:34 -0000 1.2
@@ -146,6 +146,14 @@
''TCL''
);
+ perform acs_sc_impl_alias__new (
+ ''dotlrn_applet'',
+ ''dotlrn_static'',
+ ''ChangeEventHandler'',
+ ''dotlrn_static::change_event_handler'',
+ ''TCL''
+ );
+
-- Add the binding
perform acs_sc_binding__new (
''dotlrn_applet'',
Index: openacs-4/packages/dotlrn-static/tcl/dotlrn-static-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-static/tcl/dotlrn-static-procs.tcl,v
diff -u -r1.26 -r1.27
--- openacs-4/packages/dotlrn-static/tcl/dotlrn-static-procs.tcl 30 Jul 2002 22:53:40 -0000 1.26
+++ openacs-4/packages/dotlrn-static/tcl/dotlrn-static-procs.tcl 31 Jul 2002 21:18:34 -0000 1.27
@@ -243,4 +243,14 @@
-package_id $new_community_id
}
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ listens for the following events:
+ } {
+ }
+
}
Index: openacs-4/packages/dotlrn-syllabus/sql/oracle/dotlrn-syllabus-applet-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-syllabus/sql/oracle/dotlrn-syllabus-applet-create.sql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/dotlrn-syllabus/sql/oracle/dotlrn-syllabus-applet-create.sql 10 May 2002 06:35:15 -0000 1.3
+++ openacs-4/packages/dotlrn-syllabus/sql/oracle/dotlrn-syllabus-applet-create.sql 31 Jul 2002 21:18:34 -0000 1.4
@@ -141,6 +141,14 @@
impl_pl => 'TCL'
);
+ foo := acs_sc_impl.new_alias (
+ impl_contract_name => 'dotlrn_applet',
+ impl_name => 'dotlrn_syllabus',
+ impl_operation_name => 'ChangeEventHandler',
+ impl_alias => 'dotlrn_syllabus::change_event_handler',
+ impl_pl => 'TCL'
+ );
+
-- Add the binding
acs_sc_binding.new (
contract_name => 'dotlrn_applet',
Index: openacs-4/packages/dotlrn-syllabus/sql/postgresql/dotlrn-syllabus-applet-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-syllabus/sql/postgresql/dotlrn-syllabus-applet-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn-syllabus/sql/postgresql/dotlrn-syllabus-applet-create.sql 15 Jul 2002 20:43:42 -0000 1.1
+++ openacs-4/packages/dotlrn-syllabus/sql/postgresql/dotlrn-syllabus-applet-create.sql 31 Jul 2002 21:18:34 -0000 1.2
@@ -141,6 +141,14 @@
'TCL'
);
+select acs_sc_impl_alias__new (
+ 'dotlrn_applet',
+ 'dotlrn_syllabus',
+ 'ChangeEventHandler',
+ 'dotlrn_syllabus::change_event_handler',
+ 'TCL'
+);
+
-- Add the binding
select acs_sc_binding__new (
'dotlrn_applet', --contract name
Index: openacs-4/packages/dotlrn-syllabus/tcl/dotlrn-syllabus-admin-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-syllabus/tcl/dotlrn-syllabus-admin-procs.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/dotlrn-syllabus/tcl/dotlrn-syllabus-admin-procs.tcl 24 May 2002 01:58:46 -0000 1.4
+++ openacs-4/packages/dotlrn-syllabus/tcl/dotlrn-syllabus-admin-procs.tcl 31 Jul 2002 21:18:34 -0000 1.5
@@ -125,4 +125,14 @@
} {
}
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ listens for the following events:
+ } {
+ }
+
}
Index: openacs-4/packages/dotlrn-syllabus/tcl/dotlrn-syllabus-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-syllabus/tcl/dotlrn-syllabus-procs.tcl,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/dotlrn-syllabus/tcl/dotlrn-syllabus-procs.tcl 13 Jul 2002 17:32:57 -0000 1.8
+++ openacs-4/packages/dotlrn-syllabus/tcl/dotlrn-syllabus-procs.tcl 31 Jul 2002 21:18:34 -0000 1.9
@@ -177,4 +177,14 @@
add_applet_to_community $new_community_id
}
+ ad_proc -public change_event_handler {
+ community_id
+ event
+ old_value
+ new_value
+ } {
+ listens for the following events:
+ } {
+ }
+
}