[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] 01/02: inherit
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] 01/02: inherit |
Date: |
Fri, 31 May 2019 15:20:33 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
commit d8320c684cf3b18964d7d5f80698779478986c19
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri May 31 15:07:22 2019 +0200
inherit
---
talerbank/app/schemas.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/talerbank/app/schemas.py b/talerbank/app/schemas.py
index b75ff6a..a27524d 100644
--- a/talerbank/app/schemas.py
+++ b/talerbank/app/schemas.py
@@ -47,11 +47,10 @@ class URLParamValidationError(ValidationError):
self.http_status_code = http_status_code
super().__init__()
-
##
# Form specification that validates GET parameters from a
# /history request.
-class HistoryParams(forms.Form):
+class HistoryParamsBase(forms.Form):
auth = forms.CharField(
validators=[RegexValidator(
"^basic$",
@@ -65,8 +64,6 @@ class HistoryParams(forms.Form):
message="Only 'omit' or 'show' are valid")])
# FIXME: adjust min/max values.
- delta = forms.IntegerField()
- # FIXME: adjust min/max values.
start = forms.IntegerField(required=False)
ordering = forms.CharField(
@@ -84,6 +81,11 @@ class HistoryParams(forms.Form):
# FIXME: adjust min/max values.
account_number = forms.IntegerField(required=False)
+
+class HistoryParams(HistoryParamsBase):
+ # FIXME: adjust min/max values.
+ delta = forms.IntegerField()
+
##
# Exception class to be raised when a expected URL parameter
# is not found.
--
To stop receiving notification emails like this one, please contact
address@hidden