Index: openacs-4/packages/cms/todo
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/todo,v
diff -u -N -r1.5 -r1.6
--- openacs-4/packages/cms/todo 9 May 2005 22:44:47 -0000 1.5
+++ openacs-4/packages/cms/todo 16 May 2005 22:59:23 -0000 1.6
@@ -27,11 +27,8 @@
top priority
------------
-set up install procs that set contexts appropriately
-remove unused procs files
-tidy up "view revision" page
-move tab setup in index pages into a per section tab master and call that from each subpage
- - select from cm_modules to build tabs
+set up install procs that set contexts appropriately (done, not thoroughly tested)
+fix child items include
basic/cosmetic
---------
@@ -53,6 +50,7 @@
use ad_form where appropriate
integrate categories and workflow packages
ad_page_contract for non-include pages?
+select from cm_modules to build tabs?
questions/ideas
---------
Index: openacs-4/packages/cms/tcl/module-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/tcl/module-procs.tcl,v
diff -u -N -r1.8 -r1.9
--- openacs-4/packages/cms/tcl/module-procs.tcl 9 May 2005 22:44:48 -0000 1.8
+++ openacs-4/packages/cms/tcl/module-procs.tcl 16 May 2005 22:59:24 -0000 1.9
@@ -72,7 +72,7 @@
return $result
}
-ad_proc -public cm::modules::workspace::getRootFolderID {} { return 0 }
+ad_proc -public cm::modules::workspace::getRootFolderID { package_id } { return 0 }
ad_proc -public cm::modules::workspace::getChildFolders { id } {
return [list]
@@ -99,7 +99,7 @@
} {
if { [string equal $id {}] } {
- set id [getRootFolderID]
+ set id [getRootFolderID [ad_conn package_id]]
}
# query for child site nodes
@@ -144,7 +144,7 @@
} {
if { [string equal $id {}] } {
- set id [getRootFolderID]
+ set id [getRootFolderID [ad_conn package_id]]
}
# query for child site nodes
@@ -185,7 +185,7 @@
return $result
}
-ad_proc -public cm::modules::types::getRootFolderID {} { return "content_revision" }
+ad_proc -public cm::modules::types::getRootFolderID { package_id } { return "content_revision" }
ad_proc -public cm::modules::types::getChildFolders { id } {
@@ -195,7 +195,7 @@
set children [list]
if { [string equal $id {}] } {
- set id [getRootFolderID]
+ set id [getRootFolderID [ad_conn package_id]]
}
# query for message categories
@@ -208,14 +208,14 @@
# end of types namespace
-ad_proc -public cm::modules::search::getRootFolderID {} { return 0 }
+ad_proc -public cm::modules::search::getRootFolderID { package_id } { return 0 }
ad_proc -public cm::modules::search::getChildFolders { id } {
return [list]
}
-ad_proc -public cm::modules::categories::getRootFolderID {} { return 0 }
+ad_proc -public cm::modules::categories::getRootFolderID { package_id } { return 0 }
ad_proc -public cm::modules::categories::getChildFolders { id } {
@@ -295,7 +295,7 @@
-ad_proc -public cm::modules::clipboard::getRootFolderID {} { return 0 }
+ad_proc -public cm::modules::clipboard::getRootFolderID { package_id } { return 0 }
ad_proc -public cm::modules::clipboard::getChildFolders { id } {
Index: openacs-4/packages/cms/tcl/publish-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/tcl/publish-procs.tcl,v
diff -u -N -r1.14 -r1.15
--- openacs-4/packages/cms/tcl/publish-procs.tcl 9 May 2005 22:44:48 -0000 1.14
+++ openacs-4/packages/cms/tcl/publish-procs.tcl 16 May 2005 22:59:24 -0000 1.15
@@ -415,25 +415,22 @@
} {
- if { [template::util::is_nil interval] } {
- # Kludge: relies on that CMS is a singleton package
- set package_id [apm_package_id_from_key "cms"]
- if { ![template::util::is_nil package_id] } {
- set interval [ad_parameter -package_id $package_id StatusSweepInterval 3600]
- # if cms is installed but not mounted, return reasonable default
- if { $interval == "" } {
- set interval 3600
- }
- } else {
- ns_log Warning "publish::schedule_status_sweep: unable to lookup package_id for cms defaulting to interval 3600"
- set interval 3600
- }
- }
+ if { [template::util::is_nil interval] } {
+
+ db_foreach package_id {} {
- ns_log notice "publish::schedule_status_sweep: Scheduling status sweep every $interval seconds"
- set proc_id [ns_schedule_proc -thread $interval publish::track_publish_status]
- cache set status_sweep_proc_id $proc_id
-
+ set interval [ad_parameter -package_id $package_id StatusSweepInterval 3600]
+ # if cms is installed but not mounted, return reasonable default
+ if { $interval == "" } {
+ set interval 3600
+ ns_log Warning "publish::schedule_status_sweep: unable to lookup package_id for cms defaulting to interval 3600"
+ }
+ }
+
+ ns_log notice "publish::schedule_status_sweep: Scheduling status sweep every $interval seconds"
+ set proc_id [ns_schedule_proc -thread $interval publish::track_publish_status]
+ cache set status_sweep_proc_id $proc_id
+ }
}
ad_proc -public publish::unschedule_status_sweep {} {
Index: openacs-4/packages/cms/www/master.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/www/master.tcl,v
diff -u -N -r1.3 -r1.4
--- openacs-4/packages/cms/www/master.tcl 17 Nov 2004 19:02:45 -0000 1.3
+++ openacs-4/packages/cms/www/master.tcl 16 May 2005 22:59:24 -0000 1.4
@@ -1,27 +1,36 @@
+request create -params {
+ mount_point -datatype text -optional
+}
+
set url [ad_conn url]
set package_url [ad_conn package_url]
-#default (needed?)
-set section sitemap
-
-if {[string match *sitemap* $url]} {
+if {[template::util::is_nil mount_point]} {
+
+ #default (needed?)
set section sitemap
-} elseif {[string match *templates* $url]} {
- set section templates
-} elseif {[string match *types* $url]} {
- set section types
-} elseif {[string match *search* $url]} {
- set section search
-} elseif {[string match *workflow* $url]} {
- set section workflow
-} elseif {[string match *workspace* $url]} {
- set section workspace
-} elseif {[string match *clipboard* $url]} {
- set section clipboard
-} elseif {[string match *categories* $url]} {
- set section categories
-} elseif {[string match *users* $url]} {
- set section users
+
+ if {[string match *sitemap* $url]} {
+ set section sitemap
+ } elseif {[string match *templates* $url]} {
+ set section templates
+ } elseif {[string match *types* $url]} {
+ set section types
+ } elseif {[string match *search* $url]} {
+ set section search
+ } elseif {[string match *workflow* $url]} {
+ set section workflow
+ } elseif {[string match *workspace* $url]} {
+ set section workspace
+ } elseif {[string match *clipboard* $url]} {
+ set section clipboard
+ } elseif {[string match *categories* $url]} {
+ set section categories
+ } elseif {[string match *users* $url]} {
+ set section users
+ }
+} else {
+ set section $mount_point
}
Index: openacs-4/packages/cms/www/modules/categories/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/www/modules/categories/index.tcl,v
diff -u -N -r1.5 -r1.6
--- openacs-4/packages/cms/www/modules/categories/index.tcl 12 Apr 2005 21:45:42 -0000 1.5
+++ openacs-4/packages/cms/www/modules/categories/index.tcl 16 May 2005 22:59:24 -0000 1.6
@@ -13,7 +13,7 @@
set original_id $id
-set root_id [cm::modules::${mount_point}::getRootFolderID]
+set root_id [cm::modules::${mount_point}::getRootFolderID [ad_conn package_id]]
if { [util::is_nil id] || [string equal $id _all_] } {
set where_clause "k.parent_id is null"
} else {
Index: openacs-4/packages/cms/www/modules/categories/keyword-assign.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/www/modules/categories/keyword-assign.tcl,v
diff -u -N -r1.3 -r1.4
--- openacs-4/packages/cms/www/modules/categories/keyword-assign.tcl 27 May 2001 00:22:34 -0000 1.3
+++ openacs-4/packages/cms/www/modules/categories/keyword-assign.tcl 16 May 2005 22:59:24 -0000 1.4
@@ -7,7 +7,7 @@
-optional -value "sitemap"
if { [template::util::is_nil item_id] } {
- set resolved_id [cm::modules::${mount_point}::getRootFolderID]
+ set resolved_id [cm::modules::${mount_point}::getRootFolderID [ad_conn package_id]]
} else {
set resolved_id $item_id
}
Index: openacs-4/packages/cms/www/modules/categories/keyword-unassign.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/www/modules/categories/keyword-unassign.tcl,v
diff -u -N -r1.2 -r1.3
--- openacs-4/packages/cms/www/modules/categories/keyword-unassign.tcl 24 May 2001 01:30:52 -0000 1.2
+++ openacs-4/packages/cms/www/modules/categories/keyword-unassign.tcl 16 May 2005 22:59:24 -0000 1.3
@@ -8,7 +8,7 @@
-optional -value "sitemap"
if { [template::util::is_nil item_id] } {
- set resolved_id [cm::modules::${mount_point}::getRootFolderID]
+ set resolved_id [cm::modules::${mount_point}::getRootFolderID [ad_conn package_id]]
} else {
set resolved_id $item_id
}
Index: openacs-4/packages/cms/www/modules/items/assign-keywords.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/www/modules/items/assign-keywords.tcl,v
diff -u -N -r1.3 -r1.4
--- openacs-4/packages/cms/www/modules/items/assign-keywords.tcl 13 Apr 2005 20:15:19 -0000 1.3
+++ openacs-4/packages/cms/www/modules/items/assign-keywords.tcl 16 May 2005 22:59:24 -0000 1.4
@@ -12,7 +12,7 @@
-object_id $id -privilege write
if { [template::util::is_nil id] } {
- set root_id [cm::modules::${mount_point}::getRootFolderID]
+ set root_id [cm::modules::${mount_point}::getRootFolderID [ad_conn package_id]]
} else {
set root_id $id
}
Index: openacs-4/packages/cms/www/modules/items/attributes-edit.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/www/modules/items/attributes-edit.tcl,v
diff -u -N -r1.7 -r1.8
--- openacs-4/packages/cms/www/modules/items/attributes-edit.tcl 16 May 2005 03:06:16 -0000 1.7
+++ openacs-4/packages/cms/www/modules/items/attributes-edit.tcl 16 May 2005 22:59:24 -0000 1.8
@@ -28,7 +28,6 @@
# Create the form
form create add_revision -html { enctype "multipart/form-data" } \
- -cancel_url [export_vars -base index {item_id mount_point item_props_tab}] \
-elements {
item_id -datatype integer -widget hidden
latest_revision -datatype integer -widget hidden
Index: openacs-4/packages/cms/www/modules/items/children.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/www/modules/items/children.adp,v
diff -u -N -r1.5 -r1.6
--- openacs-4/packages/cms/www/modules/items/children.adp 13 Apr 2005 20:15:19 -0000 1.5
+++ openacs-4/packages/cms/www/modules/items/children.adp 16 May 2005 22:59:24 -0000 1.6
@@ -1,3 +1,5 @@
+
Child Items | Index: openacs-4/packages/cms/www/modules/items/children.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/cms/www/modules/items/children.tcl,v diff -u -N -r1.5 -r1.6 --- openacs-4/packages/cms/www/modules/items/children.tcl 13 Apr 2005 20:15:19 -0000 1.5 +++ openacs-4/packages/cms/www/modules/items/children.tcl 16 May 2005 22:59:24 -0000 1.6 @@ -28,6 +28,7 @@ template::list::create \ -name children \ -key rel_id \ + -no_data "No child items" \ -multirow children \ -actions [list "Relate marked items to this item" \ "relate-items?item_id=$item_id" \ Index: openacs-4/packages/cms/www/modules/items/create-1.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/cms/www/modules/items/create-1.adp,v diff -u -N -r1.2 -r1.3 --- openacs-4/packages/cms/www/modules/items/create-1.adp 22 May 2003 14:27:33 -0000 1.2 +++ openacs-4/packages/cms/www/modules/items/create-1.adp 16 May 2005 22:59:24 -0000 1.3 @@ -1,5 +1,10 @@|||
---|---|---|---|
$pretty_name | -$object_type | -$attr_value | -