Skip to content

Commit

Permalink
[#1770] Changed IATI folder structure
Browse files Browse the repository at this point in the history
In order to make a clear distinction in the repository, the structure of the IATI folder is divided into checks, exports and imports.
  • Loading branch information
KasperBrandt committed Sep 2, 2015
1 parent b28dca4 commit ac15ddb
Show file tree
Hide file tree
Showing 51 changed files with 20 additions and 1,755 deletions.
11 changes: 0 additions & 11 deletions akvo/iati/checks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
# -*- coding: utf-8 -*-

# Akvo RSR is covered by the GNU Affero General Public License.
# See more details in the license.txt file located at the root folder of the Akvo RSR module.
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.

from .v201 import V201Checks

__all__ = [
'V201Checks',
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# See more details in the license.txt file located at the root folder of the Akvo RSR module.
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.

import checks
import versions


def check_export_fields(project, version='2.01'):
Expand All @@ -15,6 +15,6 @@ def check_export_fields(project, version='2.01'):
"""
# TODO: Add check for IATI versions (generic)
version_file = "V%sChecks" % version.replace('.', '')
project_checks = getattr(checks, version_file)(project)
project_checks = getattr(versions, version_file)(project)
project_checks.execute_all_checks()
return project_checks.all_checks_passed, project_checks.checks_results
11 changes: 11 additions & 0 deletions akvo/iati/checks/versions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-

# Akvo RSR is covered by the GNU Affero General Public License.
# See more details in the license.txt file located at the root folder of the Akvo RSR module.
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.

from .v201 import V201Checks

__all__ = [
'V201Checks',
]
File renamed without changes.
86 changes: 0 additions & 86 deletions akvo/iati/elements/__init__.py

This file was deleted.

43 changes: 0 additions & 43 deletions akvo/iati/elements/activity_date.py

This file was deleted.

22 changes: 0 additions & 22 deletions akvo/iati/elements/activity_scope.py

This file was deleted.

31 changes: 0 additions & 31 deletions akvo/iati/elements/activity_status.py

This file was deleted.

26 changes: 0 additions & 26 deletions akvo/iati/elements/background.py

This file was deleted.

48 changes: 0 additions & 48 deletions akvo/iati/elements/budget.py

This file was deleted.

22 changes: 0 additions & 22 deletions akvo/iati/elements/capital_spend.py

This file was deleted.

22 changes: 0 additions & 22 deletions akvo/iati/elements/collaboration_type.py

This file was deleted.

35 changes: 0 additions & 35 deletions akvo/iati/elements/conditions.py

This file was deleted.

Loading

0 comments on commit ac15ddb

Please sign in to comment.