akvo.scripts.cordaid.cordaid_project_upload module
- akvo.scripts.cordaid.cordaid_project_upload.api_user(domain, username, password='', api_key='')[source]
- akvo.scripts.cordaid.cordaid_project_upload.check_activity_language(activity_element)[source]
Checks whether the activity element has an xml:lang tag. If so, look for identical elements (with identical attributes) and check if there is an element containing the xml:lang of the activity element or one element without a xml:lang tag. In these cases, all other elements are removed.
- akvo.scripts.cordaid.cordaid_project_upload.get_project_count(user, **q_args)[source]
query the API for projects associated with a given internal_id