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

Task 47 permissions #1

Merged
merged 6 commits into from
Mar 18, 2021
Merged

Task 47 permissions #1

merged 6 commits into from
Mar 18, 2021

Conversation

mattiagiupponi
Copy link
Contributor

@mattiagiupponi mattiagiupponi commented Mar 16, 2021

With this PR I want to:

  • Add .gitignore (always useful)
  • Clean-up commented code.
  • Fix README
  • Manage set_workflow_perms for new resources.

The main code is the following one:

for r in resources:
r.set_workflow_perms(approved=True, published=True)

I also add a check for the resource if exists (in order to avoid runtime issues)

if resources.exists():

Now if the resources exists will do the update of the csw otherwise will log an error

@etj etj merged commit bc77fb0 into main Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants