David Winterbottom
0aed77500a
Rework ExtendedURLValidator and tests
* Tidy implementation of validator
* Tests improved and moved to tests/integration (as they call resolve
internally)
13 years ago
Maik Hoepfel
c3442555b5
ExtendedURLValidator: don't pass down verify_exists.
13 years ago
David Winterbottom
5316b75314
Correct flake8 errors and warnings
13 years ago
David Winterbottom
a0515aa5d6
Added new checkout gateway page similar to Amazon's.
14 years ago
David Winterbottom
102904261c
Fixed circular reference problem from CC project. Caused by import of
model from within forms.validators
14 years ago
Sebastian Vetter
84649d9f56
removed double dashed comments
14 years ago
Sebastian Vetter
4ccaf44f54
added validator to check for non-existing URLs
I added a new validator to oscar.core.validators that validates
absolute and relative URL and checks if the URL already exists. We
use this functionality when creating flatpages in the dashboard to
check if the URL can be used.
The validation includes *two* calls to ExtendedURLValidator to
validate the URL in the first run and then check if it already
exists in the second. This might not be the most efficient way
of handling it. The reason to do it that way is that it reduces
the amount of code that has to be replicated.
14 years ago
Sebastian Vetter
bd731d6a17
added check for flatpages installation in validator
14 years ago
Sebastian Vetter
1bc8e396bb
added flatpage URL validation to validators
14 years ago
AndrewIngram
7d341f249c
Fixed big in fix_local_url which was stripping off the last character
14 years ago
AndrewIngram
ba67606d08
found the real cause of why fix_local_url wasn't working, django's resolve() doesn't accept query strings
14 years ago
AndrewIngram
a7ec5825c4
Removed right-stripping and addition of '/' from ExtendedURLValidator because it doesn't work with URLs that have query strings.
14 years ago
David Winterbottom
04daeeafea
Updated template tag contect to allow CSRF to be used
14 years ago
Patryk Zawadzki
aed0822222
Split ExtendedURLField
There is now a model field, a form field and a validator.
14 years ago