Index: openacs-4/packages/acs-subsite/lib/applications.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/lib/applications.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-subsite/lib/applications.adp 2 Oct 2003 22:04:46 -0000 1.1 @@ -0,0 +1,5 @@ +
Applications-
- |
@communities_label@Index: openacs-4/packages/acs-subsite/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/index.tcl,v diff -u -r1.12 -r1.13 --- openacs-4/packages/acs-subsite/www/index.tcl 22 Sep 2003 11:20:47 -0000 1.12 +++ openacs-4/packages/acs-subsite/www/index.tcl 2 Oct 2003 22:04:46 -0000 1.13 @@ -35,17 +35,11 @@ set user_id [ad_conn user_id] -set subsite_name [db_string name { - select acs_object.name(:package_id) from dual -}] +set subsite_name [ad_conn instance_name] set subsite_url [subsite::get_element -element url] -set node_id [ad_conn node_id] -db_multirow nodes site_nodes {} - - # User's group membership set group_id [application_group::group_id_from_package_id] Index: openacs-4/packages/acs-subsite/www/admin/applications/application-add-oracle.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/admin/applications/Attic/application-add-oracle.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-subsite/www/admin/applications/application-add-oracle.xql 28 Aug 2003 09:41:40 -0000 1.2 +++ openacs-4/packages/acs-subsite/www/admin/applications/application-add-oracle.xql 2 Oct 2003 22:04:46 -0000 1.3 @@ -10,6 +10,7 @@ from apm_package_types where not (apm_package.singleton_p(package_key) = 1 and apm_package.num_instances(package_key) >= 1) + and package_key != 'acs-subsite' order by upper(pretty_name) Index: openacs-4/packages/acs-subsite/www/admin/applications/application-add-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/admin/applications/Attic/application-add-postgresql.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-subsite/www/admin/applications/application-add-postgresql.xql 28 Aug 2003 09:41:40 -0000 1.2 +++ openacs-4/packages/acs-subsite/www/admin/applications/application-add-postgresql.xql 2 Oct 2003 22:04:46 -0000 1.3 @@ -10,6 +10,7 @@ from apm_package_types where not (apm_package__singleton_p(package_key) = 1 and apm_package__num_instances(package_key) >= 1) + and package_key != 'acs-subsite' order by upper(pretty_name) Index: openacs-4/packages/acs-subsite/www/admin/applications/application-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/admin/applications/application-add.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-subsite/www/admin/applications/application-add.tcl 2 Oct 2003 14:56:57 -0000 1.4 +++ openacs-4/packages/acs-subsite/www/admin/applications/application-add.tcl 2 Oct 2003 22:04:46 -0000 1.5 @@ -6,6 +6,7 @@ @cvs-id $Id$ } { node_id:integer,optional + {return_url "."} } set page_title "New Application" @@ -20,6 +21,7 @@ } ad_form -name application -cancel_url . -form { + {return_url:text(hidden),optional} {node_id:key} {package_key:text(select) {label "Application"} @@ -37,6 +39,8 @@ {help_text "This should be a short string, all lowercase, with hyphens instead of spaces, whicn will be used in the URL of the new application. If you leave this blank, we will generate one for you from name of the application."} {html {size 30}} } +} -new_request { + # Sets return_url } -edit_request { array set node [site_node::get -node_id $node_id] set package_key $node(package_key) @@ -96,6 +100,6 @@ site_node::rename -node_id $node_id -name $folder } } -after_submit { - ad_returnredirect . + ad_returnredirect $return_url ad_script_abort } |