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 @@ @@ -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 "]