Changes between Version 6 and Version 7 of Ticket #1050
- Timestamp:
- 04/08/11 16:22:11 (3 years ago)
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 1 Refactor ckan/lib/authztool.py so that the relevant methods are independent of the command line interface. 2 2 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. 3 The 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. 8 4 9 5 Tests should be made. There's already a file ckan/tests/test_authz.py, which looks like the appropriate place for new tests. 10 6 11 7 all 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