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

[#756] Astana hotfix 2.4.2 #757

Merged
merged 19 commits into from
Sep 30, 2014
Merged

[#756] Astana hotfix 2.4.2 #757

merged 19 commits into from
Sep 30, 2014

Conversation

zzgvh
Copy link
Contributor

@zzgvh zzgvh commented Sep 30, 2014

No description provided.

KasperBrandt and others added 19 commits September 23, 2014 14:05
On Akvo Pages, a boolean field 'exclude_keywords' has been added. When set to False (default), the keywords act as usual. However, when set to True, projects with the indicated keywords will be excluded from the project list on the Akvo Page.

E.g. For the YEP Water page, we want to exclude the internal Akvo projects. By setting this option to True and indicating a new keyword ('akvo internal') on both the Akvo Page and the internal Akvo project(s), the project will not be shown on YEP's page.
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.
[#745] Add exclude keyword option to Akvo Pages
KasperBrandt added a commit that referenced this pull request Sep 30, 2014
@KasperBrandt KasperBrandt merged commit ff288c4 into release/candidate Sep 30, 2014
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