Skip to content

Commit ba991ca

Browse files
author
Your Name
committed
Pay attention to case sensitiveness
1 parent 7f51b61 commit ba991ca

File tree

5 files changed

+139
-139
lines changed

5 files changed

+139
-139
lines changed

pyslicer/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ def create_column(self, data):
168168
format.
169169
"""
170170
base_url = self._wrapper_test()
171-
sd_data = validators.columnValidator(data)
171+
sd_data = validators.ColumnValidator(data)
172172
if sd_data.validator():
173-
url = base_url + URLResources.column
173+
url = base_url + URLResources.COLUMN
174174
return self._make_request(
175175
url=url,
176176
req_type="post",
@@ -180,7 +180,7 @@ def create_column(self, data):
180180
def get_columns(self):
181181
"""Get a list of columns"""
182182
base_url = self._wrapper_test()
183-
url = base_url + URLResources.column
183+
url = base_url + URLResources.COLUMN
184184
return self._make_request(
185185
url=url,
186186
req_type="get",

pyslicer/core/helper_handler_exceptions.py

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
12: exceptions.AuthInvalidAPIKeyException,
1414
13: exceptions.AuthIncorrectPermissionException,
1515
14: exceptions.AuthInvalidRemoteException,
16-
15: exceptions.CustomKeyInvalidcolumnCreationException,
17-
16: exceptions.CustomKeyInvalidPermissionForcolumnException,
16+
15: exceptions.CustomKeyInvalidColumnCreationException,
17+
16: exceptions.CustomKeyInvalidPermissionForColumnException,
1818
17: exceptions.CustomKeyInvalidOperationException,
1919
18: exceptions.CustomKeyNotPermittedException,
2020
19: exceptions.CustomKeyRouteNotPermittedException,
@@ -33,44 +33,44 @@
3333
31: exceptions.AccountPaymentRequiredException,
3434
32: exceptions.AccountBannedException,
3535
33: exceptions.AccountDisabledException,
36-
39: exceptions.columnInvalidRangeException,
36+
39: exceptions.ColumnInvalidRangeException,
3737
# column errors (40 - 59)
38-
40: exceptions.columnMissingParamException,
39-
41: exceptions.columnTypeException,
40-
42: exceptions.columnIntegerValuesException,
41-
43: exceptions.columnAlreadyExistsException,
42-
44: exceptions.columnLimitException,
43-
45: exceptions.columnTimeSeriesLimitException,
44-
46: exceptions.columnTimeSeriesSystemLimitException,
45-
47: exceptions.columnDecimalTypeException,
46-
48: exceptions.columnStorageValueException,
47-
49: exceptions.columnInvalidApiNameException,
48-
50: exceptions.columnInvalidNameException,
49-
51: exceptions.columnInvalidDescriptionException,
50-
52: exceptions.columnExceedDescriptionlengthException,
51-
53: exceptions.columnInvalidCardinalityException,
52-
54: exceptions.columnDecimalLimitException,
53-
55: exceptions.columnRangeLimitException,
54-
56: exceptions.columnExceededMaxNameLenghtException,
55-
57: exceptions.columnExceededMaxApiNameLenghtException,
56-
58: exceptions.columnEmptyEntityIdException,
57-
59: exceptions.columnExceededPermitedValueException,
38+
40: exceptions.ColumnMissingParamException,
39+
41: exceptions.ColumnTypeException,
40+
42: exceptions.ColumnIntegerValuesException,
41+
43: exceptions.ColumnAlreadyExistsException,
42+
44: exceptions.ColumnLimitException,
43+
45: exceptions.ColumnTimeSeriesLimitException,
44+
46: exceptions.ColumnTimeSeriesSystemLimitException,
45+
47: exceptions.ColumnDecimalTypeException,
46+
48: exceptions.ColumnStorageValueException,
47+
49: exceptions.ColumnInvalidApiNameException,
48+
50: exceptions.ColumnInvalidNameException,
49+
51: exceptions.ColumnInvalidDescriptionException,
50+
52: exceptions.ColumnExceedDescriptionlengthException,
51+
53: exceptions.ColumnInvalidCardinalityException,
52+
54: exceptions.ColumnDecimalLimitException,
53+
55: exceptions.ColumnRangeLimitException,
54+
56: exceptions.ColumnExceededMaxNameLenghtException,
55+
57: exceptions.ColumnExceededMaxApiNameLenghtException,
56+
58: exceptions.ColumnEmptyEntityIdException,
57+
59: exceptions.ColumnExceededPermitedValueException,
5858
# Insertion errors (60 - 79)
5959
60: exceptions.InsertInvalidDecimalPlacesException,
6060
61: exceptions.InsertEntityValueTypeException,
61-
62: exceptions.InsertcolumnNameTypeException,
62-
63: exceptions.InsertcolumnTypeException,
61+
62: exceptions.InsertColumnNameTypeException,
62+
63: exceptions.InsertColumnTypeException,
6363
64: exceptions.InsertEntityNameTooBigException,
64-
65: exceptions.InsertcolumnValueTooBigException,
64+
65: exceptions.InsertColumnValueTooBigException,
6565
66: exceptions.InsertTimeSeriesDateFormatException,
66-
67: exceptions.InsertcolumnNotActiveException,
66+
67: exceptions.InsertColumnNotActiveException,
6767
68: exceptions.InsertIdLimitException,
68-
69: exceptions.InsertcolumnLimitException,
68+
69: exceptions.InsertColumnLimitException,
6969
70: exceptions.InsertDateFormatException,
70-
71: exceptions.InsertcolumnStringEmptyValueException,
71-
72: exceptions.InsertcolumnTimeseriesInvalidParameterException,
72-
73: exceptions.InsertcolumnNumericInvalidValueException,
73-
74: exceptions.InsertcolumnTimeseriesMissingValueException,
70+
71: exceptions.InsertColumnStringEmptyValueException,
71+
72: exceptions.InsertColumnTimeseriesInvalidParameterException,
72+
73: exceptions.InsertColumnNumericInvalidValueException,
73+
74: exceptions.InsertColumnTimeseriesMissingValueException,
7474
75: exceptions.QueryTimeSeriesInvalidPrecisionSecondsException,
7575
76: exceptions.QueryTimeSeriesInvalidPrecisionMinutesException,
7676
77: exceptions.QueryTimeSeriesInvalidPrecisionHoursException,
@@ -82,13 +82,13 @@
8282
82: exceptions.QueryMissingTypeParamException,
8383
83: exceptions.QueryInvalidOperatorException,
8484
84: exceptions.QueryIncorrectOperatorUsageException,
85-
85: exceptions.QuerycolumnNotActiveException,
85+
85: exceptions.QueryColumnNotActiveException,
8686
86: exceptions.QueryMissingOperatorException,
8787
87: exceptions.QueryIncompleteException,
8888
88: exceptions.QueryEventCountQueryException,
8989
89: exceptions.QueryInvalidMetricException,
9090
90: exceptions.QueryIntegerException,
91-
91: exceptions.QuerycolumnLimitException,
91+
91: exceptions.QueryColumnLimitException,
9292
92: exceptions.QueryLevelLimitException,
9393
93: exceptions.QueryBadAggsFormationException,
9494
94: exceptions.QueryInvalidAggFilterException,
@@ -110,7 +110,7 @@
110110
111: exceptions.QueryDataExtractionLimitValueTooBigException,
111111
112: exceptions.QueryDataExtractionLimitAndPageTokenValueException,
112112
113: exceptions.QueryDataExtractionPageTokenValueException,
113-
114: exceptions.QueryDataExtractioncolumnLimitException,
113+
114: exceptions.QueryDataExtractionColumnLimitException,
114114
115: exceptions.QueryExistsEntityEmptyException,
115115
116: exceptions.QuerySavedInvalidQueryValueException,
116116
117: exceptions.QuerySavedInvalidCachePeriodValueException,
@@ -122,11 +122,11 @@
122122
123: exceptions.QueryExceededMaxNumberQuerysException,
123123
124: exceptions.QueryInvalidOperatorUsageException,
124124
125: exceptions.QueryInvalidParameterUsageException,
125-
126: exceptions.QueryParameterInvalidcolumnUsageException,
126-
127: exceptions.QueryInvalidcolumnUsageException,
125+
126: exceptions.QueryParameterInvalidColumnUsageException,
126+
127: exceptions.QueryInvalidColumnUsageException,
127127
# Internal errors (110 - 120)
128128
130: exceptions.InternalException,
129-
131: exceptions.columnCreateInternalException
129+
131: exceptions.ColumnCreateInternalException
130130
}
131131

132132
slicer_exceptions = defaultdict(

0 commit comments

Comments
 (0)