File tree 1 file changed +15
-12
lines changed
1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change 5
5
import functools
6
6
from jsonobject .properties import *
7
7
from jsonobject .base import DefaultProperty
8
- from jsonobject .convert import ALLOWED_PROPERTY_TYPES
8
+ from jsonobject .convert import (
9
+ ALLOWED_PROPERTY_TYPES ,
10
+ MAP_TYPES_PROPERTIES ,
11
+ value_to_python ,
12
+ value_to_property
13
+ )
9
14
10
- SchemaProperty = ObjectProperty
11
- SchemaListProperty = ListProperty
12
15
StringListProperty = functools .partial (ListProperty , unicode )
13
- SchemaDictProperty = DictProperty
14
16
15
17
16
18
class Property (DefaultProperty ):
@@ -33,14 +35,15 @@ def to_json(self, value):
33
35
raise NotImplementedError ()
34
36
35
37
36
- dict_to_json = None
37
- list_to_json = None
38
- value_to_json = None
39
- value_to_python = None
40
- dict_to_python = None
41
- list_to_python = None
42
- convert_property = None
43
- value_to_property = None
38
+ def _not_implemented (* args , ** kwargs ):
39
+ raise NotImplementedError ()
40
+
41
+ dict_to_json = _not_implemented
42
+ list_to_json = _not_implemented
43
+ value_to_json = _not_implemented
44
+ dict_to_python = _not_implemented
45
+ list_to_python = _not_implemented
46
+ convert_property = _not_implemented
44
47
45
48
LazyDict = JsonDict
46
49
LazyList = JsonArray
You can’t perform that action at this time.
0 commit comments