Changes between Version 1 and Version 2 of CowsFramework/CowsInstallation/MigrationToPython2.6


Ignore:
Timestamp:
21/09/10 22:28:17 (9 years ago)
Author:
astephen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CowsFramework/CowsInstallation/MigrationToPython2.6

    v1 v2  
    5656Also added the lines: 
    5757 
    58     # We need minization switched on 
     58    # We need minimization switched on 
    5959    map.minimization = True 
    6060    map.explicit = False 
     
    7373== COWS Client modifications == 
    7474 
    75 The COWS client changes are documented in the [wiki: diff between the two versions]. 
     75The COWS client changes are documented in the [wiki:http://proj.badc.rl.ac.uk/ndg/changeset?new=7502%40cowsclient%2Fbranches%2Fmigrate-py26-pylons10&old=7344%40cowsclient%2Fbranches%2Fmigrate-py26-pylons10 diff between the two versions]. 
     76 
     77These differences covered the following updates relating to Pylons changes: 
     78 
     79'''1. config/middleware.py file changes'''  
     80 
     81{{{ 
     82config/middleware.py file updated to mirror standard pylons 1.0 version. 
     83Also removed the switch for compatibility with pylons versions before 
     84version 0.9.7. 
     85}}} 
     86 
     87'''2. Setting of pylons global "c" variable config attributes (to retain previous behaviour)''' 
     88 
     89{{{ 
     90Included additional config args introduced in pylons 0.9.7 to allow the 
     91global "c" variable to maintain access to global properties and to not 
     92throw AttributeError exceptions when an attribute is not found. See: 
     93 
     94http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779 
     95}}} 
     96 
     97'''3. Modification of config/routing.py syntax and "map" attributes''' 
     98 
     99{{{ 
     100Updated routes to pylons 1.0 requirement using new Routes syntax. 
     101Also added the lines: 
     102 
     103    # We need minimization switched on 
     104    map.minimization = True 
     105    map.explicit = False 
     106 
     107To handle enable "implicit" routing, see: 
     108http://routes.groovie.org/manual.html#implicit-defaults-and-route-memory  
     109}}} 
     110 
     111'''4. Replacing "routes.url_for" with "pylons.url" calls''' 
     112 
     113{{{ 
     114Replaced use of "routes.url_for" function with the global "pylons.url" 
     115function for compatibility with pylons 1.0. 
     116}}} 
     117 
     118'''5. Escapting "<" character in Javascript within HTML template''' 
     119 
     120{{{ 
     121Added CDATA section to escape the "<" character in javascript within an 
     122HTML file. This stops Genshi escaping the "<" character into "&lt;" and 
     123interpreting it as HTML instead of Javascript. 
     124}}}