postgresql7.1 select wp_presentation__new( now(), :user_id, :creation_ip, :pres_title, :page_signature, :copyright_notice, :style, :public_p, :show_modified_p, :audience, :background, :package_id ); begin perform acs_permission__grant_permission(:pres_item_id,:user_id,'wp_admin_presentation'); perform acs_permission__grant_permission(:pres_item_id,:user_id,'wp_view_presentation'); perform acs_permission__grant_permission(:pres_item_id,:user_id,'wp_edit_presentation'); perform acs_permission__grant_permission(:pres_item_id,:user_id,'wp_delete_presentation'); return 0; end; select acs_permission__grant_permission(:pres_item_id,acs__magic_object_id('the_public'),'wp_view_presentation');