Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

218ify create_x_path() functions in resources.py #263

Closed

Conversation

hayfield
Copy link
Contributor

@hayfield hayfield commented Dec 19, 2017

This PR completes the create_x_path() checklist in #255

Includes content from #264 (should probably merge that through to the relevant point first)

This is required for the completion of some things in #255
A fixture is removed following a mis-remembering of how 'version-independent' works.
@hayfield hayfield added api Changes to the pyIATI API. incomplete A PR that is in a state that is not ready for review. standard-support Relating to how pyIATI supports a major component within the IATI Standard. labels Dec 19, 2017
The name was longer than needed following previous iterations of the name
This includes:

- decimal
- integer
- version-independent
This makes it clearer that the class works with creating paths, rather than XPaths (which are something completely different...)
There is one for Major versions, so there should also be one for Minor versions. Consistency.
This checks that values:

- use a dot (.) as a decimal separator
- have 2 decimal places
- do not contain leading or trailing whitespace
This will detect if patch versioning is introduced
@hayfield
Copy link
Contributor Author

The improve-resource-version-handling branch is currently being used to integrate the Version class changes into here.

@hayfield hayfield added the versions Relating to IATI Version Numbers. label Feb 28, 2018
@hayfield
Copy link
Contributor Author

This PR has been superceded by #297 (which has the advantage of having recent changes from improve-version-parameter integrated).

@hayfield hayfield closed this Mar 15, 2018
@hayfield hayfield deleted the 218ify-resource-create-x-path branch March 15, 2018 09:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api Changes to the pyIATI API. incomplete A PR that is in a state that is not ready for review. standard-support Relating to how pyIATI supports a major component within the IATI Standard. versions Relating to IATI Version Numbers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant