Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/710 rain iati import #755

Merged
merged 10 commits into from
Sep 30, 2014
Merged

Conversation

zzgvh
Copy link
Contributor

@zzgvh zzgvh commented Sep 30, 2014

No description provided.

ProjectResource.get_object_list() does not return unpublished projects
when the API is queried by an authenticated user.

Fix by calling ApiKeyAuthentication.is_authenticated() to check if the
user is authorized to view unpublished projects.
The xpath for those two methods is searching from the root (xpath search
string starts with "//") in the belief that the tree only encompassed
one activity. But this seems not to be the case resulting in _all_
activities being searched.

Fix by removing the "//".
Add settings for the URLs to use when fetching the RAIN organisations
and activities XML.

Add settings for a pair of log labels.
Add load_xml(). This function is moved from rain_project_upload.py

Also add save_xml() to allow saving of the fetched XML for logging
purposes.
Fetch organisation XML from the RAIN website.

The XML fetched is saved for logging/debugging in the same folder as the
import logfiles.
Fetch activities XML from the RAIN website.

The XML fetched is saved for logging/debugging in the same folder as the
import logfiles.
Add methods for setting the category, sync_owner and publishing status
of all imported RAIN projects.
Fetch activities XML from the RAIN website.
KasperBrandt added a commit that referenced this pull request Sep 30, 2014
@KasperBrandt KasperBrandt merged commit 558f778 into develop Sep 30, 2014
@kardan kardan deleted the hotfix/710_rain_iati_import branch January 6, 2015 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants