Changeset 423
- Timestamp:
- 4/19/2007 5:54:26 PM (2 years ago)
- Location:
- trunk/reactor
- Files:
-
- 5 removed
- 3 modified
-
conf (deleted)
-
core/object.cfc (modified) (3 diffs)
-
core/objectTranslator.cfc (modified) (1 diff)
-
data/informix/ObjectDao.cfc (modified) (2 diffs)
-
dav (deleted)
-
db (deleted)
-
hooks (deleted)
-
locks (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/reactor/core/object.cfc
r417 r423 392 392 <cfset var exactObjectName = "" /> 393 393 <cfset var objectDAO = 0 /> 394 <cfset var exactName = 0 /> 394 395 395 396 <!--- … … 436 437 </cfif> 437 438 438 <cfif xmlField.XmlAttributes["sequence"] gt ""> 439 <cfset ObjectDao = CreateObject("Component" 440 , "reactor.data.#getConfig().getType()#.ObjectDao").init(getConfig().getDsn() 441 , getConfig().getUsername() 442 , getConfig().getPassword()) /> 443 <cfset exactName = ObjectDao.getExactObjectName(objectName=xmlField.XmlAttributes["sequence"], objectTypeList="sequence") /> 444 <cfif compare( exactName, xmlField.XmlAttributes["sequence"] ) is not 0> 445 <cfset xmlField.XmlAttributes["sequence"] = exactName /> 446 </cfif> 447 </cfif> 448 449 450 439 <cfif xmlField.XmlAttributes["sequence"] gt ""> 440 <cfset ObjectDao = CreateObject("Component", 441 "reactor.data.#getConfig().getType()#.ObjectDao").init(getConfig().getDsn(), 442 getConfig().getUsername(), 443 getConfig().getPassword() 444 ) /> 445 <cfset exactName = ObjectDao.getExactObjectName(objectName=xmlField.XmlAttributes["sequence"], objectTypeList="sequence") /> 446 <cfif compare( exactName, xmlField.XmlAttributes["sequence"] ) is not 0> 447 <cfset xmlField.XmlAttributes["sequence"] = exactName /> 448 </cfif> 449 </cfif> 451 450 452 451 <!--- add the field node ---> … … 464 463 465 464 <cfif len(trim(oldNode.xmlComment))> 466 <cfset newNode.xmlComment = trim(oldNode.xmlComment) />465 <cfset arguments.newNode.xmlComment = trim(oldNode.xmlComment) /> 467 466 </cfif> 468 467 469 468 <cfif len(trim(oldNode.xmlCData))> 470 <cfset newNode.xmlCData = trim(oldNode.xmlCData)>471 </cfif> 472 473 <cfset newNode.xmlAttributes = oldNode.xmlAttributes>474 475 <cfset newNode.xmlText = trim(oldNode.xmlText) />469 <cfset arguments.newNode.xmlCData = trim(oldNode.xmlCData)> 470 </cfif> 471 472 <cfset arguments.newNode.xmlAttributes = oldNode.xmlAttributes> 473 474 <cfset arguments.newNode.xmlText = trim(oldNode.xmlText) /> 476 475 477 476 <cfloop from="1" to="#arrayLen(oldNode.xmlChildren)#" index="i"> 478 <cfset newNode.xmlChildren[i] = xmlElemNew(xmlDoc,oldNode.xmlChildren[i].xmlName) />479 <cfset copyNode(xmlDoc, newNode.xmlChildren[i],oldNode.xmlChildren[i]) />477 <cfset arguments.newNode.xmlChildren[i] = xmlElemNew(xmlDoc, oldNode.xmlChildren[i].xmlName) /> 478 <cfset copyNode(xmlDoc, arguments.newNode.xmlChildren[i], oldNode.xmlChildren[i]) /> 480 479 </cfloop> 481 480 </cffunction> -
trunk/reactor/core/objectTranslator.cfc
r417 r423 23 23 <cfset var projectPath = "" /> 24 24 <!--- write the project object ---> 25 <cfsetprojectRoot = ExpandPath("/reactor/#Iif(arguments.plugin, De("Plugins"), De("xsl"))#" & "/" ) />25 <cfset var projectRoot = ExpandPath("/reactor/#Iif(arguments.plugin, De("Plugins"), De("xsl"))#" & "/" ) /> 26 26 27 27 <cfset generate( -
trunk/reactor/data/informix/ObjectDao.cfc
r416 r423 170 170 <cfargument name="typeName" hint="I am the type name to translate" required="yes" type="any" _type="string" /> 171 171 172 <cfset typeName = getLowestTwoBits(typeName)>172 <cfset arguments.typeName = getLowestTwoBits(typeName)> 173 173 174 174 <cfswitch expression="#arguments.typeName#"> … … 208 208 <cfargument name="typeName" hint="I am the type name to translate" required="yes" type="any" _type="string" /> 209 209 210 <cfset typeName = getLowestTwoBits(typeName)>210 <cfset arguments.typeName = getLowestTwoBits(typeName)> 211 211 212 212 <cfswitch expression="#arguments.typeName#">

