Ticket #4187: __init__.py.diff
File __init__.py.diff, 861 bytes (added by , 18 years ago) |
---|
-
__init__.py
75 75 list_of_related_objects}``. 76 76 """ 77 77 d = get_deserializer(format) 78 if format == "python": 79 data = stream_or_string.readline() #read the line 80 stream_or_string = eval(data) #eval the line returning a python list of objects 78 81 return d(stream_or_string) 79 82 80 83 def _load_serializers(): … … 87 90 register_serializer(format, BUILTIN_SERIALIZERS[format]) 88 91 if hasattr(settings, "SERIALIZATION_MODULES"): 89 92 for format in settings.SERIALIZATION_MODULES: 90 register_serializer(format, settings.SERIALIZATION_MODULES[format]) 91 No newline at end of file 93 register_serializer(format, settings.SERIALIZATION_MODULES[format])