Index: openacs-4/packages/acs-subsite/www/admin/object-types/one.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/admin/object-types/one.tcl,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-subsite/www/admin/object-types/one.tcl 15 Jun 2015 11:14:18 -0000 1.10 +++ openacs-4/packages/acs-subsite/www/admin/object-types/one.tcl 27 Jul 2015 11:41:38 -0000 1.11 @@ -40,18 +40,18 @@ set i 0 set body [subst { - +
- - - - - - - - - - + + + + + + + + + + }] @@ -98,28 +98,19 @@ if { ([info exists table_name] && $table_name ne "") } { - set body [db_string table_comment "select comments from user_tab_comments where table_name = '[string toupper $table_name]'" -default ""] + set body [db_string table_comment {} -default ""] append body [subst {
Attribute NamePretty NamePretty PluralDatatypeDefault ValueMinimum Number of ValuesMaximum Number of ValuesStorageTable NameColumn NameAttribute NamePretty NamePretty PluralDatatypeDefault ValueMinimum Number of ValuesMaximum Number of ValuesStorageTable NameColumn Name
- - - + + + }] set i 0 - db_foreach attribute_comment " - select utc.column_name, - utc.data_type, - ucc.comments - from user_tab_columns utc, - user_col_comments ucc - where utc.table_name = '[string toupper $table_name]' - and utc.table_name = ucc.table_name(+) - and utc.column_name = ucc.column_name(+) - " { + db_foreach attribute_comment {} { incr i append body " @@ -133,35 +124,21 @@
TypeNameCommentTypeNameComment
" if { $i > 0 } { - append page " -

-Table Attributes: -$body -" + append page [subst {

Table Attributes:

$body\n}] } } set i 0 set body "" -db_foreach package_index { - select replace (replace (text, ' ', ' '), chr(9), '    ') as text - from user_source - where lower(name) = :package_name - and type = 'PACKAGE BODY' - order by line -} { +db_foreach package_index {} { incr i - append body "$text" + append body [subst { +

[ns_quotehtml $text]
+

+ }] } if { $i > 0 } { - append page " -

-Methods: -

-   
-[ns_quotehtml $body]
-   
-  
-"} + append page [subst {

SQL Functions:

$body}] +}