[Laszlo-dev] Minor doc change: For Review: Change 20061129-papley-3 Summary: Changes for describing relative path types. At the moment this is not complete.

Phillip George Apley papley at laszlosystems.com
Wed Nov 29 18:22:13 PST 2006


Change 20061129-papley-3 by papley at PGAPBG417.local on 2006-11-29  
20:45:16 EST
     in /Users/papley/src/svn/legals

Summary: Changes for describing relative path types. At the moment  
this is not complete.

New Features:

Bugs Fixed:

Technical Reviewer: max, henry
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:
     Sample compiler output:
     LzResourceLibrary.window_gripper_rsc= { ptype: "sr", frames: 
["lps/components/lz/resources/window/gripper_slct.png",
     "lps/components/lz/resources/window/gripper_dslct.png", "lps/ 
components/lz/resources/window/gripper_dsbl.png"], width:569, height: 
11 }
     LzResourceLibrary.$LZ1={ptype: "ar", frames:["testmedia/ 
cherry.png"],width:128.0,height:128.0}

If for example the client has the following settings:
      *  host                    e.g.    http://host/
      *  LzServerBase            e.g.    legals
      *  LzApplicationPath       e.g.    demos/amazon
      *  LzCommonResourcePath    e.g.    deploy/resources | "/"

It would use the following formulas to come up with appropriate  
pathnames:
  Path Generation Formulas:
   aa: application server absolute:        HOST + / + LzServerBase  
+ / + respath
   ar: application relative resource:      HOST + / + LzServerBase  
+ / + LzApplicationPath + / + respath       (page relative or  
application relative)
   sr: server relative common resource:    HOST + / + LzServerBase  
+ / + LzCommonResourcePath + / + respath    (common library relative)
   ap: absolute external path resource:    respath (fully qualified  
URL)                               (absolute, external URL)

   *** So far I'm only using "ar"
   *** If there is no ptype value specified I think the default  
interpretation should be "sa"
   *** Note, there will be no leading spaces on any path type except  
"ap"

  Path Examples:
       host                        serverbase   resourcebase       path
       aa: http://localhost:8080   /legals/                         
respath
       sr: http://localhost:8080   /legals/     deploy/resources/   
lps/components/lz/resources/window/gripper_dsbl.png
       ar: http://localhost:8080   /legals/     demos/amazon/       
testmedia/cherry.png
       ap: []                      []          []                   
http://somehost/somepath/file.png


Release Notes:

Details:


Tests:

Files:
M      WEB-INF/lps/server/src/org/openlaszlo/js2doc/JS2Doc.java
M      WEB-INF/lps/server/src/org/openlaszlo/utils/FileUtils.java
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/DHTMLWriter.java
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/FileResolver.java
M      examples/animation/animation.lzx

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20061129- 
papley-3.tar


Phillip G. Apley
Senior Software Engineer
Platform Team
Laszlo Systems, Inc.
papley at laszlosystems.com
pga at alienlanding.org

maynard: 978-298-5210
allston: 617-787-2831
cell: 617-283-1717
skype: phillipapley

aim: phillipapley
jabber: papley at gmail
irc: papley at irc.freenode.net
icq: 258643767


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20061129/d16d63d8/attachment.html


More information about the Laszlo-dev mailing list