[Laszlo-checkins] r10509 - openlaszlo/trunk

dda@openlaszlo.org dda at openlaszlo.org
Tue Jul 29 14:34:04 PDT 2008


Author: dda
Date: 2008-07-29 14:33:54 -0700 (Tue, 29 Jul 2008)
New Revision: 10509

Modified:
   openlaszlo/trunk/quick-index.xslt
Log:
Change 20080729-dda-j by dda at lester.local on 2008-07-29 16:52:27 EDT
    in /Users/dda/laszlo/src/svn/openlaszlo/trunk-doc
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix quick index for small apps

New Features:

Bugs Fixed: LPP-6714

Technical Reviewer: ptw (pending)
QA Reviewer: promanik (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    The top level quick index is produced/digested from the laszlo-explorer
    nav.xml menu.  It appears that laszlo-explorer may have changed to use an
    application runner script (loading.jsp) that has some smarts.
    Small Applications are referred to in nav.xml using html names, like
    weather.html that shows the application running in a wrapper page (weather.html).

    To keep the app running transparent to the user, the change for the quick index
    uses the lzx names (e.g. weather.lzx), stealing these names from the file shown
    when source is displayed.

    Another valid solution could be to modify Small App entries in nav.xml so that they
    have action="popup" (just as LZPIX has).  This would be a simpler solution, but
    changes the behavior of the small apps laszlo explorer.  I don't know the exact
    consequences of this solution, so I didn't use it.

Tests:
    To build, from the root svn directory: ant laszlo-explorer, then
    open http://localhost:8080/trunk/quick-index.html in the browser
    (don't open quick-index.html using file:..../quick-index.html)
    It appears that this quick-index.html will overwrite the top level
    index.html at some point during the release build.

    Tried opening all small apps + sources.



Modified: openlaszlo/trunk/quick-index.xslt
===================================================================
--- openlaszlo/trunk/quick-index.xslt	2008-07-29 21:11:27 UTC (rev 10508)
+++ openlaszlo/trunk/quick-index.xslt	2008-07-29 21:33:54 UTC (rev 10509)
@@ -68,6 +68,16 @@
                        </xsl:when>
                        <xsl:when test="@action = 'popupexternal'">
                            <xsl:value-of select="@src"/>
+                       </xsl:when>
+                       <!-- If there is a sibling 'source' item, use it to run programs -->
+                       <xsl:when test="@runtime and parent::*/child::subitem[@action='source']">
+                           <xsl:text>.</xsl:text>
+                           <xsl:value-of select="parent::*/child::subitem[@action='source']/@src"/>
+                           <xsl:text>?debug=true</xsl:text>
+                           <xsl:if test="@runtime != ''">
+                               <xsl:text>&amp;lzr=</xsl:text>
+                               <xsl:value-of select="@runtime"/>
+                           </xsl:if>
                        </xsl:when>                       
                        <xsl:otherwise>
                             <xsl:text>.</xsl:text>



More information about the Laszlo-checkins mailing list