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


Ignore:
Timestamp:
21/09/10 14:58:07 (11 years ago)
Author:
astephen
Comment:

--

Legend:

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

    v1 v1  
     1= COWS Migration to Python 2.6 and Pylons 1.0 = 
     2 
     3[[PageOutline]] 
     4 
     5== Introduction == 
     6 
     7In order to keep the COWS stack (cows + cowsserver + cowsclient) synchronised with our security solution we needed to update the stack to work with Python 2.6. The primary obstacle was updated the Pylons-related code due to a number of minor (but significant) changes introduced between Pylons 0.9.6 and 0.9.7. These changes are explained in the following Pylons documentation page: 
     8 
     9 http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779 
     10 
     11This page: 
     12 
     13 * changes made in COWS, COWS Server and COWS Client to update to Pylons 1.0. 
     14 
     15During this process various dependencies were also updated and documented. A separate page documents the [wiki:.../COWSStack/DependenciesAndInstallation Dependencies and Installation of the COWS stack]. 
     16 
     17== COWS modifications == 
     18 
     19The changes made to the cows library are documented in the [wiki:http://proj.badc.rl.ac.uk/ndg/changeset?new=7492%40cows%2Fbranches%2Fmigrate-py26-pylons10&old=7342%40cows%2Fbranches%2Fmigrate-py26-pylons10 diff between the two versions]. 
     20 
     21The changes all related to the following change: 
     22 
     23{{{ 
     24Replaced use of "routes.url_for" function with the global "pylons.url" 
     25function for compatibility with pylons 1.0. 
     26}}} 
     27 
     28== COWS Server modifications == 
     29 
     30The COWS server changes are documented in the [wiki:http://proj.badc.rl.ac.uk/ndg/changeset?new=7490%40cowsserver%2Fbranches%2Fmigrate-py26-pylons10&old=7340%40cowsserver%2Fbranches%2Fmigrate-py26-pylons10 diff between the two versions]. 
     31 
     32These differences covered the following updates relating to Pylons changes: 
     33 
     34'''1. config/middleware.py file changes'''  
     35 
     36{{{ 
     37config/middleware.py file updated to mirror standard pylons 1.0 version. 
     38Also removed the switch for compatibility with pylons versions before 
     39version 0.9.7. 
     40}}} 
     41 
     42'''2. Setting of pylons global "c" variable config attributes (to retain previous behaviour)''' 
     43 
     44{{{ 
     45Included additional config args introduced in pylons 0.9.7 to allow the 
     46global "c" variable to maintain access to global properties and to not 
     47throw AttributeError exceptions when an attribute is not found. See: 
     48 
     49http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779 
     50}}} 
     51 
     52'''3. Modification of config/routing.py syntax and "map" attributes''' 
     53 
     54{{{ 
     55Updated routes to pylons 1.0 requirement using new Routes syntax. 
     56Also added the lines: 
     57 
     58    # We need minization switched on 
     59    map.minimization = True 
     60    map.explicit = False 
     61 
     62To handle enable "implicit" routing, see: 
     63http://routes.groovie.org/manual.html#implicit-defaults-and-route-memory  
     64}}} 
     65 
     66'''4. Replacing "routes.url_for" with "pylons.url" calls''' 
     67 
     68{{{ 
     69Replaced use of "routes.url_for" function with the global "pylons.url" 
     70function for compatibility with pylons 1.0. 
     71}}} 
     72 
     73== COWS Client modifications == 
     74 
     75The COWS client changes are documented in the [wiki: diff between the two versions].