• last updated 14 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
fixed broken error pages (removed obsolete header_stuff)

Don't set result variables for "header_stuff"

The method "header_stuff" was changes ages ago to

side-effect via the standard OpenACS template::head

interface rather than outputting to a variable, which

has to be passed around. This change removes some

leftover of this time.

  1. … 1 more file in changeset.
Provide some means to change the behavior of a single package instance

- New package parameter: PackageInitParameter

When set to some value other than empty, the package "init" method

(e.g. of xowiki::Package, or one of the subclasses) can handle

this separately.

- This submit adds a handler for the value "swa-only", and returns

a user-friendly message in this case. Of course, we could achieve

something similar via permissions as well, but this allows us

to tailor the behavior in more details.

- In general, this mechanism can also be used to provide some hints

about some specific packages, or tailor these in some other ways.

- Currently, this new package parameter is not added to the

.info file, so configure it via parameter pages.

  1. … 1 more file in changeset.
update regenerated files

prefer adp:icon over old-style .png images

  1. … 2 more files in changeset.
moved <include...> content into lib directory

www/portlets -> lib/portlets

    • -95
    • +0
    ./templates/oacs-view3-bootstrap.adp
  1. … 18 more files in changeset.
Revert change at least until the change is clear.

Automated test xowiki includelet_childresources expects links to be created without language prefix

in order to do so, the page_template must be set to create anonymous instances. Fix the page template used in the test to match expected result.

refine form.form and validation errors

  1. … 1 more file in changeset.
provide (non-default) message keys for "form.form.page"

added optional link to "new" pulldown menu

reduce deprecated calls

  1. … 3 more files in changeset.
move prototype pages to resources directory

    • -0
    • +20
    ./prototypes/announcement-talk.form.page
    • -0
    • +22
    ./prototypes/announcement-workshop.form.page
    • -0
    • +118
    ./prototypes/categories-portlet.page
  1. … 8 more files in changeset.
added range checking for page_size and page_number for weblog-portlet

modernized weblog-portlet code

moved weblog-portlet to the right place

bumped version number to 5.10.1d1

    • -0
    • +126
    ./prototypes/weblog-portlet.page
  1. … 4 more files in changeset.
reduce warnings on loading: Move resources to non-deprecated location

    • -0
    • +14
    ./prototypes/import-archive.form.page
  1. … 6 more files in changeset.
whitespace changes

  1. … 10 more files in changeset.
MenuBar reform

- MenuBars are now easier programmatically extensible (easier to maintain)

- refactored code, reduced scatted definitions (all configurations

at the same place)

- unified templating:

use body property @body.folderHTML@ instead of @folderhtml@

From the former API calls only "update_items" has changed,

all existing configurations (i.e. via folders or package parameter)

should continue to work.

== Changes:

One can now extend menubars via menu entry definition

{config -use YOURCONFIG -class YOURCLASS}

in two directions:

a) subclassing

define your own menubar class YOURCLASS, which should

be a subclass of ::xowiki::MenuBar

b) provide your own configuration method to provide

a more tailored configuration. This is performed

by defining a method "config=YOURCONFIG" for ::xowiki::MenuBar

The latter method is used for test-items, which can define a

test item folder by using

-- extra_menu_entries ---

{config -use test-items}

instead of

-- extra_menu_entries ---

{entry -name New.Item.TextInteraction -form en:edit-interaction.wf -query p.item_type=Text}

{entry -name New.Item.ShortTextInteraction -form en:edit-interaction.wf -query p.item_type=ShortText}

{entry -name New.Item.SCInteraction -form en:edit-interaction.wf -query p.item_type=SC}

{entry -name New.Item.MCInteraction -form en:edit-interaction.wf -query p.item_type=MC}

{entry -name New.Item.ReorderInteraction -form en:edit-interaction.wf -query p.item_type=Reorder}

{entry -name New.Item.UploadInteraction -form en:edit-interaction.wf -query p.item_type=Upload}

{entry -name New.App.OnlineExam -form en:online-exam.wf}

{entry -name New.App.InclassQuiz -form en:inclass-quiz.wf}

{entry -name New.App.InclassExam -form en:inclass-exam.wf}

See below for the definition of the "test-items" configuration method,

which is based on the default definitions. In general, the definition

in this method can be performed via menu-entries (same syntax as in

other menu entries) or via the MenuBar API (e.g. calling

":add_menu_item ...").

All configurations follow the following definition order

where later entries can refine earlier entries:

- package level: package parameter ExtraMenuEntries

- configuration method: use standard or tailored confguration methods

- per-folder definition: content of the extra_menu_entries

Note that the menu entry definition language supports as well

adding/clearing menus, etc., so almost everything can be refined.

I've noticed that the tlf* code has several scattered menu

definitions, which are as well done in every case differently.

By these definition one can define e.g. a learning-app folder (where

"New" can be used to define new app folders), and the app folders can

provide their own "New" entries, e.g. for clickers and

others. E.g. For "clickers" there is already on non-oo definition to

achieve similar things (which should be altered to the new method),

but on other places, there are some hard-coded definitions for root

folders, etc. The menubars of the learning-apps should be made this

way more consistent with the rest (e.g. using "New", supporting "table

of contents" for clipboard interactions, etc.)

namespace eval ::xowiki {

::xowiki::MenuBar instproc config=test-items {

{-bind_vars {}}

-current_page:required

-package_id:required

-folder_link:required

-return_url

} {

:config=default \

-bind_vars $bind_vars \

-current_page $current_page \

-package_id $package_id \

-folder_link $folder_link \

-return_url $return_url

return {

{clear_menu -menu New}

{entry -name New.Item.TextInteraction -form en:edit-interaction.wf -query p.item_type=Text}

{entry -name New.Item.ShortTextInteraction -form en:edit-interaction.wf -query p.item_type=ShortText}

{entry -name New.Item.SCInteraction -form en:edit-interaction.wf -query p.item_type=SC}

{entry -name New.Item.MCInteraction -form en:edit-interaction.wf -query p.item_type=MC}

{entry -name New.Item.ReorderInteraction -form en:edit-interaction.wf -query p.item_type=Reorder}

{entry -name New.Item.UploadInteraction -form en:edit-interaction.wf -query p.item_type=Upload}

{entry -name New.App.OnlineExam -form en:online-exam.wf}

{entry -name New.App.InclassQuiz -form en:inclass-quiz.wf}

{entry -name New.App.InclassExam -form en:inclass-exam.wf}

}

}

}

  1. … 7 more files in changeset.
introduced "ad_file" as a means to avoid unexpected tilde substitution in file names

  1. … 41 more files in changeset.
added editor hints and white-space cleanup

  1. … 50 more files in changeset.
Remove conflict leftovers

Add 'require_html_procs' to the ::xo namespace in order to be compliant with OpenACS naming standards

  1. … 3 more files in changeset.
remove spurious colons

use ::template::head instead of broken variable substitution

add a plain template using the master

  1. … 1 more file in changeset.
use consistently xowiki.css variants based on the preferred CSS toolkit

  1. … 5 more files in changeset.
- modernize code (remove "my")

- prefer fully qualified commands based on IDs

  1. … 32 more files in changeset.
regenerated adp files

whitespace and spelling changes

  1. … 1 more file in changeset.
Bring files on oacs-5-10 in sync with HEAD

  1. … 154 more files in changeset.