Index: openacs-4/packages/edit-this-page/tcl/etp-procs-oracle.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/edit-this-page/tcl/etp-procs-oracle.xql,v diff -u -r1.3 -r1.4 --- openacs-4/packages/edit-this-page/tcl/etp-procs-oracle.xql 16 Nov 2001 03:11:08 -0000 1.3 +++ openacs-4/packages/edit-this-page/tcl/etp-procs-oracle.xql 17 Nov 2001 19:48:47 -0000 1.4 @@ -2,42 +2,34 @@ oracle8.1.6 - + begin acs_object_type.create_type ( - :content_type, - :pretty_name, - :pretty_plural, - 'content_revision', - :content_type, - :content_type, - null, - 'f', - null, - null + object_type => :content_type, + pretty_name => :pretty_name, + pretty_plural => :pretty_plural, + supertype => 'content_revision', + table_name => :content_type, + id_column => :content_type ); end; - + begin :1 := acs_attribute.create_attribute ( - :content_type, - :a_name, - :a_datatype, - :a_pretty_name, - :a_pretty_plural, - null, - null, - :a_default, - 1, - 1, - null, - 'generic', - 'f' + object_type => :content_type, + attribute_name => :a_name, + datatype => :a_datatype, + pretty_name => :a_pretty_name, + pretty_plural => :a_pretty_plural, + default_value => :a_default, + min_n_values => 1, + max_n_values => 1, + storage => 'generic' ); end; @@ -46,12 +38,12 @@ begin - etp.create_page( - :package_id, - :name, - :title, - :content_type - ); + :1 := etp.create_page( + package_id => :package_id, + name => :name, + title => :title, + content_type => :content_type + ); end; @@ -119,13 +111,11 @@ select * from ( select $columns - from cr_items i - left join - cr_revisions r - on (i.live_revision = r.revision_id) + from cr_items i, cr_revisions r where i.parent_id = etp.get_folder_id(:package_id) and i.name != 'index' - ) as attributes + and i.live_revision = r.revision_id(+) + ) attributes where $extra_where_clauses order by $orderby $limit_clause