Changes between Version 6 and Version 7 of Ticket #1050


Ignore:
Timestamp:
04/08/11 16:22:11 (3 years ago)
Author:
rgrp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1050

    • Property Priority changed from awaiting triage to major
    • Property Milestone changed from to ckan-v1.4
  • Ticket #1050 – Description

    v6 v7  
    1 start looking at ckan/lib/authztool.py 
     1Refactor ckan/lib/authztool.py so that the relevant methods are independent of the command line interface. 
    22 
    3 various administrative options are only available from the command line. 
    4  
    5 This file should be refactored so that the relevant methods are callable from code, in preparations for the creation of a web gui administrative interface. 
    6  
    7 The extracted methods should live in a new file ckan/lib/authz.py, called from authztool.py, which should do all command line parsing and printing. 
     3The extracted methods should live in a new file ckan/authz.py. authztool.py should probably move into cli.py and will just do command line parsing and printing and use ckan/authz.py. The updated web gui for authz will also use this code. 
    84 
    95Tests should be made. There's already a file ckan/tests/test_authz.py, which looks like the appropriate place for new tests. 
    106 
    117all to go on a branch feature-1050-refactor-authtoolz 
     8 
     9== Optional extras == 
     10 
     11 * Rename ckan/authz.py to ckan/lib/authz.py or even ckan/logic/authz.py 
     12 
     13