antoniop in OpenACS

Do not urlencode the return URL in every case, but only when this falls back to the current URL from the connection context, normally coming from "ns_conn url" which will return it "raw", as in not encoded for any purpose

URLencode the return URL, or the server might complain for invalid characters (e.g. unencoded umlaut characters)

Document behavior

Whitespace cleanup

Add allowfullscreen

Move away from document.write, that would not reset the javascript environment of the document with many side effects and reimplement the fullscreen preview using an iframe

Improvements for the HTML sandbox feature:

- name the formfield consistently with its ancestry

- provide two preview and visualization styles: inline, where the page is displayed alongside the code and in an own window, opened by clicking on a button

- allow to customize whether one prefers the inline style preview, the window preview or none via the preview_inline and preview_window parameters

- fix visualization when formfield is rendered as readonly and no monaco editor is available

- localize button text

file upgrade-5.10.0d32-5.10.0d33.sql was initially added on branch oacs-5-10.

As we now enforce emails to be lowercase, also sanitize existing data

New HTML sandbox formfield based on the Monaco editor formfield

This field implement an HTML sandbox. The user can edit HTML code and see the result rendered in real time as a standalone document using an iframe. This formfield is meant for quick prototyping of HTML pages which can then be shared among other wiki users, taking also advantage of other wiki features such as versioning, access control and so on.

Whitespace cleanup

Make so that also party::update enforces emails to be lowercase, add/extend automated tests to make sure emails are lowercase everywhere

In order to make the "editor=" formfield spec option have any effect, one should catch the value from the spec early, before the formfield is reclassed and initialized

This also exposes that the editor=none value is not valid (detected by xowiki and xowf automated tests). For this to be valid one should define it as a richtext subclass.

Cloase bracket

Fix typo in comment

Implement reset_to_default method to reset formfields in case of validation error

the current behavior of this method is currently a no-op for every formfield, except files, where we want to make sure the value has been reset. We also handle the case now of compound fields, as they might be compounds of file formfields

Improve zip file download solution: instead of a link to be clicked, stay closer to previous implementation and trigger the download automatically by including an invisible iframe pointing to the file in the user message

file download-zip-2.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
Implement a simple "progress-bar" interaction when one downloads a zip file:

file is generated while the progress bar is running and the download link is generated and served to the user as part of a util_user_message

Move operations so that they are closer to their computation's actual usage

We are only interested in the side effects of this computation

Break overlong line

Take more advantage of exception handling

Simplify determining outfile destination

Fix english of query name

Check objects ids all in one query, before any further action is taken

Update doc

Prefer returning forbidden, unauthorized actually asks for authentication

Fix typo

file upgrade-1.5.1-2.0.0.sql was initially added on branch oacs-5-10.