Index: openacs-4/packages/acs-authentication/tcl/authority-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-authentication/tcl/authority-procs.tcl,v
diff -u -r1.16 -r1.17
--- openacs-4/packages/acs-authentication/tcl/authority-procs.tcl 16 Sep 2003 13:07:42 -0000 1.16
+++ openacs-4/packages/acs-authentication/tcl/authority-procs.tcl 8 Oct 2003 09:59:06 -0000 1.17
@@ -30,36 +30,39 @@
- - short_name Short name for authority. Used as a key by applications to identify this authority.
+
- short_name Short name for authority. Used as a key by applications to identify this authority.
-
- pretty_name Label for the authority to be shown in a list to users picking a authority.
+
- pretty_name Label for the authority to be shown in a list to users picking a authority.
-
- enabled_p 't' if this authority available, 'f' if it's disabled. Defaults to 't'.
+
- enabled_p 't' if this authority available, 'f' if it's disabled. Defaults to 't'.
-
- sort_order Sort ordering determines the order in which authorities are listed in the user interface.
- Defaults to the currently highest sort order plus one.
+
- sort_order Sort ordering determines the order in which authorities are listed in the user interface.
+ Defaults to the currently highest sort order plus one.
-
- auth_impl_id The ID of the implementation of the 'auth_authentication' service contract.
- Defaults to none.
+
- auth_impl_id The ID of the implementation of the 'auth_authentication' service contract.
+ Defaults to none.
-
- pwd_impl_id The ID of the implementation of the 'auth_password' service contract. Defaults to none.
+
- pwd_impl_id The ID of the implementation of the 'auth_password' service contract. Defaults to none.
-
- forgotten_pwd_url An alternative URL to redirect to when the user has forgotten his/her password.
- Defaults to none.
+
- forgotten_pwd_url An alternative URL to redirect to when the user has forgotten his/her password.
+ Defaults to none.
-
- change_pwd_url An alternative URL to redirect to when the user wants to change his/her password.
- Defaults to none.
+
- change_pwd_url An alternative URL to redirect to when the user wants to change his/her password.
+ Defaults to none.
-
- register_impl_id The ID of the implementation of the 'auth_register' service contract.
- Defaults to none.
+
- register_impl_id The ID of the implementation of the 'auth_registration' service contract.
+ Defaults to none.
-
- register_url An alternative URL to redirect to when the user wants to register for an account.
- Defaults to none.
+
- register_url An alternative URL to redirect to when the user wants to register for an account.
+ Defaults to none.
-
- get_doc_impl_id Id of the batch sync GetDocument service contract implementation
+
- user_info_impl_id The ID of the implementation of the 'auth_user_info' service contract.
+ Defaults to none.
-
- process_doc_impl_id Id of the batch sync ProcessDocument service contract implementation
+
- get_doc_impl_id Id of the 'auth_sync_retrieve' service contract implementation
+
- process_doc_impl_id Id of the 'auth_sync_process' service contract implementation
+
- batch_sync_enabled_p Is batch sync enabled for the authority?
@@ -131,7 +134,15 @@
set authority_id [db_exec_plsql create_authority {}]
# Set the arguments not taken by the new function with an update statement
- foreach column {get_doc_impl_id process_doc_impl_id batch_sync_enabled_p help_contact_text_format} {
+ # LARS: Great, we had a nice abstraction going, so you only had to add a new column in
+ # one place, now that abstraction is broken, because you have to add it here as well
+ foreach column {
+ user_info_impl_id
+ get_doc_impl_id
+ process_doc_impl_id
+ batch_sync_enabled_p
+ help_contact_text_format
+ } {
set edit_columns($column) [set $column]
}
@@ -407,6 +418,7 @@
change_pwd_url ""
register_impl_id ""
register_url ""
+ user_info_impl_id ""
get_doc_impl_id ""
process_doc_impl_id ""
batch_sync_enabled_p "f"
@@ -431,15 +443,15 @@
@author Peter Marklund
} {
- return {auth_impl_id pwd_impl_id register_impl_id get_doc_impl_id process_doc_impl_id}
+ return {auth_impl_id pwd_impl_id register_impl_id user_info_impl_id get_doc_impl_id process_doc_impl_id}
}
ad_proc -private auth::authority::get_select_columns {} {
Get a list of the columns which can be selected from auth_authorities table.
@author Lars Pind (lars@collaboraid.biz)
} {
- return [concat [get_columns] auth_impl_name pwd_impl_name register_impl_name]
+ return [concat [get_columns] auth_impl_name pwd_impl_name register_impl_name user_info_impl_name get_doc_impl_name process_doc_impl_name]
}
@@ -466,9 +478,12 @@
} {
set columns [get_columns]
- lappend columns "(select impl_name from acs_sc_impls where impl_id = auth_impl_id) as auth_impl_name"
- lappend columns "(select impl_name from acs_sc_impls where impl_id = pwd_impl_id) as pwd_impl_name"
- lappend columns "(select impl_name from acs_sc_impls where impl_id = register_impl_id) as register_impl_name"
+ lappend columns "(select impl_pretty_name from acs_sc_impls where impl_id = auth_impl_id) as auth_impl_name"
+ lappend columns "(select impl_pretty_name from acs_sc_impls where impl_id = pwd_impl_id) as pwd_impl_name"
+ lappend columns "(select impl_pretty_name from acs_sc_impls where impl_id = register_impl_id) as register_impl_name"
+ lappend columns "(select impl_pretty_name from acs_sc_impls where impl_id = user_info_impl_id) as user_info_impl_name"
+ lappend columns "(select impl_pretty_name from acs_sc_impls where impl_id = get_doc_impl_id) as get_doc_impl_name"
+ lappend columns "(select impl_pretty_name from acs_sc_impls where impl_id = process_doc_impl_id) as process_doc_impl_name"
db_1row select_authority "
select [join $columns ",\n "]