Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Comparison operators added on Version object.#5

Open
tonioo wants to merge 24 commits into
mindsnacks:masterfrom
tonioo:master
Open

Comparison operators added on Version object.#5
tonioo wants to merge 24 commits into
mindsnacks:masterfrom
tonioo:master

Conversation

@tonioo

@tonioo tonioo commented Jul 25, 2014

Copy link
Copy Markdown

A little but usefull improvement.

@tony

tony commented May 16, 2015

Copy link
Copy Markdown

@mindsnacks what do you think?

dblenkus and others added 21 commits October 5, 2015 13:50
The validation method now checks the following:

* If version string has too many components (1.2.3.4.5 with only 3
  components allowed);
* If any component is not numeric (1.x is not supported due to storage
  implementation);
* If any component is too big (one can't save number greater than 255
  with 8 bits, for example).

Raising ValidationError in validate() allows us to avoid ValueError
later.
Implement validation for the field.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants