+
Index: openacs-4/packages/xowiki/tcl/link-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/link-procs.tcl,v
diff -u -r1.7 -r1.8
--- openacs-4/packages/xowiki/tcl/link-procs.tcl 5 Aug 2006 20:55:02 -0000 1.7
+++ openacs-4/packages/xowiki/tcl/link-procs.tcl 6 Aug 2006 19:57:09 -0000 1.8
@@ -19,7 +19,7 @@
Link instproc init {} {
set class [self class]::[my type]
if {[my isclass $class]} {my class $class}
- my log "--L link has class [my info class]"
+ #my log "--L link has class [my info class]"
}
Link instproc resolve {} {
#my log "--lookup of [my name]"
Index: openacs-4/packages/xowiki/tcl/package-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/package-procs.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/xowiki/tcl/package-procs.tcl 5 Aug 2006 20:55:02 -0000 1.3
+++ openacs-4/packages/xowiki/tcl/package-procs.tcl 6 Aug 2006 19:57:09 -0000 1.4
@@ -69,19 +69,38 @@
return [my call $policy [self] $m]
}
}
- set object [$id get_parameter index_page]
}
if {$object eq ""} {
# we should change this to the new interface with query_parameter
#if {[ns_queryget summary] eq ""} {rp_form_put summary 1}
#set object [$id get_parameter weblog_page "en:weblog"]
- ad_returnredirect "admin/list"
+ #ad_returnredirect "admin/list"
+ set object index
}
set page [my resolve_request -path $object]
if {$page ne ""} {
return [my call $policy $page $method]
+ }
+ # try standard page
+ set standard_page [$id get_parameter ${object}_page]
+ my log "--standard page '$standard_page' from ${object}_page"
+ if {$standard_page ne ""} {
+ set page [my resolve_request -path $standard_page]
+ if {$page ne ""} {
+ my log "--found standard page $standard_page => $page"
+ return [my call $policy $page $method]
+ }
+ # create from default page
+ set fn [get_server_root]/packages/xowiki/www/default-pages/$object.page
+ my log "--sourcing page definition /packages/xowiki/www/default-pages/$object"
+ set F [open $fn]; set source [read $F]; close $F
+ set page [::xowiki::Page new -volatile -name $standard_page \
+ -title $object -parent_id $folder_id -package_id $id \
+ -text [list [string map [list >> ">>" << "<<"] $source] text/html]]
+ $page save_new
+ return [my call $policy $page $method]
} else {
- #...
+ ad_returnredirect "admin/list"
}
}
@@ -176,10 +195,12 @@
} else {
# we have no folder object yet. so we create one...
::xowiki::Object create ::$folder_id
- ::$folder_id set text "# this is the payload of the folder object\n\nset index_page \"\"\n"
+ ::$folder_id set text "# this is the payload of the folder object\n\n\
+ set index_page \"en:index\"\n"
::$folder_id set parent_id $folder_id
::$folder_id set name ::$folder_id
::$folder_id set title ::$folder_id
+ ::$folder_id set package_id $id
::$folder_id save_new
::$folder_id initialize_loaded_object
}
@@ -199,7 +220,7 @@
}
Package instproc return_page {-adp -variables -form} {
- my log "--vars=[self args]"
+ #my log "--vars=[self args]"
set __vars [list]
foreach _var $variables {
if {[llength $_var] == 2} {
Index: openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-procs.tcl,v
diff -u -r1.46 -r1.47
--- openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 5 Aug 2006 22:22:54 -0000 1.46
+++ openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 6 Aug 2006 19:57:09 -0000 1.47
@@ -681,6 +681,22 @@
}
return $ch$page
+ } else {
+ my instvar package_id
+ set page_name [lindex $arg 0]
+ set page [$package_id resolve_request -path $page_name]
+ if {$page ne ""} {
+ $page volatile
+ $page set __including_page [self]
+ set skin portlet
+ foreach {att value} [lrange $arg 1 end] {
+ switch -- $att {
+ -skin {set skin $value}
+ }
+ }
+ if {$skin ne "plain"} {$page mixin add ::xowiki::Page::skin=$skin}
+ return $ch[$page render]
+ }
}
}
Page instproc div {ch arg} {
Index: openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 5 Aug 2006 23:02:01 -0000 1.4
+++ openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 6 Aug 2006 19:57:09 -0000 1.5
@@ -298,4 +298,10 @@
}
ns_return 200 text/html "[_ xowiki.popular_tags_label]: [join $entries {, }]"
}
+
+ Class Page::skin=portlet -instproc render {} {
+ return "\
+ [next]
"
+ }
}
\ No newline at end of file
Fisheye: Tag 1.6 refers to a dead (removed) revision in file `openacs-4/packages/xowiki/www/delete-revision.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.8 refers to a dead (removed) revision in file `openacs-4/packages/xowiki/www/delete.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/xowiki/www/index.vuh
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/index.vuh,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/xowiki/www/index.vuh 5 Aug 2006 20:55:03 -0000 1.2
+++ openacs-4/packages/xowiki/www/index.vuh 6 Aug 2006 19:57:09 -0000 1.3
@@ -13,9 +13,9 @@
package_id [ad_conn package_id]]
set Package [::xowiki::Package create ::$package_id -folder_id $folder_id]
-#$Package log "--starting... [ns_conn url] [ns_conn query] form vars = [ns_set array [ns_getform]]"
+$Package log "--starting... [ns_conn url] [ns_conn query] form vars = [ns_set array [ns_getform]]"
set text [$Package invoke -method $m]
-#$Package log "--delivery [$Package set delivery] 200 [$Package set mime_type] $text"
+$Package log "--delivery [$Package set delivery] 200 [$Package set mime_type] [string length $text] bytes"
[$Package set delivery] 200 [$Package set mime_type] $text
-#$Package log "--done"
+$Package log "--done [$Package set object]"
ad_script_abort
Fisheye: Tag 1.7 refers to a dead (removed) revision in file `openacs-4/packages/xowiki/www/make-live-revision.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/xowiki/www/popular_tags.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.6 refers to a dead (removed) revision in file `openacs-4/packages/xowiki/www/revisions.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/xowiki/www/save_tags.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.21 refers to a dead (removed) revision in file `openacs-4/packages/xowiki/www/view.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/xowiki/www/weblog.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/xowiki/www/default-pages/index.page
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/default-pages/Attic/index.page,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/xowiki/www/default-pages/index.page 6 Aug 2006 19:57:09 -0000 1.1
@@ -0,0 +1,15 @@
+
+This is the default start page of XoWiki. You can edit this page and save it to provide a personalized look of the XoWiki instance. You can as well provide a different index page through configuration. For more details, consult the [[http://media.wu-wien.ac.at/download/xowiki-doc/|XoWiki documentation]].
+
+>>left-col<<
+{{adp portlets/recent {name {Recently Changed Pages} max_entries 25} }}
+>><<
+>>right-col<<
+{{adp portlets/last-visited {name {Last Visited} max_entries 10 }}}
+
+{{adp portlets/most-popular {name {Most Popular} max_entries 10 }}}
+>><<
+
+
+
+
Index: openacs-4/packages/xowiki/www/default-pages/weblog.page
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/default-pages/Attic/weblog.page,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/xowiki/www/default-pages/weblog.page 6 Aug 2006 19:57:09 -0000 1.1
@@ -0,0 +1,13 @@
+>>content<<
+{{adp portlets/weblog {name Weblog}}}
+>><<
+>>sidebar<<
+{{adp portlets/weblog-mini-calendar}}
+{{adp portlets/tags {skin plain-include}}}
+{{adp portlets/tags {skin plain-include popular 1 limit 30}}}
+{{adp portlets/categories {count 1 skin plain-include}}}
+>><<
+
+
+
+
Index: openacs-4/packages/xowiki/www/resources/xowiki.css
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/xowiki.css,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/xowiki/www/resources/xowiki.css 26 Jul 2006 22:56:46 -0000 1.1
+++ openacs-4/packages/xowiki/www/resources/xowiki.css 6 Aug 2006 19:57:09 -0000 1.2
@@ -62,8 +62,8 @@
img.found {border: 0; height: 12px}
img.undefined {border: 10; color: yellow; height: 12px}
-#left-col {float: left; width: 40%; top: 0px;}
-#right-col {float: right; width: 59%; top: 0px;}
+#left-col {float: left; width: 50%; top: 0px;}
+#right-col {float: right; width: 49%; top: 0px;}
#left-col20 {float: left; width: 14%; top: 0px; margin-right: 10px;}
#left-col25 {float: left; width: 24%; top: 0px; margin-right: 10px;}