• last updated 7 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
After fixing previous commit, use ad_urlencode_path and ad_urlencode_query instead of ns_urlencode in export_vars and export_entire_form_as_url_vars.

This way URL is encoded properly and we avoid a bug when variables called "--" or with value "--" are exported.

Reverting and fixing previous commit, which erroneously brought HEAD version in 5-9 branch

    • -1335
    • +1493
    /openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl
Use ad_urlencode_path and ad_urlencode_query instead of ns_urlencode in export_vars and export_entire_form_as_url_vars.

This way URL is encoded properly and we avoid a bug when variables called "--" or with value "--" are exported.

    • -1493
    • +1335
    /openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl
Use ad_urlencode_path and ad_urlencode_query instead of ns_urlencode in export_vars and export_entire_form_as_url_vars.

This way URL is encoded properly and we avoid a bug when variables called "--" or with value "--" are exported.

- use consistently ns_quotehtml

- don't quote message keys in summary field in bugs table

- add "cascade" to make uninstall clean

- use [util_current_location] instead of host-header field to show

correct host also when no host header field is available

- use wildcard matching for driver names to detect protocol

in case multiple drivers of the same type are loaded with

names with different suffixes

- make code more robst, when source_p is passed in as empty string

- fix an old bug in the user-info adp include. The old version assumed, that every url that is not starting with "http://" has to be prefixed with "http://". This is certainly a problem, when the user url starts with "https://"

- fix typo in parameter name TclTraceLogSeverities

    • -1
    • +1
    /openacs-4/packages/acs-tcl/acs-tcl.info
file upgrade-5.9.1d1-5.9.1d2.sql was initially added on branch oacs-5-9.

- don't try to normalize_name when it is empty

- change mime type for .swf from "application/x-shockwave-flash" to IANA complient entry "application/vnd.adobe.flash-movie"

file upgrade-5.9.1d11-5.9.1d12.sql was initially added on branch oacs-5-9.

- fix util::split_location

- fortify low-level db access methods: return errors when called with wrong argument types

- truncate overlong lines in ad_get_tcl_call_stack

- add missing doc string

- made dropzone a first-class member of the menubar. Now the dropzone

can be configured like all other menubar entries per-folder via

extra_menu_entries (form field in the folder form) or parameter

ExtraMenuEntries (see example below)

- made dropzone configurable (xowiki-uploader-procs.tcl)

One can now specify per dropzone the actions to be performed

with the uploaded content (sample uploaders are provided

with ::xowiki::UploadFile (produces ::xowiki::File entries) or

::xowiki::UploadPhotoForm (produces FormPages for photo.form).

This can serves as a boilerplate for other drop operations

like creating workflow instances or forums postings via drag&drop.

- added mode-handler (xowiki-mode-procs.tcl): The mode handlers

provide easy handling for querying and switching per-session modes

(like eg admin-mode, developer-mode, student-mode, ...). Depending

on the mode different ui options might be offered. Sample with

::xowiki::mode::admin provided, which is per default on, when the

user has admin rights in the current package.

- added modebutton as first-class member of the menubar.

This is currently only supported by the bootstrap renderer,

which displays this as a ios like slider button in the menubar

(see config example below)

- example extra_menu entries:

{clear_menu -menu New}

{entry -name New.Page -label #xowiki.new# -form en:page.form}

{entry -name New.File -label File -object_type ::xowiki::File}

{dropzone -name DropZone -label DropZone -uploader File}

{modebutton -name Admin -label admin -button admin}

    • -120
    • +183
    /openacs-4/packages/xowiki/tcl/bootstrap-procs.tcl
    • -7
    • +18
    /openacs-4/packages/xowiki/tcl/folder-procs.tcl
    • -2
    • +2
    /openacs-4/packages/xowiki/tcl/import-procs.tcl
    • -13
    • +117
    /openacs-4/packages/xowiki/tcl/menu-procs.tcl
    • -13
    • +11
    /openacs-4/packages/xowiki/tcl/yui-procs.tcl
file xowiki-mode-procs.tcl was initially added on branch oacs-5-9.

    • -0
    • +0
    /openacs-4/packages/xowiki/tcl/xowiki-mode-procs.tcl
file xowiki-uploader-procs.tcl was initially added on branch oacs-5-9.

    • -0
    • +0
    /openacs-4/packages/xowiki/tcl/xowiki-uploader-procs.tcl
- adding missing entries

- set multiple per default to false

- remove unneeded code

- remove unneeded code

- added support for HTML5 attribute "multiple" to form-field "file"

(requires updated naviserver for handling multiple files via [ns_getform])

- added dropzone to xowiki menubar

(easy means for uploading one or many files to the current folder)

    • -3
    • +3
    /openacs-4/packages/xowiki/tcl/folder-procs.tcl
    • -83
    • +167
    /openacs-4/packages/xowiki/tcl/form-field-procs.tcl
    • -0
    • +20
    /openacs-4/packages/xowiki/tcl/menu-procs.tcl
    • -3
    • +5
    /openacs-4/packages/xowiki/tcl/package-procs.tcl
- commenting out DateFormat line

- add more Open XML formats for MS-Office

file upgrade-5.9.1d10-5.9.1d11.sql was initially added on branch oacs-5-9.