[dev] [commits] Horde branch develop updated. 548799010c25bffe55025cba2f169df31869c7f1

Michael M Slusarz slusarz at horde.org
Mon May 21 21:41:45 UTC 2012


Couple of more notes about my recent commit:

Quoting Michael M Slusarz <slusarz at horde.org>:

> The branch "develop" has been updated.
> The following is a summary of the commits.
>
> from: 5b9b6fc8740d10fdcaffe5c8ebfd7065dfa13b02
>
> 436134f New Horde_Core_Ajax_Response framework
> f6e8a17 Fix file permissions
> 5487990 Imple rewrite
>
> -----------------------------------------------------------------------
>
> commit 436134f3a08f1aa3674296c6ada9ef7756cc0572
> Author: Michael M Slusarz <slusarz at horde.org>
> Date:   Thu May 17 17:30:46 2012 -0600
>
>     New Horde_Core_Ajax_Response framework
>
>  ansel/lib/Ajax/Application.php                                    |    7 -
>  framework/Core/lib/Horde/Core/Ajax/Application.php                |   60 +--
>  framework/Core/lib/Horde/Core/Ajax/Response.php                   |  
>  107 +----
>  framework/Core/lib/Horde/Core/Ajax/Response/HordeCore.php         |   37 ++-
>  .../Core/lib/Horde/Core/Ajax/Response/HordeCore/JsonHtml.php      |   26 +
>  .../lib/Horde/Core/Ajax/Response/HordeCore/SessionTimeout.php     |   54 +++
>  framework/Core/lib/Horde/Core/Ajax/Response/Prototypejs.php       |   26 +
>  framework/Core/lib/Horde/Core/Ajax/Response/Raw.php               |   42 ++-
>  framework/Core/package.xml                                        |   12 +-
>  hermes/lib/Ajax/Application.php                                   |    7 -
>  horde/lib/Ajax/Application.php                                    |   32 +-
>  horde/services/ajax.php                                           |    5 +-
>  imp/compose.php                                                   |    4 +-
>  imp/lib/Ajax/Application.php                                      |   38 +--
>  kronolith/lib/Ajax/Application.php                                |    8 -
>  15 files changed, 222 insertions(+), 243 deletions(-)
>  create mode 100644  
> framework/Core/lib/Horde/Core/Ajax/Response/HordeCore/JsonHtml.php
>  create mode 100644  
> framework/Core/lib/Horde/Core/Ajax/Response/HordeCore/SessionTimeout.php
>  create mode 100644  
> framework/Core/lib/Horde/Core/Ajax/Response/Prototypejs.php
>
> http://git.horde.org/horde-git/-/commit/436134f3a08f1aa3674296c6ada9ef7756cc0572

When using the AJAX Application framework, any data returned from an  
AJAX handler method will be converted to a HordeCore object (e.g. an  
object containing notification and task data that is parsed by  
HordeCore.doActionComplete).  To return data in another format, return  
the appropriate Horde_Core_Ajax_Response_* class instead.

For Horde purposes, if you want raw JSON data returned (i.e. don't  
want to parse with HordeCore), note that you should use  
Horde_Core_Ajax_Response_Prototypejs, instead of a base  
Horde_Core_Ajax_Response object, in order to append the necessary  
security delimiters.

> commit 548799010c25bffe55025cba2f169df31869c7f1
> Author: Michael M Slusarz <slusarz at horde.org>
> Date:   Thu May 17 17:31:10 2012 -0600
>
>     Imple rewrite

All of the IMP Imple's should be working.  Additionally, the Kronolith  
Imple's were somewhat basic and so absent a typo or two, they should  
also be working.

Ansel is the application I am most worried about.  Michael R: let me  
know issues you find with this conversion and I will help to debug.  
(Ansel was the application where I moved a lot of Imple code -> AJAX  
Application handlers).

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the dev mailing list