Changeset 283
- Timestamp:
- 12/23/06 02:17:38 (2 years ago)
- Location:
- framework/trunk
- Files:
-
- 4 modified
-
fuseboxApplication.cfc (modified) (1 diff)
-
fuseboxCircuit.cfc (modified) (1 diff)
-
fuseboxPlugin.cfc (modified) (4 diffs)
-
myFusebox.cfc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
framework/trunk/fuseboxApplication.cfc
r282 r283 93 93 hint="I am the myFusebox data structure." /> 94 94 95 <!--- fixes ticket 95 for errortemplates and lexicons --->95 <!--- fixes ticket 95 for plugins ---> 96 96 <cfset var myVersion = "5.0.1.#REReplace('$LastChangedRevision$','[^0-9]','','all')#" /> 97 97 -
framework/trunk/fuseboxCircuit.cfc
r282 r283 79 79 <cfset variables.lexicons = structNew() /> 80 80 81 <cfset variables.relativePath = replace(arguments.path,"\","/","all") /> 82 <cfif len(variables.relativePath) and right(variables.relativePath,1) is not "/"> 83 <cfset variables.relativePath = variables.relativePath & "/" /> 84 </cfif> 81 <cfset variables.relativePath = variables.fuseboxApplication.normalizePartialPath(arguments.path) /> 85 82 <cfset this.path = variables.relativePath /> 86 83 <!--- ticket 139: allow absolute path names and mappings: ---> -
framework/trunk/fuseboxPlugin.cfc
r277 r283 93 93 94 94 <cfif structKeyExists(arguments.pluginXML.xmlAttributes,"path")> 95 <cfset this.path = this.path & replace(arguments.pluginXML.xmlAttributes.path,"\","/","all") /> 96 </cfif> 97 <cfif right(this.path,1) is not "/"> 98 <cfset this.path = this.path & "/" /> 95 <cfif left(arguments.pluginXML.xmlAttributes.path,1) is "/"> 96 <!--- path is absolute, ignore normal plugins path ---> 97 <cfset this.path = arguments.fbApp.normalizePartialPath(arguments.pluginXML.xmlAttributes.path) /> 98 <cfelse> 99 <cfset this.path = this.path & arguments.fbApp.normalizePartialPath(arguments.pluginXML.xmlAttributes.path) /> 100 </cfif> 99 101 </cfif> 100 102 … … 135 137 <cfset variables.template = variables.template & ext /> 136 138 </cfif> 137 <cfset this.rootpath = 138 arguments.fbApp.relativePath(arguments.fbApp.getApplicationRoot() & 139 this.path,arguments.fbApp.getApplicationRoot()) /> 139 <cfif left(this.path,1) is "/"> 140 <cfset this.rootpath = 141 arguments.fbApp.relativePath(arguments.fbApp.expandFuseboxPath(this.path),arguments.fbApp.getApplicationRoot()) /> 142 <cfelse> 143 <cfset this.rootpath = 144 arguments.fbApp.relativePath(arguments.fbApp.getApplicationRoot() & 145 this.path,arguments.fbApp.getApplicationRoot()) /> 146 </cfif> 140 147 <!--- remove pairs of directory/../ to form canonical path: ---> 141 148 <cfloop condition="find('/../',this.rootpath) gt 0"> … … 196 203 <cfswitch expression="#variables.phase#"> 197 204 <cfcase value="processError,fuseactionException"> 198 <cffile action="read" file="#variables.fuseboxApplication.getApplicationRoot()##this.path##variables.template#" 199 variable="file" 200 charset="#variables.fuseboxApplication.characterEncoding#" /> 205 <cfif left(this.path,1) is "/"> 206 <cffile action="read" file="#variables.fuseboxApplication.expandFuseboxPath(this.path)##variables.template#" 207 variable="file" 208 charset="#variables.fuseboxApplication.characterEncoding#" /> 209 <cfelse> 210 <cffile action="read" file="#variables.fuseboxApplication.getApplicationRoot()##this.path##variables.template#" 211 variable="file" 212 charset="#variables.fuseboxApplication.characterEncoding#" /> 213 </cfif> 201 214 <cfset arguments.writer.rawPrintln(file) /> 202 215 </cfcase> … … 208 221 <cfset arguments.writer.println('<cfset myFusebox.thisPlugin = "#getName()#"/>') /> 209 222 <cfset arguments.writer.print('<' & 'cfoutput><' & 'cfinclude template=') /> 210 <cfset arguments.writer.print('"#variables.fuseboxApplication.parseRootPath##this.path##variables.template#"') /> 223 <cfif left(this.path,1) is "/"> 224 <cfset arguments.writer.print('"#this.path##variables.template#"') /> 225 <cfelse> 226 <cfset arguments.writer.print('"#variables.fuseboxApplication.parseRootPath##this.path##variables.template#"') /> 227 </cfif> 211 228 <cfset arguments.writer.println('/><' & '/cfoutput>') /> 212 229 <cfset arguments.writer.setPhase(p) /> -
framework/trunk/myFusebox.cfc
r282 r283 51 51 <cfcomponent hint="I provide the per-request myFusebox data structure and some convenience methods."> 52 52 <cfscript> 53 // fixes ticket 95 for errortemplates and lexicons53 // fixes ticket 95 for plugins 54 54 this.version.runtime = "5.0.1.#REReplace('$LastChangedRevision$','[^0-9]','','all')#"; 55 55
